From: Simon Glass Date: Fri, 31 Jul 2015 15:31:18 +0000 (-0600) Subject: Support removing default assembler flags X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=3834f41720b9340c97d8970d5a712fdcf2031df3;p=u-boot.git Support removing default assembler flags The CFLAGS_REMOVE_ feature allows default C compiler flags to be removed for particular files. Add the same feature for assembler, using AFLAGS_REMOVE_. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Reviewed-by: Tom Rini --- diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 84915d7e51..1c949fc0eb 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -104,8 +104,9 @@ modname_flags = $(if $(filter 1,$(words $(modname))),\ orig_c_flags = $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(KBUILD_SUBDIR_CCFLAGS) \ $(ccflags-y) $(CFLAGS_$(basetarget).o) _c_flags = $(filter-out $(CFLAGS_REMOVE_$(basetarget).o), $(orig_c_flags)) -_a_flags = $(KBUILD_CPPFLAGS) $(KBUILD_AFLAGS) $(KBUILD_SUBDIR_ASFLAGS) \ +orig_a_flags = $(KBUILD_CPPFLAGS) $(KBUILD_AFLAGS) $(KBUILD_SUBDIR_ASFLAGS) \ $(asflags-y) $(AFLAGS_$(basetarget).o) +_a_flags = $(filter-out $(AFLAGS_REMOVE_$(basetarget).o), $(orig_a_flags)) _cpp_flags = $(KBUILD_CPPFLAGS) $(cppflags-y) $(CPPFLAGS_$(@F)) #