On Sun, Oct 4, 2020 at 10:29 PM Sedat Dilek <sedat.dilek@xxxxxxxxx> wrote: > > Hi, > > I wanted to get rid of CC_FLAGS_USING in lib/Makefile: > > ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) > +ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_USING) > +asflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_USING) > > ...it makes no sense to me to remove CC_FLAGS_FTRACE and not CC_FLAGS_USING. > > ccflags-remove-y (here: CONFIG_FUNCTION_TRACER=y) seems to work but > *not* asflags-remove-y. > > Am I missing something? > It is getting overridden? > > Documentation/kbuild/makefiles.rst says: > "...AFLAGS_$@ has the higher priority than asflags-remove..." > > How can I check if there is another AFLAGS_XXX interfering? > > I see -DCC_XXX in... > > lib/.crc-t10dif.mod.o.cmd > lib/.crc-t10dif.o.cmd This is compiled from a C source file. lib/crc-t10dif.c Why are you trying asflags-remove-y for lib/Makefile? I see no assembly source file under lib/. masahiro@oscar:~/ref/linux$ find lib -name '*.S' masahiro@oscar:~/ref/linux$ > I want to remove all -DCC_XXX assembler-options derived from lib/Makefile. > > Regards, > - Sedat - -- Best Regards Masahiro Yamada