mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -20,3 +20,15 @@ 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