| 1 |
|
| 2 |
|
| 3 |
project_name=STM |
| 4 |
project_dir=../../../../3rdparty/stm/ |
| 5 |
build_dir=$(project_dir)/Stm/build |
| 6 |
project_git_branch=$(CONFIG_STM_GIT_BRANCH) |
| 7 |
|
| 8 |
ifeq ($(CONFIG_STM_CONSOLE_DEBUG),y) |
| 9 |
STM_BUILD="debug" |
| 10 |
endif |
| 11 |
|
| 12 |
ifeq ($(CONFIG_STM_CONSOLE_RELEASE),y) |
| 13 |
STM_BUILD="release" |
| 14 |
endif |
| 15 |
|
| 16 |
|
| 17 |
all: build |
| 18 |
|
| 19 |
build: |
| 20 |
echo "STM - Build" |
| 21 |
echo "-- WARNING: This uses the system toolchain instead of" |
| 22 |
echo " the coreboot toolchain, so is not reproducible." |
| 23 |
cd $(project_dir)/Stm; \ |
| 24 |
mkdir -p build; \ |
| 25 |
cd build; \ |
| 26 |
cmake .. -DBIOS=coreboot \ |
| 27 |
-DUART=$(CONFIG_STM_TTYS0_BASE) \ |
| 28 |
-DHEAPSIZE=$(CONFIG_STM_HEAPSIZE) \ |
| 29 |
-DCBMEM_ENABLE=$(CONFIG_STM_CBMEM_CONSOLE) \ |
| 30 |
-DSTMPE_ENABLED=$(CONFIG_STM_STMPE_ENABLED) \ |
| 31 |
-DBUILD=$(STM_BUILD); \ |
| 32 |
$(MAKE); |
| 33 |
|
| 34 |
|
| 35 |
.PHONY: build |