Browse Source

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 <mikko.rapeli@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Mikko Rapeli 9 months ago
parent
commit
3a850ee377
1 changed files with 7 additions and 1 deletions
  1. 7 1
      meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb

+ 7 - 1
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"