I would prefer to have a simpler CONFIG name and then
use the generic version.
So something like:
ccflags-sched.o-$(CONFIG_CC_Werror) += -Werror
It is in the above line obvious that we for sched.o add the -Werror
option if the CONFIG option CC_Werror is y.
Sam
--