summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2015-09-29 22:49:02 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2015-09-29 22:49:02 +0200
commitbc25437448c0642a8ea22e3f513ef1ca658dd737 (patch)
tree1740018cc9561d237edd9d56685e7f6ef89b5aac
parent729e7130a04df5fc895a297edfb2411aabdef5b7 (diff)
downloadrockbox-bc25437448c0642a8ea22e3f513ef1ca658dd737.tar.gz
rockbox-bc25437448c0642a8ea22e3f513ef1ca658dd737.tar.bz2
rockbox-bc25437448c0642a8ea22e3f513ef1ca658dd737.zip
hwstub: make it possible to override toolchain
Default toolchain can be overriden using PREFIX, for example: PREFIX=arm-none-eabi- make Change-Id: I06f5ad0ad492b9f648ccba853a851918644f0500
-rw-r--r--utils/hwstub/stub/atj213x/Makefile9
-rw-r--r--utils/hwstub/stub/pp/Makefile9
-rw-r--r--utils/hwstub/stub/rk27xx/Makefile9
-rw-r--r--utils/hwstub/stub/stmp/Makefile9
4 files changed, 20 insertions, 16 deletions
diff --git a/utils/hwstub/stub/atj213x/Makefile b/utils/hwstub/stub/atj213x/Makefile
index 8ec37f3543..d653017a0f 100644
--- a/utils/hwstub/stub/atj213x/Makefile
+++ b/utils/hwstub/stub/atj213x/Makefile
@@ -1,10 +1,11 @@
#
# common
#
-CC=mipsel-elf-gcc
-LD=mipsel-elf-gcc
-AS=mipsel-elf-gcc
-OC=mipsel-elf-objcopy
+PREFIX?=mipsel-elf-
+CC=$(PREFIX)gcc
+LD=$(PREFIX)gcc
+AS=$(PREFIX)gcc
+OC=$(PREFIX)objcopy
DEFINES=
INCLUDES=-I$(CURDIR)
GCCOPTS=-march=mips32r2 -G0 -msoft-float
diff --git a/utils/hwstub/stub/pp/Makefile b/utils/hwstub/stub/pp/Makefile
index 73d5838f49..d4f16260dc 100644
--- a/utils/hwstub/stub/pp/Makefile
+++ b/utils/hwstub/stub/pp/Makefile
@@ -1,10 +1,11 @@
#
# common
#
-CC=arm-elf-eabi-gcc
-LD=arm-elf-eabi-gcc
-AS=arm-elf-eabi-gcc
-OC=arm-elf-eabi-objcopy
+PREFIX?=arm-elf-eabi-
+CC=$(PREFIX)gcc
+LD=$(PREFIX)gcc
+AS=$(PREFIX)gcc
+OC=$(PREFIX)objcopy
DEFINES=
INCLUDES=-I$(CURDIR)
GCCOPTS=-mcpu=arm7tdmi
diff --git a/utils/hwstub/stub/rk27xx/Makefile b/utils/hwstub/stub/rk27xx/Makefile
index 36fd07f3de..5de54f0b83 100644
--- a/utils/hwstub/stub/rk27xx/Makefile
+++ b/utils/hwstub/stub/rk27xx/Makefile
@@ -1,10 +1,11 @@
#
# common
#
-CC=arm-elf-eabi-gcc
-LD=arm-elf-eabi-gcc
-AS=arm-elf-eabi-gcc
-OC=arm-elf-eabi-objcopy
+PREFIX?=arm-elf-eabi-
+CC=$(PREFIX)gcc
+LD=$(PREFIX)gcc
+AS=$(PREFIX)gcc
+OC=$(PREFIX)objcopy
DEFINES=
INCLUDES=-I$(CURDIR)
GCCOPTS=-march=armv5te
diff --git a/utils/hwstub/stub/stmp/Makefile b/utils/hwstub/stub/stmp/Makefile
index 006f4ea73f..76f6d00a33 100644
--- a/utils/hwstub/stub/stmp/Makefile
+++ b/utils/hwstub/stub/stmp/Makefile
@@ -1,10 +1,11 @@
#
# common
#
-CC=arm-elf-eabi-gcc
-LD=arm-elf-eabi-gcc
-AS=arm-elf-eabi-gcc
-OC=arm-elf-eabi-objcopy
+PREFIX?=arm-elf-eabi-
+CC=$(PREFIX)gcc
+LD=$(PREFIX)gcc
+AS=$(PREFIX)gcc
+OC=$(PREFIX)objcopy
SBTOOLS=$(CURDIR)/../../../imxtools/sbtools
ELFTOSB=$(SBTOOLS)/elftosb
ELFTOSB1=$(SBTOOLS)/elftosb1