xz: Build xz in toolchain.

This commit is contained in:
Michael Tremer
2012-08-20 12:13:40 +02:00
parent f19b3cb697
commit 31e94846be
2 changed files with 10 additions and 4 deletions

11
lfs/xz
View File

@@ -31,7 +31,13 @@ DL_FILE = $(THISAPP).tar.bz2
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
ifeq "$(ROOT)" ""
PREFIX = /usr
TARGET = $(DIR_INFO)/$(THISAPP)
else
PREFIX = /tools
TARGET = $(DIR_INFO)/$(THISAPP)-tools
endif
###############################################################################
# Top-level Rules
@@ -43,7 +49,6 @@ $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_MD5 = cc4044fcc073b8bcf3164d1d0df82161
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
@@ -72,7 +77,7 @@ $(subst %,%_MD5,$(objects)) :
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && ./configure --prefix=/usr
cd $(DIR_APP) && ./configure --prefix=$(PREFIX)
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)

View File

@@ -284,6 +284,7 @@ buildtoolchain() {
lfsmake1 sed
lfsmake1 tar
lfsmake1 texinfo
lfsmake1 xz
lfsmake1 fake-environ
lfsmake1 cleanup-toolchain PASS=2
export PATH=$ORG_PATH
@@ -350,6 +351,7 @@ buildbase() {
lfsmake2 udev
lfsmake2 util-linux
lfsmake2 vim
lfsmake2 xz
lfsmake2 grub
}
@@ -366,7 +368,6 @@ buildipfire() {
ipfiremake pptp
ipfiremake unzip
ipfiremake which
ipfiremake xz
ipfiremake linux-firmware
ipfiremake zd1211-firmware
ipfiremake rpi-firmware