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 | 51 |
1 files changed, 51 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..06908e94fe --- /dev/null +++ b/meta-oe/recipes-extended/7zip/files/0001-support-yocto-cross-compiling.patch | |||
| @@ -0,0 +1,51 @@ | |||
| 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 | diff --git a/CPP/7zip/7zip_gcc.mak b/CPP/7zip/7zip_gcc.mak | ||
| 25 | index bcb06a0..297f0a8 100644 | ||
| 26 | --- a/CPP/7zip/7zip_gcc.mak | ||
| 27 | +++ b/CPP/7zip/7zip_gcc.mak | ||
| 28 | @@ -45,7 +45,7 @@ CFLAGS_DEBUG = -g | ||
| 29 | else | ||
| 30 | CFLAGS_DEBUG = -DNDEBUG | ||
| 31 | ifneq ($(CC), $(CROSS_COMPILE)clang) | ||
| 32 | -LFLAGS_STRIP = -s | ||
| 33 | +LFLAGS_STRIP = | ||
| 34 | endif | ||
| 35 | endif | ||
| 36 | |||
| 37 | diff --git a/CPP/7zip/var_gcc.mak b/CPP/7zip/var_gcc.mak | ||
| 38 | index 664491c..6d0f485 100644 | ||
| 39 | --- a/CPP/7zip/var_gcc.mak | ||
| 40 | +++ b/CPP/7zip/var_gcc.mak | ||
| 41 | @@ -6,7 +6,5 @@ IS_ARM64= | ||
| 42 | CROSS_COMPILE= | ||
| 43 | MY_ARCH= | ||
| 44 | USE_ASM= | ||
| 45 | -CC=$(CROSS_COMPILE)gcc | ||
| 46 | -CXX=$(CROSS_COMPILE)g++ | ||
| 47 | |||
| 48 | # -march=armv8-a+crc+crypto | ||
| 49 | -- | ||
| 50 | 2.34.1 | ||
| 51 | |||
