aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLawrence Nahum <lawrence@greenaddress.it>2019-12-08 19:50:08 +0100
committerLawrence Nahum <lawrence@greenaddress.it>2019-12-08 19:50:08 +0100
commite2e77805e5eb316d93d89de654690d79608118d6 (patch)
treec57f467b6a2ee655c12d6d1c407e391a88121a45 /examples
parent9e5d376e22cb9f85a646bf277d4952ca385b8c6d (diff)
downloadpsn00bsdk-e2e77805e5eb316d93d89de654690d79608118d6.tar.gz
don't set GCC_BASE if already set (useful for in home toolchain)
Diffstat (limited to 'examples')
-rw-r--r--examples/sdk-common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/sdk-common.mk b/examples/sdk-common.mk
index 0d97555..fa4da20 100644
--- a/examples/sdk-common.mk
+++ b/examples/sdk-common.mk
@@ -13,6 +13,8 @@ LIBDIRS = -L../../libpsn00b
GCC_VERSION = 7.4.0
+ifndef GCC_BASE
+
ifeq "$(OS)" "Windows_NT" # For Windows
GCC_BASE = /c/mipsel-unknown-elf
@@ -23,5 +25,7 @@ GCC_BASE = /usr/local/mipsel-unknown-elf
endif
+endif
+
LIBDIRS += -L$(GCC_BASE)/lib/gcc/mipsel-unknown-elf/$(GCC_VERSION)
INCLUDE += -I$(GCC_BASE)/lib/gcc/mipsel-unknown-elf/$(GCC_VERSION)/include