toolchain: Add zstd

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2020-12-30 14:33:32 +00:00
committed by Arne Fitzenreiter
parent 31098ed5fe
commit 2d29899daa
2 changed files with 10 additions and 2 deletions

View File

@@ -30,7 +30,14 @@ THISAPP = zstd-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
ifeq "$(TOOLCHAIN)" "1"
TARGET = $(DIR_INFO)/$(THISAPP)-tools
PREFIX = $(TOOLS_DIR)
else
TARGET = $(DIR_INFO)/$(THISAPP)
PREFIX = /usr
endif
###############################################################################
# Top-level Rules
@@ -74,6 +81,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make prefix=/usr install
cd $(DIR_APP) && make prefix=$(PREFIX) install
@rm -rf $(DIR_APP)
@$(POSTBUILD)

View File

@@ -1046,6 +1046,7 @@ buildtoolchain() {
lfsmake1 binutils PASS=2
lfsmake1 gcc PASS=2
lfsmake1 zlib
lfsmake1 zstd
lfsmake1 ccache PASS=2
lfsmake1 tcl
lfsmake1 expect