summaryrefslogtreecommitdiff
path: root/src/security/intel/stm/Makefile
blob: 31e5bdd88aa4bb6335d74674daeaa2463d9ef763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-License-Identifier: BSD-2-Clause

project_name=STM
project_dir=../../../../3rdparty/stm/
build_dir=$(project_dir)/Stm/build
project_git_branch=$(CONFIG_STM_GIT_BRANCH)

ifeq ($(CONFIG_STM_CONSOLE_DEBUG),y)
STM_BUILD="debug"
endif

ifeq ($(CONFIG_STM_CONSOLE_RELEASE),y)
STM_BUILD="release"
endif


all: build

build:
	echo "STM - Build"
	echo "--  WARNING: This uses the system toolchain instead of"
	echo "    the coreboot toolchain, so is not reproducible."
	cd $(project_dir)/Stm; \
	mkdir -p build; \
	cd build; \
	cmake .. -DBIOS=coreboot \
		-DUART=$(CONFIG_STM_TTYS0_BASE) \
		-DHEAPSIZE=$(CONFIG_STM_HEAPSIZE) \
		-DCBMEM_ENABLE=$(CONFIG_STM_CBMEM_CONSOLE) \
		-DSTMPE_ENABLED=$(CONFIG_STM_STMPE_ENABLED) \
		-DBUILD=$(STM_BUILD); \
	$(MAKE);


.PHONY: build