mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-09-16 12:14:20 +02:00
Machine-specific packages (like Linux kernel) should have machine-specific PACKAGE_ARCH that is obtained from MACHINE_ARCH. This allows to separate their build artifacts in TMPDIR. Currently all RISC-V machines override MACHINE_ARCH and artifacts for machine-specific recipes collide. For example kernels of both qemuriscv64 and freedom-u540 machines will be deployed into the same $D directory. Remove MACHINE_ARCH override and set tune PACKAGE_ARCH via PACKAGE_EXTRA_ARCHS. Signed-off-by: Taras Kondratiuk <takondra@cisco.com>
20 lines
585 B
PHP
20 lines
585 B
PHP
require conf/machine/include/arch-riscv.inc
|
|
|
|
TUNEVALID[riscv64] = "Enable 64-bit RISC-V optimizations"
|
|
TUNEVALID[riscv32] = "Enable 32-bit RISC-V optimizations"
|
|
|
|
TUNEVALID[littleendian] = "Little endian mode"
|
|
|
|
AVAILTUNES += "riscv64 riscv32"
|
|
|
|
TUNE_FEATURES_tune-riscv64 = "riscv64 littleendian"
|
|
TUNE_ARCH_tune-riscv64 = "riscv64"
|
|
TUNE_PKGARCH_tune-riscv64 = "riscv64"
|
|
PACKAGE_EXTRA_ARCHS_tune-riscv64 = "riscv64"
|
|
|
|
TUNE_FEATURES_tune-riscv32 = "riscv32 littleendian"
|
|
TUNE_ARCH_tune-riscv32 = "riscv32"
|
|
TUNE_PKGARCH_tune-riscv32 = "riscv32"
|
|
PACKAGE_EXTRA_ARCHS_tune-riscv32 = "riscv32"
|
|
|