1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

detect absolute path to Makefile.include automagically

This commit is contained in:
Pavol Rusnak 2014-06-18 11:54:54 +02:00
parent 441bb3b513
commit add928373f

View File

@ -1,3 +1,6 @@
TOP_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
TOOLCHAIN_DIR := $(TOP_DIR)/../libopencm3
PREFIX ?= arm-none-eabi-
CC = $(PREFIX)gcc
LD = $(PREFIX)gcc
@ -5,8 +8,6 @@ OBJCOPY = $(PREFIX)objcopy
OBJDUMP = $(PREFIX)objdump
FLASH = st-flash
OPENOCD = openocd
TOP_DIR = /home/stick/work/trezor/trezor-mcu
TOOLCHAIN_DIR = $(TOP_DIR)/../libopencm3
OPTFLAGS = -Os -g