]> asedeno.scripts.mit.edu Git - linux.git/commit
kbuild: fix modkern_aflags implementation
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 10 Aug 2019 15:52:59 +0000 (00:52 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 14 Aug 2019 17:25:11 +0000 (02:25 +0900)
commitc2290f3286b6d1f2058b905cc954243c6027c37a
tree926b08f95cb7ee97d9cd485a4f1795e99dd6f631
parent986662b90352d79c4842dd7d4e678f50824ed729
kbuild: fix modkern_aflags implementation

For the single target building %.symtypes from %.S, $(a_flags) is
expanded into the _KERNEL flags even if the object is a part of a
module.

$(real-obj-m:.o=.symtypes): modkern_aflags := $(KBUILD_AFLAGS_MODULE) $(AFLAGS_MODULE)

... would fix the issue, but it is not nice to duplicate similar code
for every suffix.

Implement modkern_aflags in the same way as modkern_cflags.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.build