Skip to content

Commit 40b13fd

Browse files
masahir0ygeertu
authored andcommitted
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 <[email protected]> Acked-by: Greg Ungerer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 2367b02 commit 40b13fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/m68k/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ ifdef CONFIG_MMU
7070
KBUILD_CFLAGS += -fno-strength-reduce -ffixed-a2
7171
else
7272
# we can use a m68k-linux-gcc toolchain with these in place
73-
KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
74-
KBUILD_CFLAGS += -D__uClinux__
75-
KBUILD_AFLAGS += -D__uClinux__
73+
KBUILD_CPPFLAGS += -DUTS_SYSNAME=\"uClinux\"
74+
KBUILD_CPPFLAGS += -D__uClinux__
7675
endif
7776

7877
KBUILD_LDFLAGS := -m m68kelf

0 commit comments

Comments
 (0)