summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbroot.sh9
-rw-r--r--chroot-scripts/build-preboot.sh18
2 files changed, 27 insertions, 0 deletions
diff --git a/broot.sh b/broot.sh
index cee9387..1daf193 100755
--- a/broot.sh
+++ b/broot.sh
@@ -34,6 +34,15 @@ case $1 in
chroot-exec /root/bin/build-bb.sh
fi
;;
+ "build-initramfs-pkgs")
+ if [ ! -e $buildrootpath/bootstraped ]; then
+ echo " * Error: didn't find existing buildroot"
+ else
+ echo " * Building preboot packages"
+ updateScripts
+ chroot-exec /root/bin/build-preboot.sh
+ fi
+ ;;
*)
echo "Usage: broot (setup|update|build-bb)"
esac
diff --git a/chroot-scripts/build-preboot.sh b/chroot-scripts/build-preboot.sh
new file mode 100644
index 0000000..587f1e8
--- /dev/null
+++ b/chroot-scripts/build-preboot.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+cp /boot/vmlinuz-2.6.32-trunk-686-bigmem /root/packages/vmlinuz-preboot
+mkdir -p /usr/share/src/initramfs
+rm -rf /usr/share/src/initramfs/*
+
+firmwarepkgs="firmware-linux-nonfree firmware-iwlwifi atmel-firmware firmware-bnx2 firmware-bnx2x firmware-intelwimax firmware-ipw2x00 firmware-ralink"
+
+aptitude install -y $firmwarepkgs
+
+[ -e /tmp/firmwarefiles ] && rm /tmp/firmwarefiles
+
+for f in `echo $firmwarepkgs`
+do
+ dpkg -L $f | grep "/lib/firmware" |grep -v dvb >> /tmp/firmwarefiles
+done
+
+tar cfvz -T /tmp/firmwarefiles /root/packages/firmware.pkg.tgz