1# SPDX-License-Identifier: BSD-2-Clause 2 3project_name=STM 4project_dir=../../../../3rdparty/stm/ 5build_dir=$(project_dir)/Stm/build 6project_git_branch=$(CONFIG_STM_GIT_BRANCH) 7 8ifeq ($(CONFIG_STM_CONSOLE_DEBUG),y) 9STM_BUILD="debug" 10endif 11 12ifeq ($(CONFIG_STM_CONSOLE_RELEASE),y) 13STM_BUILD="release" 14endif 15 16 17all: build 18 19build: 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 36