zephyr-kernel/4.3: Fix sysrootarg
PATCH 1/4 zephyr-kernel/4.3: Fix sysrootarg
From: Lee Chee Yang <[email protected]>
| build_elf(args.elf_file, args.includes) | ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/data/build-zephyr/tmp/work/intel_ehl_crb-zephyr/zephyr-helloworld/4.3.0+git/sources/zephyr-helloworld-4.3.0+git/zephyr/arch/x86/zefi/zefi.py", line 120, in build_elf | ["-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar", sysrootarg, | ^^^^^^^^^^ | NameError: name 'sysrootarg' is not defined | ninja: build stopped: subcommand failed.
Signed-off-by Lee Chee Yang <[email protected]>
--- ...-x86-fix-efi-binary-generation-issue-in-cross-compila.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-v4.3.0-x86-fix-efi-binary-generation-issue-in-cross-compila.patch +2 -1
@@ -24,11 +24,12 @@ diff --git a/arch/x86/zefi/zefi.py b/arch/x86/zefi/zefi.py index b98419f8a49..790797f011a 100755 --- a/arch/x86/zefi/zefi.py +++ b/arch/x86/zefi/zefi.py -@@ -115,8 +115,9 @@ def build_elf(elf_file, include_dirs): +@@ -115,8 +115,10 @@ def build_elf(elf_file, include_dirs): includes = [] for include_dir in include_dirs: includes.extend(["-I", include_dir]) + # Pass --sysroot path for cross compilation ++ sysrootarg = "--sysroot=" + args.sysroot cmd = ([args.compiler, "-shared", "-Wall", "-Werror", "-I."] + includes + - ["-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar", + ["-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar", sysrootarg,
Signature · 1 line
2.37.3
PATCH 2/4 zephyr-kernel: fix cross compilation
From: Lee Chee Yang <[email protected]>
set CONFIG_STATIC_INIT_GNU=y when cross-compile toochain selected.
Fix:
| /data/wrynose/bitbake-builds/zephyr-master/build/tmp/work/i586-yocto-elf/zephyr-helloworld/4.3.0+git/recipe-sysroot-native/usr/bin/i586-yocto-elf/i586-yocto-elf-ld.bfd: GNU-style constructors required but STATIC_INIT_GNU not enabled | /data/wrynose/bitbake-builds/zephyr-master/build/tmp/work/i586-yocto-elf/zephyr-helloworld/4.3.0+git/recipe-sysroot-native/usr/bin/i586-yocto-elf/i586-yocto-elf-ld.bfd: warning: zephyr/zephyr_pre0.elf has a LOAD segment with RWX permissions | collect2: error: ld returned 1 exit status | ninja: build stopped: subcommand failed.
Signed-off-by Lee Chee Yang <[email protected]>
--- .../recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc | 1 + 1 file changed, 1 insertion(+)
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc +1 -0
@@ -26,6 +26,7 @@ EXTRA_OECMAKE = "\ -DSOC_ROOT=${SOC_ROOT} \ -DZEPHYR_TOOLCHAIN_VARIANT=${ZEPHYR_TOOLCHAIN_VARIANT} \ -DZEPHYR_MODULES=${ZEPHYR_MODULES} \ + ${@bb.utils.contains('ZEPHYR_TOOLCHAIN_VARIANT', 'cross-compile', '-DCONFIG_STATIC_INIT_GNU=y', '', d)} \ " ZEPHYR_EXTRA_MODULES = ""
Signature · 1 line
2.37.3
PATCH 3/4 zephyr-kernel: add support for v4.4.0
In reply to [email protected]From: Lee Chee Yang <[email protected]>
Signed-off-by Lee Chee Yang <[email protected]>
--- meta-zephyr-core/conf/layer.conf | 2 +- ...ry-generation-issue-in-cross-compila.patch | 119 ++++++ .../zephyr-kernel/zephyr-kernel-src-4.4.0.inc | 338 ++++++++++++++++++ .../zephyr-kernel-test-4.4.0.inc | 86 +++++ 4 files changed, 544 insertions(+), 1 deletion(-) create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-v4.4.0-x86-fix-efi-binary-generation-issue-in-cross-compila.patch create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-4.4.0.inc create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-4.4.0.inc
meta-zephyr-core/conf/layer.conf +1 -1
@@ -21,5 +21,5 @@ PYTHON3_NATIVE_SITEPACKAGES_DIR = "${libdir_native}/${PYTHON3_DIR}/site-packages addpylib ${LAYERDIR}/lib oeqa -PREFERRED_VERSION_zephyr-kernel ??= "4.3.0" +PREFERRED_VERSION_zephyr-kernel ??= "4.4.0" PREFERRED_VERSION_zephyr-sdk-native ??= "0.17.4"
meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-v4.4.0-x86-fix-efi-binary-generation-issue-in-cross-compila.patch new file +119 -0
119 lines not on this page · raw message
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-4.4.0.inc new file +338 -0
338 lines not on this page · raw message
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-4.4.0.inc new file +86 -0
86 lines not on this page · raw message
Signature · 1 line
2.37.3
PATCH 4/4 zephyr-sdk: add v1.0.1
In reply to [email protected]From: Lee Chee Yang <[email protected]>
Signed-off-by Lee Chee Yang <[email protected]>
--- meta-zephyr-core/conf/layer.conf | 2 +- .../recipes-devtools/zephyr-sdk/zephyr-sdk_1.0.1.bb | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_1.0.1.bb
meta-zephyr-core/conf/layer.conf +1 -1
@@ -22,4 +22,4 @@ PYTHON3_NATIVE_SITEPACKAGES_DIR = "${libdir_native}/${PYTHON3_DIR}/site-packages addpylib ${LAYERDIR}/lib oeqa PREFERRED_VERSION_zephyr-kernel ??= "4.4.0" -PREFERRED_VERSION_zephyr-sdk-native ??= "0.17.4" +PREFERRED_VERSION_zephyr-sdk-native ??= "1.0.1"
meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_1.0.1.bb new file +6 -0
@@ -0,0 +1,6 @@ +require zephyr-sdk.inc + +SDK_ARCHIVE = "zephyr-sdk-${PV}_linux-${BUILD_ARCH}_gnu.tar.xz" + +SRC_URI[x86_64.sha256sum] = "37a8c5b5569c2b482d39099c65fe3ddac4e43524996c731907e1e9f5818cbba7" +SRC_URI[aarch64.sha256sum] = "6e38018f70af5e90c18cc04c2f8ac5a91c99f5559b25692d1b0de328c3edb88a"
Signature · 1 line
2.37.3