rust: update to 1.68.1
also add new variable CARGO_VARS to make it possible to pass environment variables for cargo process. This is necessary when for example, cross-compiling netavark. Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
This commit is contained in:
parent
692fe359a9
commit
49782b3db4
3 changed files with 5 additions and 3 deletions
|
@ -5,12 +5,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=rust
|
PKG_NAME:=rust
|
||||||
PKG_VERSION:=1.68.0
|
PKG_VERSION:=1.68.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=rustc-$(PKG_VERSION)-src.tar.gz
|
PKG_SOURCE:=rustc-$(PKG_VERSION)-src.tar.gz
|
||||||
PKG_SOURCE_URL:=https://static.rust-lang.org/dist/
|
PKG_SOURCE_URL:=https://static.rust-lang.org/dist/
|
||||||
PKG_HASH:=eaf4d8b19f23a232a4770fb53ab5e7acdedec11da1d02b0e5d491ca92ca96d62
|
PKG_HASH:=ccb051df5701d4c588e3d0558f83e73e7eea0a9b165dab3e39dd2db8a6a25d03
|
||||||
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/rustc-$(PKG_VERSION)-src
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/rustc-$(PKG_VERSION)-src
|
||||||
|
|
||||||
PKG_MAINTAINER:=Luca Barbato <lu_zero@luminem.org>
|
PKG_MAINTAINER:=Luca Barbato <lu_zero@luminem.org>
|
||||||
|
|
|
@ -27,7 +27,8 @@ define Build/Compile/Cargo
|
||||||
CARGO_HOME=$(CARGO_HOME) \
|
CARGO_HOME=$(CARGO_HOME) \
|
||||||
TARGET_CFLAGS="$(TARGET_CFLAGS) $(RUST_CFLAGS)" \
|
TARGET_CFLAGS="$(TARGET_CFLAGS) $(RUST_CFLAGS)" \
|
||||||
TARGET_CC=$(TARGET_CC_NOCACHE) \
|
TARGET_CC=$(TARGET_CC_NOCACHE) \
|
||||||
CC=$(HOSTCC) \
|
CC=$(HOSTCC_NOCACHE) \
|
||||||
|
$(CARGO_VARS) \
|
||||||
cargo install -v \
|
cargo install -v \
|
||||||
--profile stripped \
|
--profile stripped \
|
||||||
--target $(RUSTC_TARGET_ARCH) \
|
--target $(RUSTC_TARGET_ARCH) \
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
CONFIG_HOST_SUFFIX:=$(word 4, $(subst -, ,$(GNU_HOST_NAME)))
|
CONFIG_HOST_SUFFIX:=$(word 4, $(subst -, ,$(GNU_HOST_NAME)))
|
||||||
RUSTC_HOST_ARCH:=$(HOST_ARCH)-unknown-linux-$(CONFIG_HOST_SUFFIX)
|
RUSTC_HOST_ARCH:=$(HOST_ARCH)-unknown-linux-$(CONFIG_HOST_SUFFIX)
|
||||||
CARGO_HOME:=$(STAGING_DIR_HOSTPKG)/cargo
|
CARGO_HOME:=$(STAGING_DIR_HOSTPKG)/cargo
|
||||||
|
CARGO_VARS:=
|
||||||
|
|
||||||
ifeq ($(CONFIG_USE_MUSL),y)
|
ifeq ($(CONFIG_USE_MUSL),y)
|
||||||
# Force linking of the SSP library for musl
|
# Force linking of the SSP library for musl
|
||||||
|
|
Loading…
Reference in a new issue