diff options
author | Masahiro Yamada | 2020-05-26 21:38:10 +0900 |
---|---|---|
committer | Geert Uytterhoeven | 2020-07-13 11:39:13 +0200 |
commit | 40b13fd7fd6e1ec295230cc114c6c9309e15784a (patch) | |
tree | 8b0fd3e7d9b6adf73f5214d5b1901307ce8ce21f /arch/m68k | |
parent | 2367b0264294a50cd2cd9d4c1270a9393f32038c (diff) |
m68k: Pass -D options to KBUILD_CPPFLAGS instead of KBUILD_{A,C}FLAGS
Precisely, -D is a preprocessor option.
KBUILD_CPPFLAGS is passed for compiling .c and .S files too.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Greg Ungerer <gerg@linux-m68k.org>
Link: https://lore.kernel.org/r/20200526123810.301667-4-masahiroy@kernel.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile index 0507bf297727..71ffaf5f8954 100644 --- a/arch/m68k/Makefile +++ b/arch/m68k/Makefile @@ -70,9 +70,8 @@ ifdef CONFIG_MMU KBUILD_CFLAGS += -fno-strength-reduce -ffixed-a2 else # we can use a m68k-linux-gcc toolchain with these in place -KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" -KBUILD_CFLAGS += -D__uClinux__ -KBUILD_AFLAGS += -D__uClinux__ +KBUILD_CPPFLAGS += -DUTS_SYSNAME=\"uClinux\" +KBUILD_CPPFLAGS += -D__uClinux__ endif KBUILD_LDFLAGS := -m m68kelf |