Age | Commit message (Collapse) | Author |
|
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
As a side effect it helps the builds where pcre is staged in native
sysroot and CMake system is confusing that and adds it to linker
cmdline, its evident with clang as cross compiler since it brings
libpcre-native into native sysroot
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Alistair Francis <alistair@alistair23.me>
|
|
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Fix library install path to consider multilib as well
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
This is a security release on the 0.27 branch.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
support testcase ssh2.sh
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
One of the ptest was failing as it was missing an RDEPENDS
for its test on documentation.
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Fixes:
Missing or unbuildable dependency chain was: ['nativesdk-cmake', 'nativesdk-curl', 'nativesdk-libssh2']
So, extend libssh2 to nativesdk to fix this issue.
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Porting the patch from <https://github.com/libssh2/libssh2/commit/
dedcbd106f8e52d5586b0205bc7677e4c9868f9c> to solve CVE-2019-17498.
Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
1) Upgrade libssh2 from 1.8.2 to 1.9.0.
2) Modify PACKAGECONFIG for configure options have been changed in new version.
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
The License of of libssh2 is BSD-3-Clause.
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Since this commit (found by bisecting) in oe-core:
fd6a007efa native: Stop clearing PACKAGES
There is a dependency loop at parse time for cargo:
Dependency loop #1 found:
Task virtual:native:/.../recipes-devtools/cargo/cargo_1.47.0.bb:do_compile (dependent Tasks ['cargo_1.47.0.bb:do_configure'])
Task virtual:native:/.../recipes-devtools/cargo/cargo_1.47.0.bb:do_install (dependent Tasks ['cargo_1.47.0.bb:do_compile'])
Task virtual:native:/.../recipes-devtools/cargo/cargo_1.47.0.bb:do_populate_sysroot (dependent Tasks ['cargo_1.47.0.bb:do_install'])
Task virtual:native:/.../recipes-devtools/cargo/cargo_1.47.0.bb:do_prepare_recipe_sysroot (dependent Tasks ['cargo_1.47.0.bb:do_fetch', 'cargo_1.47.0.bb:do_populate_sysroot', 'zlib_1.2.11.bb:do_populate_sysroot', 'openssl_1.1.1i.bb:do_populate_sysroot', 'rust_1.47.0.bb:do_populate_sysroot', 'ca-certificates_20210119.bb:do_populate_sysroot', 'curl_7.74.0.bb:do_populate_sysroot', 'libssh2_1.8.2.bb:do_populate_sysroot'])
Task virtual:native:/.../recipes-devtools/cargo/cargo_1.47.0.bb:do_configure (dependent Tasks ['cargo_1.47.0.bb:do_cargo_setup_snapshot', 'cargo_1.47.0.bb:do_patch', 'cargo_1.47.0.bb:do_rust_create_wrappers', 'cargo_1.47.0.bb:do_prepare_recipe_sysroot'])
Break this loop by removing the dependency of cargo-native on itself.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
|
|
cargo, rust, and rustfmt can't be built for the targets yet
so exclude them from world builds.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
|
|
riscv port of libunwind is not available yet
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Set the cpu, features, and abi correctly
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
In llvm11 we have both riscv32 or riscv64 backends so enable them
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
This now matches with llvm target backend in llvm 11
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
Place generated artifacts in the directory suggested by bitbake (${B})
instead of directly in the source directory. This has multiple
advantages such as the ability to share source directory between
multiple machine types without risking cross contamination.
|
|
arm-unknown-linux-gnueabihf was incorrectly used as llvm-target instead
of armv7-unknown-linux-gnueabihf when building for some Cortex A SoCs.
This may cause segfaults in non trivial rust applications on ARMv7
when e.g. +a7 is passed to LLVM. It seems to differ between different
versions of the compiler and LLVM versions.
|
|
|
|
These bits and pieces had evidently been copy-pasted forward into each
new recipe version, but now they are all identical and can be tidied up.
|
|
this is undefined behavior in bitbake, prepend space instead
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Khem Raj <randy.macleod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
libgit2 0.28.x is shipped by latest Yocto Dunfell.
According to https://github.com/rust-lang/git2-rs/issues/458#issuecomment-522567539, there are no compatibility guarantees between libgit2-sys and arbitrary system libgit2 versions, so better keep this turned off.
Fixes "invalid version 3 on git_proxy_options" during build.
Further references:
* https://github.com/rust-lang/git2-rs/issues/458
* https://bugs.gentoo.org/707746#c1
|
|
Rust version 1.46.0 was added to the layer a while back, but the
corresponding cargo recipe seems to have been missed.
|
|
|
|
* BB_NUMBER_THREADS is number of bitbake tasks running in
parallel, not parallelization inside individual tasks
* use oe.utils.parallel_make_argument to make sure it
works even when people add e.g. "-l 10" in PARALLEL_MAKE
* with the recent improvements for rust-native build time, I wanted
to rerun some build time tests from
https://github.com/shr-project/test-oe-build-time
here are the results on AMD Threadripper 3970x with 128GB ram:
BB is BB_NUMBER_THREADS
PM is PARALLEL_MAKE
TIME BB PM Description
20:50 * * zeus based build with 1.37 rust (BB/PM has no impact)
14:50 8 32,48,64 dunfell, 1.43 as in https://github.com/meta-rust/meta-rust/commit/d2ff87ca5545b8081b16ac8f53ed4295593208c6 (PM has no impact, because bootstrap uses BB)
9:50 8 32,48,64 dunfell, 1.43 with this patch applied, it doesn't get faster after some threashold of PM
13:32 8 64 dunfell, 1.43 with this patch applied and "rust.inc: cut build time in half" (https://github.com/meta-rust/meta-rust/commit/afcb58e5b9cbda7efb1c8a12c980cb2f583728bd) reverted
13:30 8 64 dunfell, 1.43 with "rust.inc: cut build time in half" (https://github.com/meta-rust/meta-rust/commit/afcb58e5b9cbda7efb1c8a12c980cb2f583728bd) as well as "rust.inc: run bootstrap.py in parallel" (https://github.com/meta-rust/meta-rust/commit/40a6bd8a8d943eff495c7fdeb0bf8452891f6f99) reverted to see if 1.43 builds faster without any meta-rust improvements compared to 1.37
94:47 1 64 dunfell, 1.43 as in https://github.com/meta-rust/meta-rust/commit/d2ff87ca5545b8081b16ac8f53ed4295593208c6 (either something went wrong or explicit "-j 1" disables some parallelism done by default already
13:40 * * zeus based build with 1.39 rust (BB/PM has no impact)
10:50 8 64 zeus based build with 1.39 rust as proposed in jansa/new-zeus-branch
80:51 8 1 zeus based build with 1.39 rust as proposed in jansa/new-zeus-branch with "-j 1" PARALLEL_MAKE
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
d55cce6b8b6b510bf4905f19b949f7995af57a4d added a use of
BB_NUMBER_THREADS which is not whitelisted in Poky. This caused machines
with a different number of CPUs to have different sstate for
rust-native.
|
|
Signed-off-by: Alistair Francis <alistair@alistair23.me>
|
|
This reverts commit dd0fc89389d3f72fe025f71507e6cb1865b0829d.
|
|
This patch got dropped from the new cargo version
|
|
Don't tar everything up just to untar it again. This literally takes
longer than actually building the rust compiler
|
|
Allow bootstrap.py to use as many cores as bitbake normally uses
|
|
As a string this was actually being ignored. It mostly didn't matter
because max-atomic-width falls back to target-pointer-size, and they are
usually the same. However, at least on i586, 64-bit atomics are
supported with a 32-bit pointer size.
|
|
The whole point of rust-native is that it should be common for all
targets. If we reference TARGET variables during the build of
rust-native, then bitbake will build a different version for different
TARGETS.
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
`exec` from shell wrapper to avoid persistent sh process
|
|
|
|
|
|
The image should contain a demo program from a variety
of languages but let's start with rust.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
|
|
Fixes:
WARNING: Fuzz detected:
checking file Cargo.toml
Hunk #1 succeeded at 24 with fuzz 1.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|
|
|
|
|
Use Python3 as the native Python instead of Python2.
Signed-off-by: Alistair Francis <alistair@alistair23.me>
|
|
Since https://github.com/openembedded/openembedded-core/commit/ac83d22eb5031f7fdd09d34a1a46d92fd3e39a3c
The armvX arch definition is not present in TUNE_FEATURES but is now in
MACHINEOVERRIDES. Improve parsing so that MACHINEOVERRIDES is also checked.
Fixes #240
Tested on raspberrypi3 with balenaOS which uses rust.
Signed-off-by: Zubair Lutfullah Kakakhel <zubair@balena.io>
|
|
|