Allow overriding compilers for specific platforms
The Raspberry Pi 2 seems to need `gcc` instead of `as` as ${AS}
This commit is contained in:
parent
f96ec5ff89
commit
752c136910
|
@ -9,6 +9,12 @@ USE_OSS := 1
|
|||
#USE_PULSEAUDIO := 1
|
||||
USE_X11 := 1
|
||||
|
||||
CXX=${CC_PREFIX}g++
|
||||
CC=${CC_PREFIX}gcc
|
||||
AS=${CC_PREFIX}as
|
||||
STRIP=${CC_PREFIX}strip
|
||||
LD=${CC}
|
||||
|
||||
MFLAGS :=
|
||||
ASFLAGS :=
|
||||
LDFLAGS :=
|
||||
|
@ -65,6 +71,7 @@ else ifneq (,$(findstring AMD64,$(platform)))
|
|||
|
||||
# Raspberry Pi 2
|
||||
else ifneq (,$(findstring rpi2,$(platform)))
|
||||
AS=${CC_PREFIX}gcc
|
||||
MFLAGS += -marm -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard -funroll-loops
|
||||
ASFLAGS += -march=armv7-a -mfpu=neon -mfloat-abi=softfp
|
||||
CFLAGS += -D TARGET_BEAGLE -D TARGET_LINUX_ARMELv7 -DARM_HARDFP
|
||||
|
@ -106,12 +113,6 @@ endif
|
|||
RZDCY_SRC_DIR = ../../core
|
||||
include $(RZDCY_SRC_DIR)/core.mk
|
||||
|
||||
CXX=${CC_PREFIX}g++
|
||||
CC=${CC_PREFIX}gcc
|
||||
AS=${CC_PREFIX}as
|
||||
STRIP=${CC_PREFIX}strip
|
||||
LD=${CC}
|
||||
|
||||
LDFLAGS += -g -Wl,-Map,$(notdir $@).map,--gc-sections -Wl,-O3 -Wl,--sort-common
|
||||
|
||||
CFLAGS += -g -O3 -D RELEASE -c -D USES_HOMEDIR #-D NO_REND
|
||||
|
|
Loading…
Reference in New Issue