Find and use latest installed GNURL78 toolchain automatically.
This commit is contained in:
parent
d722c76539
commit
8ced0a746b
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -3,7 +3,10 @@ PROJECT_MOT=$(PROJECT_ELF:.elf=.mot)
|
|||
PROJECT_MAP=$(PROJECT_ELF:.elf=.map)
|
||||
PROJECT_LST=$(PROJECT_ELF:.elf=.lst)
|
||||
|
||||
PREFIX=rl78-elf
|
||||
# Find latest installed GNURL78 toolchain. If your toolchain is already in PATH, just comment next line.
|
||||
TOOL_PATH:=$(shell find /usr/share -maxdepth 1 -type d -iname "gnurl78*" | sort | tail -n 1)/bin
|
||||
|
||||
PREFIX:=$(TOOL_PATH)/rl78-elf
|
||||
|
||||
LD = $(PREFIX)-gcc
|
||||
CC = $(PREFIX)-gcc
|
||||
|
|
Loading…
Reference in a new issue