summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-05-02 21:27:24 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-05-25 23:28:25 +0100
commitb40ad7d269d131b153e6e97011c41ffdde68aaed (patch)
treeb58e0bc37acd9c79331abd8d254255266b50ad84
parent94b23da3c4a9a96af8ae4a4b2308037acb8d58dd (diff)
downloadrockbox-b40ad7d.tar.gz
rockbox-b40ad7d.tar.bz2
rockbox-b40ad7d.zip
mkimxboot: make cross compiler for dualboot stubs overridable
Change-Id: I90d2048f622b355eae7091e536b940b2ac828583
-rw-r--r--rbutil/mkimxboot/dualboot/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/rbutil/mkimxboot/dualboot/Makefile b/rbutil/mkimxboot/dualboot/Makefile
index 28e9643a3a..7abd381b2d 100644
--- a/rbutil/mkimxboot/dualboot/Makefile
+++ b/rbutil/mkimxboot/dualboot/Makefile
@@ -1,7 +1,7 @@
CC=gcc
LD=ld
OC=objcopy
-CROSS_PREFIX=arm-elf-eabi-
+PREFIX?=arm-elf-eabi-
REGS_PATH=../../../firmware/target/arm/imx233/regs
CFLAGS=-mcpu=arm926ej-s -std=gnu99 -I. -I$(REGS_PATH) -nostdlib -ffreestanding -fomit-frame-pointer -O
# Edit the following variables when adding a new target.
@@ -27,16 +27,16 @@ all: ../dualboot.h ../dualboot.c $(BOOTELFS)
# Dualboot bootloaders
dualboot_%.o: dualboot.c
- $(CROSS_PREFIX)$(CC) $(CFLAGS) $(OPT_$(@:dualboot_%.o=%)) -c -o $@ $^
+ $(PREFIX)$(CC) $(CFLAGS) $(OPT_$(@:dualboot_%.o=%)) -c -o $@ $^
dualboot_%.arm-elf: dualboot_%.o
- $(CROSS_PREFIX)$(LD) $(LDFLAGS) -Tdualboot.lds -o $@ $<
+ $(PREFIX)$(LD) $(LDFLAGS) -Tdualboot.lds -o $@ $<
# Rules for the ARM code embedded in mkamsboot - assemble, link, then extract
# the binary code and finally convert to .h for building in mkamsboot
%.arm-bin: %.arm-elf
- $(CROSS_PREFIX)$(OC) -O binary $< $@
+ $(PREFIX)$(OC) -O binary $< $@
../dualboot.c ../dualboot.h: $(BOOTBINS) bin2c
./bin2c ../dualboot $(BOOTBINS)