diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-05-02 21:27:24 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-05-25 23:28:25 +0100 |
commit | b40ad7d269d131b153e6e97011c41ffdde68aaed (patch) | |
tree | b58e0bc37acd9c79331abd8d254255266b50ad84 | |
parent | 94b23da3c4a9a96af8ae4a4b2308037acb8d58dd (diff) | |
download | rockbox-b40ad7d269d131b153e6e97011c41ffdde68aaed.tar.gz rockbox-b40ad7d269d131b153e6e97011c41ffdde68aaed.zip |
mkimxboot: make cross compiler for dualboot stubs overridable
Change-Id: I90d2048f622b355eae7091e536b940b2ac828583
-rw-r--r-- | rbutil/mkimxboot/dualboot/Makefile | 8 |
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 @@ | |||
1 | CC=gcc | 1 | CC=gcc |
2 | LD=ld | 2 | LD=ld |
3 | OC=objcopy | 3 | OC=objcopy |
4 | CROSS_PREFIX=arm-elf-eabi- | 4 | PREFIX?=arm-elf-eabi- |
5 | REGS_PATH=../../../firmware/target/arm/imx233/regs | 5 | REGS_PATH=../../../firmware/target/arm/imx233/regs |
6 | CFLAGS=-mcpu=arm926ej-s -std=gnu99 -I. -I$(REGS_PATH) -nostdlib -ffreestanding -fomit-frame-pointer -O | 6 | CFLAGS=-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 | ||
29 | dualboot_%.o: dualboot.c | 29 | dualboot_%.o: dualboot.c |
30 | $(CROSS_PREFIX)$(CC) $(CFLAGS) $(OPT_$(@:dualboot_%.o=%)) -c -o $@ $^ | 30 | $(PREFIX)$(CC) $(CFLAGS) $(OPT_$(@:dualboot_%.o=%)) -c -o $@ $^ |
31 | 31 | ||
32 | dualboot_%.arm-elf: dualboot_%.o | 32 | dualboot_%.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) |