1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-07 04:58:57 +00:00

arm/trusted-firmware-m: improve CMake calls

Use cmake more idiomatically, and enable verbose builds.

Change-Id: I908af71f4662fab1dde9de86fc7a56ca3701e0c5
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton
2020-12-18 17:34:25 +00:00
committed by Jon Mason
parent 235b7539d8
commit 60ef8543f4
@@ -80,6 +80,9 @@ EXTRA_OECMAKE += "-DCOMPILER=${TFM_COMPILER}"
EXTRA_OECMAKE += "${@bb.utils.contains('TFM_DEBUG', '1', '-DCMAKE_BUILD_TYPE=Debug', '', d)}"
EXTRA_OECMAKE += "-DPROJ_CONFIG=${S}/configs/${TFM_CONFIG}"
# Verbose builds
EXTRA_OECMAKE += "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
# Let the Makefile handle setting up the CFLAGS and LDFLAGS as it is a standalone application
CFLAGS[unexport] = "1"
LDFLAGS[unexport] = "1"
@@ -99,7 +102,7 @@ do_check_config() {
do_configure[cleandirs] = "${B}"
do_configure() {
cmake -G"Unix Makefiles" --build ${S} ${EXTRA_OECMAKE}
cmake -G"Unix Makefiles" ${S} ${EXTRA_OECMAKE}
}
# Invoke install here as there's no point in splitting compile from install: the
@@ -107,7 +110,7 @@ do_configure() {
# rebuild. It also overrides the install prefix to be in the build tree, so you
# can't use the usual install prefix variables.
do_compile() {
oe_runmake install
cmake --build ./ -- install
}
do_install() {