From 3a850ee377a71de27c19a6bb32b8ad663b98b4e6 Mon Sep 17 00:00:00 2001 From: Mikko Rapeli Date: Tue, 13 Aug 2024 17:12:21 +0300 Subject: [PATCH] ts-newlib: setup git with check_git_config ts-newlib has a custom do_patch function which is not setting up git like poky do_patch. Build without working git config may fail: | *** Please tell me who you are. | | Run | | git config --global user.email "you@example.com" | git config --global user.name "Your Name" | | to set your account's default identity. | Omit --global to set the identity only in this repository. | | fatal: unable to auto-detect email address (got 'tuxbake@81d82e1ac791.(none)') Fix this by calling check_git_config from poky utils to setup git correctly. Signed-off-by: Mikko Rapeli Signed-off-by: Jon Mason --- .../recipes-security/trusted-services/ts-newlib_4.1.0.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb b/meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb index 866276b3..1fda415a 100644 --- a/meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb +++ b/meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb @@ -25,7 +25,13 @@ export NEWLIB_CFLAGS_TARGET = "-Wno-implicit-function-declaration -Wno-int-conve # TS ships a patch that needs to be applied to newlib apply_ts_patch() { - ( cd ${WORKDIR}/git/newlib; git stash; git branch -f bf_am; git am ${S}/external/newlib/*.patch; git reset bf_am ) + set -ex + cd ${WORKDIR}/git/newlib + check_git_config + git stash + git branch -f bf_am + git am ${S}/external/newlib/*.patch + git reset bf_am } do_patch[postfuncs] += "apply_ts_patch"