linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux-5.9: Remove CC_FLAGS_USING via asflags-remove
@ 2020-10-04 13:29 Sedat Dilek
  2020-10-04 14:03 ` Masahiro Yamada
  0 siblings, 1 reply; 4+ messages in thread
From: Sedat Dilek @ 2020-10-04 13:29 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: linux-kbuild

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

I want to remove all -DCC_XXX assembler-options derived from lib/Makefile.

Regards,
- Sedat -

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-04 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-04 13:29 Linux-5.9: Remove CC_FLAGS_USING via asflags-remove Sedat Dilek
2020-10-04 14:03 ` Masahiro Yamada
2020-10-04 14:09   ` Sedat Dilek
2020-10-04 14:22     ` Sedat Dilek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).