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