[PATCH] optee-client: Fix native arm64 build

8 views
Skip to first unread message

Jan Kiszka

unread,
Oct 3, 2023, 3:52:27 PM10/3/23
to isar-users, Baocheng Su
From: Jan Kiszka <jan.k...@siemens.com>

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 <jan.k...@siemens.com>
---
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

Jan Kiszka

unread,
Oct 12, 2023, 2:54:23 AM10/12/23
to isar-users, Baocheng Su
Can we get this simple patch merged, please?

Jan

--
Siemens AG, Technology
Linux Expert Center

Uladzimir Bely

unread,
Oct 12, 2023, 1:25:19 PM10/12/23
to Jan Kiszka, isar-users, Baocheng Su
On Tue, 2023-10-03 at 21:52 +0200, 'Jan Kiszka' via isar-users wrote:
> From: Jan Kiszka <jan.k...@siemens.com>
>
> 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 <jan.k...@siemens.com>
> ---
>  meta/recipes-bsp/optee-client/files/debian/rules.tmpl | 2 --
>  1 file changed, 2 deletions(-)
>

Applied to next, thanks.
Reply all
Reply to author
Forward
0 new messages