mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Remove tons of old uClibc/installer system related stuff.
This commit is contained in:
@@ -30,16 +30,7 @@ THISAPP = util-linux-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.bz2
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
|
||||
# Normal build or /tools build.
|
||||
#
|
||||
ifeq "$(ROOT)" ""
|
||||
ifeq "$(LFS_PASS)" "install"
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-install
|
||||
else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
endif
|
||||
endif
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
@@ -80,16 +71,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/util-linux-2.12r-umount-no-special.patch
|
||||
ifeq "$(ROOT)" ""
|
||||
ifeq "$(LFS_PASS)" "install"
|
||||
cd $(DIR_APP) && CFLAGS="-Os -fomit-frame-pointer" ./configure
|
||||
cd $(DIR_APP) && echo "HAVE_SLANG=yes" >> make_include
|
||||
cd $(DIR_APP) && echo "SLANGFLAGS=-I/opt/$(MACHINE)-uClibc/include" >> make_include
|
||||
cd $(DIR_APP)/fdisk && make cfdisk
|
||||
cd $(DIR_APP)/fdisk && make sfdisk
|
||||
cd $(DIR_APP)/fdisk && install -m 0755 cfdisk /install/initrd/bin
|
||||
cd $(DIR_APP)/fdisk && install -m 0755 sfdisk /install/initrd/bin
|
||||
else
|
||||
cd $(DIR_APP) && sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
|
||||
hwclock/hwclock.c
|
||||
-mkdir -p /var/lib/hwclock
|
||||
@@ -98,7 +79,5 @@ else
|
||||
cd $(DIR_APP) && ./configure
|
||||
cd $(DIR_APP) && make $(MAKETUNING) HAVE_KILL=yes HAVE_SLN=yes
|
||||
cd $(DIR_APP) && make HAVE_KILL=yes HAVE_SLN=yes install
|
||||
endif
|
||||
endif
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user