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