mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
support build of different arm kernels and add verstile cfg.
This commit is contained in:
3461
config/kernel/kernel.config.armv5tel-ipfire-versatile
Normal file
3461
config/kernel/kernel.config.armv5tel-ipfire-versatile
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
5
config/rootfiles/common/armv5tel/linux-kirkwood
Normal file
5
config/rootfiles/common/armv5tel/linux-kirkwood
Normal file
@@ -0,0 +1,5 @@
|
||||
boot/uInit-ipfire-kirkwood
|
||||
boot/uImage-ipfire-kirkwood
|
||||
boot/System.map-KVER-ipfire-kirkwood
|
||||
boot/config-KVER-ipfire-kirkwood
|
||||
lib/modules/KVER-ipfire-kirkwood
|
||||
5
config/rootfiles/common/armv5tel/linux-versatile
Normal file
5
config/rootfiles/common/armv5tel/linux-versatile
Normal file
@@ -0,0 +1,5 @@
|
||||
boot/System.map-KVER-ipfire-versatile
|
||||
boot/config-KVER-ipfire-versatile
|
||||
boot/vmlinuz-KVER-ipfire-versatile
|
||||
boot/ipfirerd-KVER-versatile.img
|
||||
lib/modules/KVER-ipfire-versatile
|
||||
@@ -1,4 +1,4 @@
|
||||
boot/ipfirerd-KVER.img
|
||||
#boot/ipfirerd-KVER.img
|
||||
etc/dracut.conf
|
||||
etc/dracut.conf.d
|
||||
#etc/dracut.conf.d/dracut.conf
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
boot/ipfirerd-KVER.img
|
||||
boot/System.map-KVER-ipfire
|
||||
boot/System.map-ipfire
|
||||
boot/config-KVER-ipfire
|
||||
|
||||
@@ -88,9 +88,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
# Make the ISO
|
||||
mkdir -p /install/cdrom/boot/isolinux
|
||||
dd if=/dev/zero bs=1k count=2 > /install/cdrom/boot/isolinux/boot.catalog
|
||||
cp /install/images/initrd /install/cdrom/boot/isolinux/instroot
|
||||
cp /boot/vmlinuz-$(KVER)-ipfire /install/cdrom/boot/isolinux/vmlinuz
|
||||
ifneq "$(MACHINE_TYPE)" "arm"
|
||||
cp /boot/vmlinuz-$(KVER)-ipfire /install/cdrom/boot/isolinux/vmlinuz
|
||||
cp /install/images/initrd /install/cdrom/boot/isolinux/instroot
|
||||
cp $(DIR_SRC)/config/syslinux/syslinux.cfg /install/cdrom/boot/isolinux/isolinux.cfg
|
||||
cp $(DIR_SRC)/config/syslinux/boot.msg /install/cdrom/boot/isolinux/boot.msg
|
||||
cp $(DIR_SRC)/config/syslinux/splash.lss /install/cdrom/boot/isolinux/splash.lss
|
||||
@@ -101,6 +101,7 @@ endif
|
||||
xargs md5sum > md5sum.txt
|
||||
|
||||
ifeq "$(MACHINE_TYPE)" "arm"
|
||||
mkdir -p /install/images
|
||||
cd /install/cdrom && mkisofs -J -r -V "$(NAME)_$(VERSION)" \
|
||||
. > /install/images/$(SNAME)-$(VERSION).$(MACHINE)-full-core$(CORE).iso
|
||||
else
|
||||
|
||||
10
lfs/dracut
10
lfs/dracut
@@ -90,11 +90,15 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
# Build initramdisk
|
||||
# Strip all binaries in that initrd, because no debugging code is
|
||||
# needed.
|
||||
/sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER).img $(KVER)-ipfire
|
||||
|
||||
ifeq "$(MACHINE_TYPE)" "arm"
|
||||
#Convert initrd to uboot-image
|
||||
cd /boot && mkimage -A arm -T ramdisk -C lzma -d ipfirerd-$(KVER).img uInit
|
||||
# versatile kernel
|
||||
/sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER)-versatile.img $(KVER)-ipfire-versatile
|
||||
# kirkwood kernel
|
||||
/sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER)-kirkwood.img $(KVER)-ipfire-kirkwood
|
||||
cd /boot && mkimage -A arm -T ramdisk -C lzma -d ipfirerd-$(KVER)-kirkwood.img uInit-ipfire-kirkwood
|
||||
else
|
||||
/sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER).img $(KVER)-ipfire
|
||||
endif
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
@@ -30,6 +30,8 @@ THISAPP = initrd
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
|
||||
SUP_ARCH = i586
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
25
lfs/linux
25
lfs/linux
@@ -60,6 +60,13 @@ else
|
||||
HEADERS_ARCH=x86
|
||||
endif
|
||||
|
||||
ifeq "$(KCFG)" ""
|
||||
LASTKERNEL=1
|
||||
endif
|
||||
ifeq "$(KCFG)" "-kirkwood"
|
||||
LASTKERNEL=1
|
||||
endif
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
@@ -156,8 +163,8 @@ endif
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.27_ipg-fix-driver-name.patch
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.27_mcs7830-fix-driver-name.patch
|
||||
|
||||
ifeq "$(MACHINE_TYPE)" "arm"
|
||||
# Add dreamplug support on ARM
|
||||
ifeq "$(KCFG)" "-kirkwood"
|
||||
# Add dreamplug support on ARM-kirkwood
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.45-arm_kirkwood_dreamplug.patch
|
||||
endif
|
||||
|
||||
@@ -184,14 +191,19 @@ ifeq "$(KCFG)" "-xen"
|
||||
cd $(DIR_APP) && make $(MAKETUNING) CC="$(KGCC)" vmlinuz
|
||||
cd $(DIR_APP) && cp -v arch/i386/boot/vmlinuz /boot/vmlinuz-$(VER)-$(VERSUFIX)
|
||||
else
|
||||
ifeq "$(MACHINE_TYPE)" "arm"
|
||||
ifeq "$(KCFG)" "-kirkwood"
|
||||
cd $(DIR_APP) && make $(MAKETUNING) CC="$(KGCC)" uImage
|
||||
cd $(DIR_APP) && cp -v arch/arm/boot/uImage /boot/vmlinuz-$(VER)-$(VERSUFIX)
|
||||
cd $(DIR_APP) && cp -v arch/arm/boot/uImage /boot/uImage
|
||||
cd $(DIR_APP) && cp -v arch/arm/boot/uImage /boot/uImage-$(VERSUFIX)
|
||||
else
|
||||
ifeq "$(KCFG)" "-versatile"
|
||||
cd $(DIR_APP) && make $(MAKETUNING) CC="$(KGCC)" zImage
|
||||
cd $(DIR_APP) && cp -v arch/arm/boot/zImage /boot/vmlinuz-$(VER)-$(VERSUFIX)
|
||||
else
|
||||
cd $(DIR_APP) && make $(MAKETUNING) CC="$(KGCC)" bzImage
|
||||
cd $(DIR_APP) && cp -v arch/i386/boot/bzImage /boot/vmlinuz-$(VER)-$(VERSUFIX)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
cd $(DIR_APP) && cp -v System.map /boot/System.map-$(VER)-$(VERSUFIX)
|
||||
cd $(DIR_APP) && cp -v .config /boot/config-$(VER)-$(VERSUFIX)
|
||||
@@ -201,8 +213,8 @@ endif
|
||||
cd $(DIR_APP) && make CC="$(KGCC)" $(MAKETUNING) modules_install
|
||||
cd $(DIR_APP) && make CC="$(KGCC)" $(MAKETUNING) firmware_install
|
||||
|
||||
ifeq "$(KCFG)" ""
|
||||
# Only do this once on the standard kernel pass
|
||||
ifeq "$(LASTKERNEL)" "1"
|
||||
# Only do this once
|
||||
cd $(DIR_APP) && install -m 755 usr/gen_init_cpio /sbin/
|
||||
|
||||
# Blacklist matroxfb_base
|
||||
@@ -225,7 +237,6 @@ ifeq "$(KCFG)" ""
|
||||
|
||||
# Disable ipv6 at runtime
|
||||
echo "options ipv6 disable_ipv6=1" > /etc/modprobe.d/ipv6
|
||||
|
||||
endif
|
||||
|
||||
# Remove mISDN modules
|
||||
|
||||
69
make.sh
69
make.sh
@@ -398,29 +398,56 @@ buildipfire() {
|
||||
ipfiremake e1000 KCFG="-pae"
|
||||
ipfiremake e1000e KCFG="-pae"
|
||||
ipfiremake igb KCFG="-pae"
|
||||
fi
|
||||
|
||||
# Default kernel build
|
||||
ipfiremake linux KCFG=""
|
||||
ipfiremake v4l-dvb KCFG=""
|
||||
ipfiremake kqemu KCFG=""
|
||||
ipfiremake kvm-kmod KCFG=""
|
||||
ipfiremake madwifi KCFG=""
|
||||
if [ "${MACHINE_TYPE}" != "arm" ]; then
|
||||
#todo enable alsa driver in kernel config
|
||||
ipfiremake linux KCFG=""
|
||||
ipfiremake v4l-dvb KCFG=""
|
||||
ipfiremake kqemu KCFG=""
|
||||
ipfiremake kvm-kmod KCFG=""
|
||||
ipfiremake madwifi KCFG=""
|
||||
ipfiremake alsa KCFG="" KMOD=1
|
||||
ipfiremake mISDN KCFG=""
|
||||
ipfiremake dahdi KCFG="" KMOD=1
|
||||
ipfiremake cryptodev KCFG=""
|
||||
ipfiremake compat-wireless KCFG=""
|
||||
# ipfiremake r8169 KCFG=""
|
||||
# ipfiremake r8168 KCFG=""
|
||||
# ipfiremake r8101 KCFG=""
|
||||
ipfiremake e1000 KCFG=""
|
||||
ipfiremake e1000e KCFG=""
|
||||
ipfiremake igb KCFG=""
|
||||
else
|
||||
# arm-versatile kernel build
|
||||
ipfiremake linux KCFG="-versatile"
|
||||
ipfiremake v4l-dvb KCFG="-versatile"
|
||||
ipfiremake kqemu KCFG="-versatile"
|
||||
ipfiremake kvm-kmod KCFG="-versatile"
|
||||
ipfiremake madwifi KCFG="-versatile"
|
||||
ipfiremake mISDN KCFG="-versatile"
|
||||
ipfiremake dahdi KCFG="-versatile" KMOD=1
|
||||
ipfiremake cryptodev KCFG="-versatile"
|
||||
ipfiremake compat-wireless KCFG="-versatile"
|
||||
# ipfiremake r8169 KCFG="-versatile"
|
||||
# ipfiremake r8168 KCFG="-versatile"
|
||||
# ipfiremake r8101 KCFG="-versatile"
|
||||
ipfiremake e1000 KCFG="-versatile"
|
||||
ipfiremake e1000e KCFG="-versatile"
|
||||
ipfiremake igb KCFG="-versatile"
|
||||
# arm-kirkwood kernel build
|
||||
ipfiremake linux KCFG="-kirkwood"
|
||||
ipfiremake v4l-dvb KCFG="-kirkwood"
|
||||
ipfiremake kqemu KCFG="-kirkwood"
|
||||
ipfiremake kvm-kmod KCFG="-kirkwood"
|
||||
ipfiremake madwifi KCFG="-kirkwood"
|
||||
ipfiremake mISDN KCFG="-kirkwood"
|
||||
ipfiremake dahdi KCFG="-kirkwood" KMOD=1
|
||||
ipfiremake cryptodev KCFG="-kirkwood"
|
||||
ipfiremake compat-wireless KCFG="-kirkwood"
|
||||
# ipfiremake r8169 KCFG="-kirkwood"
|
||||
# ipfiremake r8168 KCFG="-kirkwood"
|
||||
# ipfiremake r8101 KCFG="-kirkwood"
|
||||
ipfiremake e1000 KCFG="-kirkwood"
|
||||
ipfiremake e1000e KCFG="-kirkwood"
|
||||
ipfiremake igb KCFG="-kirkwood"
|
||||
fi
|
||||
#undefined declaration in echo canceler try to fix later
|
||||
ipfiremake mISDN KCFG=""
|
||||
ipfiremake dahdi KCFG="" KMOD=1
|
||||
ipfiremake cryptodev KCFG=""
|
||||
ipfiremake compat-wireless KCFG=""
|
||||
# ipfiremake r8169 KCFG=""
|
||||
# ipfiremake r8168 KCFG=""
|
||||
# ipfiremake r8101 KCFG=""
|
||||
ipfiremake e1000 KCFG=""
|
||||
ipfiremake e1000e KCFG=""
|
||||
ipfiremake igb KCFG=""
|
||||
ipfiremake pkg-config
|
||||
ipfiremake linux-atm
|
||||
ipfiremake cpio
|
||||
|
||||
Reference in New Issue
Block a user