mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-20 09:35:26 +00:00
Upgrade buildroot to 2023.05 (from 2021.08.2), kernel is upgraded to 6.3 (from 5.13.19).
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
# All host rust packages should depend on this option
|
||||
config BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
|
||||
default y if BR2_HOSTARCH = "aarch64"
|
||||
default y if BR2_HOSTARCH = "mips"
|
||||
default y if BR2_HOSTARCH = "mipsel"
|
||||
default y if BR2_HOSTARCH = "powerpc"
|
||||
default y if BR2_HOSTARCH = "powerpc64"
|
||||
default y if BR2_HOSTARCH = "powerpc64le"
|
||||
default y if BR2_HOSTARCH = "riscv64"
|
||||
default y if BR2_HOSTARCH = "s390x"
|
||||
default y if BR2_HOSTARCH = "x86"
|
||||
default y if BR2_HOSTARCH = "x86_64"
|
||||
|
||||
# The pre-built Rust standard library is only available for a number
|
||||
# of architectures/C libraries combinations, with different levels of
|
||||
@@ -16,7 +25,7 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER1_PLATFORMS
|
||||
# aarch64-unknown-linux-gnu
|
||||
default y if BR2_aarch64 && BR2_TOOLCHAIN_USES_GLIBC
|
||||
# i686-unknown-linux-gnu
|
||||
default y if (BR2_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_GLIBC
|
||||
default y if (BR2_x86_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_GLIBC
|
||||
# x86_64-unknown-linux-gnu
|
||||
default y if BR2_x86_64 && BR2_TOOLCHAIN_USES_GLIBC
|
||||
|
||||
@@ -33,6 +42,9 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS
|
||||
default y if BR2_ARM_CPU_ARMV6 && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_GLIBC
|
||||
# armv7-unknown-linux-gnueabihf
|
||||
default y if BR2_ARM_CPU_ARMV7A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_GLIBC
|
||||
# armv7-unknown-linux-gnueabihf for armv8 hardware with 32-bit
|
||||
# userspace
|
||||
default y if BR2_arm && BR2_ARM_CPU_ARMV8A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_GLIBC
|
||||
# mips-unknown-linux-gnu
|
||||
default y if BR2_mips && BR2_TOOLCHAIN_USES_GLIBC && !BR2_MIPS_CPU_MIPS32R6
|
||||
# mips64-unknown-linux-gnuabi64
|
||||
@@ -49,10 +61,12 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS
|
||||
default y if BR2_powerpc64le && BR2_TOOLCHAIN_USES_GLIBC
|
||||
# riscv64gc-unknown-linux-gnu
|
||||
# "g" stands for imafd, and we also need "c".
|
||||
default y if BR2_riscv && BR2_RISCV_ISA_RVI && BR2_RISCV_ISA_RVM && \
|
||||
default y if BR2_RISCV_64 && BR2_RISCV_ISA_RVI && BR2_RISCV_ISA_RVM && \
|
||||
BR2_RISCV_ISA_RVA && BR2_RISCV_ISA_RVF && \
|
||||
BR2_RISCV_ISA_RVD && BR2_RISCV_ISA_RVC && \
|
||||
BR2_TOOLCHAIN_USES_GLIBC
|
||||
# s390x-unknown-linux-gnu
|
||||
default y if BR2_s390x && BR2_TOOLCHAIN_USES_GLIBC
|
||||
# x86_64-unknown-linux-musl
|
||||
default y if BR2_x86_64 && BR2_TOOLCHAIN_USES_MUSL
|
||||
|
||||
@@ -75,12 +89,15 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS
|
||||
default y if BR2_ARM_CPU_ARMV7A && BR2_ARM_EABI && BR2_TOOLCHAIN_USES_MUSL
|
||||
# armv7-unknown-linux-musleabihf
|
||||
default y if BR2_ARM_CPU_ARMV7A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_MUSL
|
||||
# armv7-unknown-linux-musleabihf for armv8 hardware with 32-bit
|
||||
# userspace
|
||||
default y if BR2_arm && BR2_ARM_CPU_ARMV8A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_MUSL
|
||||
# i586-unknown-linux-gnu
|
||||
default y if BR2_i586 && BR2_TOOLCHAIN_USES_GLIBC
|
||||
default y if BR2_x86_i586 && BR2_TOOLCHAIN_USES_GLIBC
|
||||
# i586-unknown-linux-musl
|
||||
default y if BR2_i586 && BR2_TOOLCHAIN_USES_MUSL
|
||||
default y if BR2_x86_i586 && BR2_TOOLCHAIN_USES_MUSL
|
||||
# i686-unknown-linux-musl
|
||||
default y if (BR2_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_MUSL
|
||||
default y if (BR2_x86_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_MUSL
|
||||
# mips-unknown-linux-musl
|
||||
default y if BR2_mips && BR2_TOOLCHAIN_USES_MUSL && !BR2_MIPS_CPU_MIPS32R6
|
||||
# mips64-unknown-linux-muslabi64
|
||||
@@ -93,17 +110,25 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS
|
||||
default y if BR2_sparc64 && BR2_TOOLCHAIN_USES_GLIBC
|
||||
|
||||
# All target rust packages should depend on this option
|
||||
# Note: With musl based toolchain, we need a C++ cross compiler to
|
||||
# build host-rust some target libraries (libunwind) from llvm source
|
||||
# code bundled in rust sources.
|
||||
config BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_PACKAGE_HOST_RUSTC_TARGET_TIER1_PLATFORMS
|
||||
default y if BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS
|
||||
default y if BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS
|
||||
depends on BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_MUSL
|
||||
depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
|
||||
|
||||
config BR2_PACKAGE_HOST_RUSTC_ARCH
|
||||
string
|
||||
default "armv5te" if BR2_ARM_CPU_ARMV5
|
||||
default "arm" if BR2_ARM_CPU_ARMV6
|
||||
default "armv7" if BR2_ARM_CPU_ARMV7A
|
||||
default BR2_ARCH if !BR2_ARM_CPU_ARMV7A
|
||||
default "armv7" if BR2_ARM_CPU_ARMV7A || (BR2_arm && BR2_ARM_CPU_ARMV8A)
|
||||
default "riscv64gc" if BR2_RISCV_64
|
||||
default BR2_ARCH
|
||||
|
||||
config BR2_PACKAGE_HOST_RUSTC_ABI
|
||||
string
|
||||
|
||||
@@ -11,7 +11,9 @@ ifeq ($(BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS),y)
|
||||
RUSTC_TARGET_NAME = $(RUSTC_ARCH)-unknown-linux-$(LIBC)$(RUSTC_ABI)
|
||||
endif
|
||||
|
||||
ifeq ($(HOSTARCH),x86)
|
||||
ifeq ($(HOSTARCH),riscv64)
|
||||
RUSTC_HOST_ARCH = riscv64gc
|
||||
else ifeq ($(HOSTARCH),x86)
|
||||
RUSTC_HOST_ARCH = i686
|
||||
else
|
||||
RUSTC_HOST_ARCH = $(HOSTARCH)
|
||||
@@ -20,15 +22,3 @@ endif
|
||||
RUSTC_HOST_NAME = $(RUSTC_HOST_ARCH)-unknown-linux-gnu
|
||||
|
||||
$(eval $(host-virtual-package))
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS),y)
|
||||
define RUSTC_INSTALL_CARGO_CONFIG
|
||||
mkdir -p $(HOST_DIR)/share/cargo
|
||||
sed -e 's/@RUSTC_TARGET_NAME@/$(RUSTC_TARGET_NAME)/' \
|
||||
-e 's/@CROSS_PREFIX@/$(notdir $(TARGET_CROSS))/' \
|
||||
package/rustc/cargo-config.in \
|
||||
> $(HOST_DIR)/share/cargo/config
|
||||
endef
|
||||
# check-package disable TypoInPackageVariable - TOOLCHAIN intended
|
||||
TOOLCHAIN_POST_INSTALL_STAGING_HOOKS += RUSTC_INSTALL_CARGO_CONFIG
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user