-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Replace EXTRA_CFLAGS with ccflags-y #270
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly lgtm, just two files seem unneeded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these changes may not be strictly necessary, but it's probably better to change everything rather than try to sort out exactly which ones care about this change and which don't.
Also, what happened with the CI tests? They show a failure but I can't figure out what that failure is.
One question is when did the deprecation/changeover happen? Would it make sense for us to backport this to older versions? (I think probably not, there's no reason for the kernel to backport this kind of build change.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I can buy the argument that it's consistent everywhere, so it's fine by me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny thing: the actual title of the change refers to EXTRA_FLAGS, not EXTRA_CFLAGS.
Based on: https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt EXTRA_CFLAGS has been deprecated. We should be using ccflags-y. Replaced EXTRA_CFLAGS with ccflags-y in all our files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, looking forward to the build working again.
Based on:
https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt
EXTRA_FLAGS has been deprecated. We should be using ccflags-y. Replaced EXTRA_CFLAGS with ccflags-y in all our files.