Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
41
sources/poky/meta/classes-recipe/cargo_c.bbclass
Normal file
41
sources/poky/meta/classes-recipe/cargo_c.bbclass
Normal file
@@ -0,0 +1,41 @@
|
||||
#
|
||||
# Copyright OpenEmbedded Contributors
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
##
|
||||
## Purpose:
|
||||
## This class is used by any recipes that want to compile a C ABI compatible
|
||||
## library with header and pkg config file
|
||||
|
||||
inherit cargo pkgconfig
|
||||
|
||||
# the binaries we will use
|
||||
CARGO_C_BUILD = "cargo-cbuild"
|
||||
CARGO_C_INSTALL = "cargo-cinstall"
|
||||
|
||||
# We need cargo-c to compile for the target
|
||||
BASEDEPENDS:append = " cargo-c-native"
|
||||
|
||||
do_compile[progress] = "outof:\s+(\d+)/(\d+)"
|
||||
cargo_c_do_compile() {
|
||||
oe_cargo_fix_env
|
||||
export RUSTFLAGS="${RUSTFLAGS}"
|
||||
bbnote "Using rust targets from ${RUST_TARGET_PATH}"
|
||||
bbnote "cargo-cbuild = $(which ${CARGO_C_BUILD})"
|
||||
bbnote "${CARGO_C_BUILD} cbuild ${CARGO_BUILD_FLAGS}"
|
||||
"${CARGO_C_BUILD}" cbuild ${CARGO_BUILD_FLAGS}
|
||||
}
|
||||
|
||||
cargo_c_do_install() {
|
||||
oe_cargo_fix_env
|
||||
export RUSTFLAGS="${RUSTFLAGS}"
|
||||
bbnote "cargo-cinstall = $(which ${CARGO_C_INSTALL})"
|
||||
"${CARGO_C_INSTALL}" cinstall ${CARGO_BUILD_FLAGS} \
|
||||
--destdir ${D} \
|
||||
--prefix ${prefix} \
|
||||
--library-type cdylib
|
||||
}
|
||||
|
||||
EXPORT_FUNCTIONS do_compile do_install
|
||||
Reference in New Issue
Block a user