mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Find and use latest installed GNURL78 toolchain automatically.
This commit is contained in:
parent
d722c76539
commit
8ced0a746b
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 New Issue
Block a user