mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Zwischencommit Rootfiles...
Der Countdown laeuft... git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@334 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = ipfire
|
||||
|
||||
THISAPP = cdrom
|
||||
DL_FILE = rawrite.exe
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
@@ -81,8 +83,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
# Compress root filesystem
|
||||
# Reason for this tar+untar+tar is removing of entries listed two or more in src/ROOTFILES
|
||||
mkdir -p /install/cdrom/{doc,dosutils,images}
|
||||
find $(DIR_SRC)/config/rootfiles -type f -maxdepth 1 | xargs cat >> /tmp/ROOTFILES
|
||||
find $(DIR_SRC)/config/rootfiles/ver_$(IPFVER) -type f -maxdepth 1 | xargs cat >> /tmp/ROOTFILES
|
||||
find $(DIR_SRC)/config/rootfiles/common -maxdepth 1 -type f | xargs cat >> /tmp/ROOTFILES
|
||||
find $(DIR_SRC)/config/rootfiles/ver_$(IPFVER) -maxdepth 1 -type f | xargs cat >> /tmp/ROOTFILES
|
||||
tar -c -C / --files-from=/tmp/ROOTFILES \
|
||||
-f /$(SNAME).tar --exclude='#*' --exclude='dev/pts/*' \
|
||||
--exclude='proc/*' --exclude='tmp/ROOTFILES'
|
||||
|
||||
@@ -59,10 +59,14 @@ $(TARGET) :
|
||||
cd /tmp && rm -rf drivers.tgz drivers.tar bin lib etc var
|
||||
cd / && tar -cf /tmp/drivers.tar \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/acpi/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/base/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/block/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/bluetooth/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/char/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/ide/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/ieee1394/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/isdn/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/md/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/net/ppp*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/net/slip*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/net/slhc*' \
|
||||
@@ -72,16 +76,22 @@ $(TARGET) :
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/parport/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/scsi/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/message/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/mmc/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/input/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/usb/storage/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/drivers/usb/host/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/arch/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/fs/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/net/8021q/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/net/atm/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/net/bluetooth/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/net/bridge/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/net/ieee80211/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/net/ipsec/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/net/ipv4/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/net/key/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/net/sched/*' \
|
||||
--exclude='lib/modules/$(KVER)/kernel/net/xfrm/*' \
|
||||
--exclude='lib/modules/$(KVER)/*map' \
|
||||
--exclude='lib/modules/$(KVER)/misc/*' \
|
||||
--exclude='lib/modules/$(KVER)/extra/*' \
|
||||
|
||||
58
lfs/hwinfo
Normal file
58
lfs/hwinfo
Normal file
@@ -0,0 +1,58 @@
|
||||
###############################################################################
|
||||
# This file is part of the IPCop Firewall. #
|
||||
# #
|
||||
# IPCop is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# IPCop is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with IPCop; if not, write to the Free Software #
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||
# #
|
||||
# Makefiles are based on LFSMake, which is #
|
||||
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# Definitions
|
||||
###############################################################################
|
||||
|
||||
include Config
|
||||
|
||||
VER = ipfire
|
||||
|
||||
THISAPP = hwinfo
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
check :
|
||||
|
||||
download :
|
||||
|
||||
md5 :
|
||||
|
||||
###############################################################################
|
||||
# Installation Details
|
||||
###############################################################################
|
||||
|
||||
$(TARGET) :
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && mkdir $(DIR_APP) && cp -R $(DIR_SRC)/src/hwinfo/* $(DIR_APP)
|
||||
cd $(DIR_APP) && make tinystatic
|
||||
cd $(DIR_APP) && DESTDIR="/opt/$(MACHINE)-uClibc" make tinystaticinstall
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
@@ -126,8 +126,8 @@ $(TARGET) :
|
||||
mount -t ext2 $$LOOPDEV /install/mnt && \
|
||||
rm -rf /install/mnt/lost+found && \
|
||||
cp -aR /install/initrd/* /install/mnt/ && \
|
||||
cd /install/mnt && tar xfz /install/images/drivers-$(VERSION).img && \
|
||||
cd /install/mnt && tar xfz /install/images/scsidrv-$(VERSION).img && \
|
||||
cd /install/mnt && tar xfz /install/images/drivers-$(VERSION).img # && \
|
||||
# cd /install/mnt && tar xfz /install/images/scsidrv-$(VERSION).img && \
|
||||
cp -a /install/misc/bin/* /install/mnt/bin && \
|
||||
touch /install/mnt/CDROMBOOT && \
|
||||
cd / && umount /install/mnt && \
|
||||
|
||||
4
lfs/kbd
4
lfs/kbd
@@ -32,7 +32,7 @@ THISAPP = kbd-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.bz2
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
ifeq "$(PASS)" "install"
|
||||
ifeq "$(LFS_PASS)" "install"
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-install
|
||||
else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
@@ -79,7 +79,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-backspace-1.patch
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-gcc4_fixes-1.patch
|
||||
ifeq "$(PASS)" "install"
|
||||
ifeq "$(LFS_PASS)" "install"
|
||||
cd $(DIR_APP) && CFLAGS="-Os -fomit-frame-pointer" CC=/usr/bin/gcc ./configure --disable-nls
|
||||
cd $(DIR_APP)/src && make CFLAGS="-Os -fomit-frame-pointer" DATA_DIR=/lib/kbd BINDIR=/bin setfont kbd_mode dumpkeys loadkeys loadunimap showconsolefont
|
||||
cd $(DIR_APP)/src && install -m 0755 setfont loadunimap kbd_mode dumpkeys loadkeys showconsolefont unicode_start unicode_stop /install/initrd/bin
|
||||
|
||||
95
lfs/sysfsutils
Normal file
95
lfs/sysfsutils
Normal file
@@ -0,0 +1,95 @@
|
||||
###############################################################################
|
||||
# This file is part of the IPCop Firewall. #
|
||||
# #
|
||||
# IPCop is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# IPCop is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with IPCop; if not, write to the Free Software #
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||
# #
|
||||
# Makefiles are based on LFSMake, which is #
|
||||
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# Definitions
|
||||
###############################################################################
|
||||
|
||||
include Config
|
||||
|
||||
VER = 1.3.0
|
||||
|
||||
THISAPP = sysfsutils-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.gz
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
|
||||
ifeq "$(PASS)" "install"
|
||||
EXTRA_CONFIG = --prefix="" --disable-shared
|
||||
EXTRA_MAKE =
|
||||
EXTRA_INSTALL = DESTDIR=/install
|
||||
else
|
||||
EXTRA_CONFIG = --prefix=""
|
||||
EXTRA_MAKE =
|
||||
EXTRA_INSTALL =
|
||||
endif
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = d11c99271531be3c1e6d36b53968cd2b
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
|
||||
|
||||
download :$(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
|
||||
md5 : $(subst %,%_MD5,$(objects))
|
||||
|
||||
###############################################################################
|
||||
# Downloading, checking, md5sum
|
||||
###############################################################################
|
||||
|
||||
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
|
||||
@$(CHECK)
|
||||
|
||||
$(patsubst %,$(DIR_DL)/%,$(objects)) :
|
||||
@$(LOAD)
|
||||
|
||||
$(subst %,%_MD5,$(objects)) :
|
||||
@$(MD5)
|
||||
|
||||
###############################################################################
|
||||
# Installation Details
|
||||
###############################################################################
|
||||
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
ifeq "$(LFS_PASS)" "install"
|
||||
cd $(DIR_APP) && ./configure --disable-shared --prefix="" $(EXTRA_CONFIG)
|
||||
cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
|
||||
cd $(DIR_APP) && make DESTDIR=/opt/$(MACHINE)-uClibc install
|
||||
else
|
||||
cd $(DIR_APP) && ./configure $(EXTRA_CONFIG)
|
||||
cd $(DIR_APP) && make $(EXTRA_MAKE)
|
||||
cd $(DIR_APP) && make $(EXTRA_INSTALL) install
|
||||
endif
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
Reference in New Issue
Block a user