-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split into compile and install Signed-off-by: Donald Hoskins <grommish@gmail.com>
- Loading branch information
Showing
8 changed files
with
73 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
define Host/Configure | ||
# Required because OpenWrt Default CONFIGURE_ARGS contain extra | ||
# args that cause errors | ||
cd $(HOST_BUILD_DIR) && \ | ||
RUST_BACKTRACE=full ./configure $(CONFIGURE_ARGS) | ||
endef | ||
|
||
define Host/Compile | ||
cd $(HOST_BUILD_DIR) && \ | ||
RUST_BACKTRACE=full $(PYTHON) x.py --config ./config.toml dist \ | ||
cargo | ||
endef | ||
|
||
define Host/Install | ||
cd $(HOST_BUILD_DIR)/build/dist && \ | ||
$(RM) *.gz && \ | ||
$(call dl_tar_pack,$(DL_DIR)/$(RUST_INSTALL_FILE_NAME),.) && \ | ||
cd $(RUST_TMP_DIR) && \ | ||
$(TAR) -xJf $(DL_DIR)/$(RUST_INSTALL_FILE_NAME) && \ | ||
find -iname "*.xz" -exec $(TAR) -x -J -f {} ";" && \ | ||
find ./* -type f -name install.sh -execdir sh {} --prefix=$(CARGO_HOME) --disable-ldconfig \; | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
define Host/Configure | ||
true | ||
endef | ||
|
||
define Host/Compile | ||
true | ||
endef | ||
|
||
define Host/Install | ||
sh $(RUST_INSTALL_BINARIES) | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters