Skip to content

Commit

Permalink
Fix native build of optee-client
Browse files Browse the repository at this point in the history
This allows to build images natively on arm64 hosts again by fixing an
issue in optee-client via Isar. See also #482.

Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
jan-kiszka committed Oct 4, 2023
1 parent 84d1f00 commit 3d30e6a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions isar-patches/0001-optee-client-Fix-native-arm64-build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From fce7e3667affe5fce82381baeb473dd7342bf00d Mon Sep 17 00:00:00 2001
From: Jan Kiszka <[email protected]>
Date: Tue, 3 Oct 2023 21:42:55 +0200
Subject: [PATCH] optee-client: Fix native arm64 build

optee-client sets CROSS_COMPILE to arm-linux-gnueabihf- by default,
causing breakages when building natively, e.g. on arm64. Fix this by
simply setting CROSS_COMPILE unconditionally.

Signed-off-by: Jan Kiszka <[email protected]>
---
meta/recipes-bsp/optee-client/files/debian/rules.tmpl | 2 --
1 file changed, 2 deletions(-)

diff --git a/meta/recipes-bsp/optee-client/files/debian/rules.tmpl b/meta/recipes-bsp/optee-client/files/debian/rules.tmpl
index 1b7920d0..7d1b335b 100755
--- a/meta/recipes-bsp/optee-client/files/debian/rules.tmpl
+++ b/meta/recipes-bsp/optee-client/files/debian/rules.tmpl
@@ -7,9 +7,7 @@
#
# SPDX-License-Identifier: MIT

-ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-
-endif

%:
dh $@ --exclude=.a
--
2.35.3

3 changes: 3 additions & 0 deletions kas/iot2050.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ repos:
commit: ecc7cae423a828d294575301c1584fbe303cba3e
layers:
meta:
patches:
01:
path: isar-patches/0001-optee-client-Fix-native-arm64-build.patch

cip-core:
url: https://gitlab.com/cip-project/cip-core/isar-cip-core.git
Expand Down

0 comments on commit 3d30e6a

Please sign in to comment.