Commit 3834f417 authored by Simon Glass's avatar Simon Glass
Browse files

Support removing default assembler flags

The CFLAGS_REMOVE_<file> feature allows default C compiler flags to be
removed for particular files. Add the same feature for assembler, using
Signed-off-by: default avatarSimon Glass <>
Reviewed-by: default avatarBin Meng <>
Reviewed-by: default avatarTom Rini <>
parent 58b6ad68
......@@ -104,8 +104,9 @@ modname_flags = $(if $(filter 1,$(words $(modname))),\
$(ccflags-y) $(CFLAGS_$(basetarget).o)
_c_flags = $(filter-out $(CFLAGS_REMOVE_$(basetarget).o), $(orig_c_flags))
$(asflags-y) $(AFLAGS_$(basetarget).o)
_a_flags = $(filter-out $(AFLAGS_REMOVE_$(basetarget).o), $(orig_a_flags))
_cpp_flags = $(KBUILD_CPPFLAGS) $(cppflags-y) $(CPPFLAGS_$(@F))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment