mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
Consolidate powerpcspe CFLAGS
Don't depend on CPUTYPE to define powerpcspe CFLAGS, they should be set unconditionally. This reduces duplication. Also, set some CFLAGS as gcc-only, because clang's SPE support always uses the SPE ABI, it's not an optional feature.
This commit is contained in:
parent
52751739b9
commit
dc67cfef96
1 changed files with 2 additions and 3 deletions
|
|
@ -136,8 +136,6 @@ _CPUCFLAGS = -Wa,-me500 -msoft-float
|
|||
. else
|
||||
_CPUCFLAGS = -mcpu=${CPUTYPE} -mno-powerpc64
|
||||
. endif
|
||||
. elif ${MACHINE_ARCH} == "powerpcspe"
|
||||
_CPUCFLAGS = -Wa,-me500 -mspe -mabi=spe -mfloat-gprs=double -mcpu=8548
|
||||
. elif ${MACHINE_ARCH} == "powerpc64"
|
||||
_CPUCFLAGS = -mcpu=${CPUTYPE}
|
||||
. elif ${MACHINE_CPUARCH} == "mips"
|
||||
|
|
@ -367,7 +365,8 @@ LDFLAGS+= -Wl,--secure-plt
|
|||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "powerpcspe"
|
||||
CFLAGS += -mcpu=8548 -Wa,-me500 -mspe -mabi=spe -mfloat-gprs=double
|
||||
CFLAGS += -mcpu=8548 -mspe
|
||||
CFLAGS.gcc+= -mabi=spe -mfloat-gprs=double -Wa,-me500
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "riscv"
|
||||
|
|
|
|||
Loading…
Reference in a new issue