diff options
Diffstat (limited to 'meta-oe/recipes-extended/7zip/files/0001-support-yocto-cross-compiling.patch')
-rw-r--r-- | meta-oe/recipes-extended/7zip/files/0001-support-yocto-cross-compiling.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/7zip/files/0001-support-yocto-cross-compiling.patch b/meta-oe/recipes-extended/7zip/files/0001-support-yocto-cross-compiling.patch new file mode 100644 index 0000000000..e3d0477930 --- /dev/null +++ b/meta-oe/recipes-extended/7zip/files/0001-support-yocto-cross-compiling.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | From fd0d54f96576a8ff572bb7c7d28df6b097f99a30 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Wed, 18 Dec 2024 16:38:11 +0800 | ||
4 | Subject: [PATCH] support yocto cross compiling | ||
5 | |||
6 | Remove -s from $LFLAGS_STRIP, do not strip binary to workaournd | ||
7 | Yocto build warning | ||
8 | ... | ||
9 | WARNING: 7zip-native-24.09-r0 do_populate_sysroot: File 'tmp/work/x86_64-linux/ | ||
10 | 7zip-native/24.09/recipe-sysroot-native/usr/lib/7z.so' from 7zip-native was already stripped, | ||
11 | this will prevent future debugging! | ||
12 | ... | ||
13 | |||
14 | Apply CC, CXX from environments | ||
15 | |||
16 | Upstream-Status: Inappropriate [Yocto specific] | ||
17 | |||
18 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
19 | --- | ||
20 | CPP/7zip/7zip_gcc.mak | 2 +- | ||
21 | CPP/7zip/var_gcc.mak | 2 -- | ||
22 | 2 files changed, 1 insertion(+), 3 deletions(-) | ||
23 | |||
24 | --- a/CPP/7zip/7zip_gcc.mak | ||
25 | +++ b/CPP/7zip/7zip_gcc.mak | ||
26 | @@ -45,7 +45,7 @@ CFLAGS_DEBUG = -g | ||
27 | else | ||
28 | CFLAGS_DEBUG = -DNDEBUG | ||
29 | ifneq ($(CC), $(CROSS_COMPILE)clang) | ||
30 | -LFLAGS_STRIP = -s | ||
31 | +LFLAGS_STRIP = | ||
32 | endif | ||
33 | endif | ||
34 | |||
35 | --- a/CPP/7zip/var_gcc.mak | ||
36 | +++ b/CPP/7zip/var_gcc.mak | ||
37 | @@ -6,7 +6,5 @@ IS_ARM64= | ||
38 | CROSS_COMPILE= | ||
39 | MY_ARCH= | ||
40 | USE_ASM= | ||
41 | -CC=$(CROSS_COMPILE)gcc | ||
42 | -CXX=$(CROSS_COMPILE)g++ | ||
43 | |||
44 | # -march=armv8-a+crc+crypto | ||
45 | --- a/CPP/7zip/var_clang.mak | ||
46 | +++ b/CPP/7zip/var_clang.mak | ||
47 | @@ -6,6 +6,4 @@ IS_ARM64= | ||
48 | CROSS_COMPILE= | ||
49 | MY_ARCH= | ||
50 | USE_ASM= | ||
51 | -CC=$(CROSS_COMPILE)clang | ||
52 | -CXX=$(CROSS_COMPILE)clang++ | ||
53 | USE_CLANG=1 | ||