diff options
| author | John Wilbert Villamor <lameguy64@gmail.com> | 2020-01-06 09:11:51 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-06 09:11:51 +0800 |
| commit | e5d2799a8d2b929a3ed00e9af60a4f9a42840df3 (patch) | |
| tree | a61030dc2c433249d6a0c30ecfa3de2b296f4675 /examples | |
| parent | a32f227dbd17fad1c4dc29201aafebd03b4fae07 (diff) | |
| parent | 15263ff19694f0a6e03eb3d32021e0121e91ab19 (diff) | |
| download | psn00bsdk-e5d2799a8d2b929a3ed00e9af60a4f9a42840df3.tar.gz | |
Merge pull request #11 from greenaddress/readme_typo
toolchain readme typo and don't set GCC_BASE if already set
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/sdk-common.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/sdk-common.mk b/examples/sdk-common.mk index 0d97555..312fda3 100644 --- a/examples/sdk-common.mk +++ b/examples/sdk-common.mk @@ -10,9 +10,14 @@ INCLUDE = -I../../libpsn00b/include # Library directories, last entry must point toolchain libraries LIBDIRS = -L../../libpsn00b +ifndef GCC_VERSION GCC_VERSION = 7.4.0 +endif + +ifndef GCC_BASE + ifeq "$(OS)" "Windows_NT" # For Windows GCC_BASE = /c/mipsel-unknown-elf @@ -23,5 +28,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 |
