1 # Makefile.powerpc -- with config changes.
2 # Copyright 1990 W. Jolitz
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/powerpc/conf/``machineid''
9 # after which you should do
11 # Generic makefile changes should be made in
12 # /sys/conf/Makefile.powerpc
13 # after which config should be rerun for all machines.
16 # Which version of config(8) is required.
29 LDSCRIPT_NAME?= ldscript.${MACHINE_ARCH}
31 .include "$S/conf/kern.pre.mk"
33 INCLUDES+= -I$S/contrib/libfdt
35 .if "${MACHINE_ARCH}" == "powerpcspe"
36 # Force __SPE__, since the builtin will be removed later with -mno-spe
37 CFLAGS.gcc+= -mabi=spe -D__SPE__
38 CFLAGS.clang+= -mspe -D__SPE__ -m32
41 CFLAGS.gcc+= -Wa,-many
43 # Apply compiler-specific DPAA exceptions.
44 .if "${COMPILER_TYPE}" == "clang"
46 -Wno-error=parentheses-equality \
47 -Wno-error=self-assign \
48 -Wno-error=incompatible-pointer-types-discards-qualifiers \
49 -Wno-error=non-literal-null-conversion \
50 -Wno-error=enum-conversion
51 .elif "${COMPILER_TYPE}" == "gcc"
53 -Wno-error=int-in-bool-context
56 # Build position-independent kernel
60 .if !empty(DDB_ENABLED)
61 CFLAGS+= -fno-omit-frame-pointer
78 .include "$S/conf/kern.post.mk"