summaryrefslogtreecommitdiff
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-b40ad7d269d131b153e6e97011c41ffdde68aaed.tar.gz
rockbox-b40ad7d269d131b153e6e97011c41ffdde68aaed.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 @@
1CC=gcc 1CC=gcc
2LD=ld 2LD=ld
3OC=objcopy 3OC=objcopy
4CROSS_PREFIX=arm-elf-eabi- 4PREFIX?=arm-elf-eabi-
5REGS_PATH=../../../firmware/target/arm/imx233/regs 5REGS_PATH=../../../firmware/target/arm/imx233/regs
6CFLAGS=-mcpu=arm926ej-s -std=gnu99 -I. -I$(REGS_PATH) -nostdlib -ffreestanding -fomit-frame-pointer -O 6CFLAGS=-mcpu=arm926ej-s -std=gnu99 -I. -I$(REGS_PATH) -nostdlib -ffreestanding -fomit-frame-pointer -O
7# Edit the following variables when adding a new target. 7# Edit the following variables when adding a new target.
@@ -27,16 +27,16 @@ all: ../dualboot.h ../dualboot.c $(BOOTELFS)
27# Dualboot bootloaders 27# Dualboot bootloaders
28 28
29dualboot_%.o: dualboot.c 29dualboot_%.o: dualboot.c
30 $(CROSS_PREFIX)$(CC) $(CFLAGS) $(OPT_$(@:dualboot_%.o=%)) -c -o $@ $^ 30 $(PREFIX)$(CC) $(CFLAGS) $(OPT_$(@:dualboot_%.o=%)) -c -o $@ $^
31 31
32dualboot_%.arm-elf: dualboot_%.o 32dualboot_%.arm-elf: dualboot_%.o
33 $(CROSS_PREFIX)$(LD) $(LDFLAGS) -Tdualboot.lds -o $@ $< 33 $(PREFIX)$(LD) $(LDFLAGS) -Tdualboot.lds -o $@ $<
34 34
35# Rules for the ARM code embedded in mkamsboot - assemble, link, then extract 35# Rules for the ARM code embedded in mkamsboot - assemble, link, then extract
36# the binary code and finally convert to .h for building in mkamsboot 36# the binary code and finally convert to .h for building in mkamsboot
37 37
38%.arm-bin: %.arm-elf 38%.arm-bin: %.arm-elf
39 $(CROSS_PREFIX)$(OC) -O binary $< $@ 39 $(PREFIX)$(OC) -O binary $< $@
40 40
41../dualboot.c ../dualboot.h: $(BOOTBINS) bin2c 41../dualboot.c ../dualboot.h: $(BOOTBINS) bin2c
42 ./bin2c ../dualboot $(BOOTBINS) 42 ./bin2c ../dualboot $(BOOTBINS)