X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=lfs%2FConfig;h=415766d123da4b2bbd5ab7c87fa8ffda8b4b906b;hp=b91f2ee63d06705c06d2c1fe13e4a243f93f007a;hb=6f67c28d995d1dcf08cd2b874fa02aef6e5dba00;hpb=7273a322385000e403df6a9569f6352247b3ff30 diff --git a/lfs/Config b/lfs/Config index b91f2ee63..415766d12 100644 --- a/lfs/Config +++ b/lfs/Config @@ -57,8 +57,6 @@ DIR_CONF = $(LFS_BASEDIR)/config DIR_INFO = $(LFS_BASEDIR)/log DIR_TMP = /tmp -KGCC = gcc - ############################################################################### # Common Macro Definitions ############################################################################### @@ -68,7 +66,7 @@ KGCC = gcc # define FIND_FILES cd $(ROOT)/ && find -mount \ - -not -path './tools*' -not -path './tmp*' -not -path './usr/src*' \ + -not -path './tools*' -not -path './tmp*' -not -path './usr/src*' -not -path './run/*' \ -not -path './dev*' -not -path './proc*' -not -path './install*' | sort endef @@ -82,16 +80,8 @@ define PREBUILD # Fix installation on partial rebuild, so modules install where they should # and not everytime on the last compiled kernel if [ -f $(DIR_SRC)/linux-$(KVER) ]; then \ - if [ "$(PAE)" = "1" ]; then \ - cd $(DIR_SRC)/linux-$(KVER) && \ - sed -i -e 's+^EXTRAVERSION.*$$+EXTRAVERSION\ =\ $(word 4,$(subst ., .,$(KVER)))-ipfire-pae+' Makefile; \ - elif [ "$(XEN)" = "" ]; then \ - cd $(DIR_SRC)/linux-$(KVER) && \ - sed -i -e 's+^EXTRAVERSION.*$$+EXTRAVERSION\ =\ $(word 4,$(subst ., .,$(KVER)))-ipfire+' Makefile; \ - else \ - cd $(DIR_SRC)/linux-$(KVER) && \ - sed -i -e 's+^EXTRAVERSION.*$$+EXTRAVERSION\ =\ $(word 4,$(subst ., .,$(KVER)))-ipfire-xen+' Makefile; \ - fi; \ + cd $(DIR_SRC)/linux-$(KVER) && \ + sed -i -e 's+^EXTRAVERSION.*$$+EXTRAVERSION\ =\ $(word 4,$(subst ., .,$(KVER)))-ipfire$(KCFG)+' Makefile; \ fi endef else @@ -104,6 +94,8 @@ endif # ifeq "$(ROOT)" "" define POSTBUILD + @echo "Updating linker cache..." + @type -p ldconfig >/dev/null && ldconfig || : @echo "Install done; saving file list to $(TARGET) ..." @$(FIND_FILES) > $(DIR_SRC)/lsalrnew @diff $(DIR_SRC)/lsalr $(DIR_SRC)/lsalrnew | grep '^> ' | sed 's/^> //' > $(TARGET)_diff @@ -119,10 +111,7 @@ define POSTBUILD # $(TARGET)_rootfile : ROOTFILE with KVER replacement # $(TARGET) : log result with {commented|include|added} files if [ -s "$(TARGET)_diff" ]; then \ - if [ "$(PAE)" = "1" ]; then LFS_SCRIPT=$(firstword $(MAKEFILE_LIST))-pae; \ - elif [ "$(XEN)" = "1" ]; then LFS_SCRIPT=$(firstword $(MAKEFILE_LIST))-xen; \ - else LFS_SCRIPT=$(firstword $(MAKEFILE_LIST)); \ - fi; \ + LFS_SCRIPT=$(firstword $(MAKEFILE_LIST))$(KCFG); \ echo $(LFS_SCRIPT); \ ROOTFILE=$$(find $(DIR_SRC)/config/rootfiles/{common,packages}/{$(MACHINE),} -maxdepth 1 -type f -name $$LFS_SCRIPT 2>/dev/null | head -1); \ if [ "$$ROOTFILE" = "" ]; then \ @@ -200,7 +189,7 @@ define PAK tar xf /install/packages/package/files.tmp -C /install/packages/package/tmp/ \ -p --numeric-owner rm -f /install/packages/package/files.tmp - cd /install/packages/package/tmp/ && tar -c -p --numeric-owner -f /install/packages/package/files * + cd /install/packages/package/tmp/ && tar -c -p --numeric-owner -J -f /install/packages/package/files.tar.xz * rm -r /install/packages/package/tmp -cat /install/packages/package/ROOTFILES | grep -v "#" > /install/packages/package/ROOTFILES.tmp mv /install/packages/package/ROOTFILES.tmp /install/packages/package/ROOTFILES