summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-02-02libgit2: upgrade 1.0.0 -> 1.0.1rmacleod/rust-wip-2021-02-02Andreas Müller
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02libgit2: Enable pcre2 regexp backendKhem Raj
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>
2021-02-02libgit2: Update to v1.0.0Alistair Francis
Signed-off-by: Alistair Francis <alistair@alistair23.me> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02libgit2: Upgrade to 0.28.4Khem Raj
Fix library install path to consider multilib as well Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02libgit2: Don't pass parameters with their default values to cmakeAdrian Bunk
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02libgit2: Upgrade 0.27.9 -> 0.28.3Adrian Bunk
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02libgit2: Upgrade 0.27.8 -> 0.27.9Adrian Bunk
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>
2021-02-02libssh2: enhance ptestChangqing Li
support testcase ssh2.sh Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02libssh2: fix ptestSakib Sajal
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>
2021-02-02libssh2: enable ptestSakib Sajal
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02libssh2: add nativesdk supportPierre-Jean Texier
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>
2021-02-02libssh2: Security Advisory - libssh2 - CVE-2019-17498Li Zhou
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>
2021-02-02libssh2: upgrade 1.8.2 -> 1.9.0Zheng Ruoqin
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>
2021-02-02libssh2: Clarify BSD license variantChristophe PRIOUZEAU
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>
2021-02-02cargo: break dependency loopRandy MacLeod
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>
2021-02-02cargo/rust/rustfmt: exclude from worldRandy MacLeod
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>
2021-02-02libstd-rs: Remove libunwind on riscvKhem Raj
riscv port of libunwind is not available yet Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02rust: Add riscv32/riscv64 supportKhem Raj
Set the cpu, features, and abi correctly Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02rust: Build rust backendKhem Raj
In llvm11 we have both riscv32 or riscv64 backends so enable them Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02rust: Correct the data layout for riscv32Khem Raj
This now matches with llvm target backend in llvm 11 Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02cargo_common: Make output more readableJohan Anderholm
2021-02-02cargo: Enable build separationJohan Anderholm
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.
2021-02-02Use proper llvm-target for armv7Johan Anderholm
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.
2021-02-02add rust 1.47.0Dan Callaghan
2021-02-02clean up some common definitions across rust versionsDan Callaghan
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.
2021-02-02rust-bin.bbclass: Do not use append and += togetherKhem Raj
this is undefined behavior in bitbake, prepend space instead Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02rust-llvm.inc: export YOCTO_ALTERNATE_EXE_PATHKhem Raj
Signed-off-by: Khem Raj <randy.macleod@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02Disable LIBGIT2_SYS_USE_PKG_CONFIG due to incompatibility with 0.28.xColin Finck
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
2021-02-02cargo: add missing version 1.46.0Dan Callaghan
Rust version 1.46.0 was added to the layer a while back, but the corresponding cargo recipe seems to have been missed.
2021-02-02Add rust 1.46.0Steven Walter
2021-02-02rust: use PARALLEL_MAKE instead of BB_NUMBER_THREADSMartin Jansa
* 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>
2021-02-02rust.inc: whitelist BB_NUMBER_THREADS in do_compileTyler Hall
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.
2021-02-02Bump to Rust version 1.43Alistair Francis
Signed-off-by: Alistair Francis <alistair@alistair23.me>
2021-02-02Revert "cargo: fix progress output"Steven Walter
This reverts commit dd0fc89389d3f72fe025f71507e6cb1865b0829d.
2021-02-02cargo: fix progress outputSteven Walter
This patch got dropped from the new cargo version
2021-02-02rust.inc: cut build time in halfSteven Walter
Don't tar everything up just to untar it again. This literally takes longer than actually building the rust compiler
2021-02-02rust.inc: run bootstrap.py in parallelSteven Walter
Allow bootstrap.py to use as many cores as bitbake normally uses
2021-02-02rust.inc: make max-atomic-width an integerSteven Walter
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.
2021-02-02rust-native shouldn't depend on TARGET variablesSteven Walter
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.
2021-02-02rustfmt: Upgrade to 1.4.2Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-02Avoid extra sh process from shell wrapperAngus Lees
`exec` from shell wrapper to avoid persistent sh process
2021-02-02Update 0001-Disable-http2.patch for cargo 1.41.0Colin Finck
2021-02-02Update to Rust 1.41.0Colin Finck
2021-02-02rust: add a language demo image to test reproducibilityRandy MacLeod
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>
2021-02-02cargo: Refresh http2 disable patchAlex Kiernan
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>
2021-02-02Update 0001-Disable-http2.patch for Cargo shipped with Rust 1.40.0Colin Finck
2021-02-02Update to Rust and Cargo 1.40.0.Colin Finck
2021-02-02rust: Use Python3 native for buildAlistair Francis
Use Python3 as the native Python instead of Python2. Signed-off-by: Alistair Francis <alistair@alistair23.me>
2021-02-02rust: Improve TUNE_FEATURE parsingZubair Lutfullah Kakakhel
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>
2021-02-02Update to Rust and Cargo 1.39.0Reto Schneider