diff options
author | Sebastian | 2010-01-27 15:36:18 +0100 |
---|---|---|
committer | Sebastian | 2010-01-27 15:36:18 +0100 |
commit | eb84b9a2ac398a69aecda5b0d0afdaba733890ef (patch) | |
tree | fdbaab79701e4fcb369787cdbbbf05366bb0a824 | |
parent | broot initial commit (diff) | |
download | broot-eb84b9a2ac398a69aecda5b0d0afdaba733890ef.tar.gz broot-eb84b9a2ac398a69aecda5b0d0afdaba733890ef.tar.xz broot-eb84b9a2ac398a69aecda5b0d0afdaba733890ef.zip |
.. just save state of development
-rwxr-xr-x | broot.sh | 9 | ||||
-rw-r--r-- | chroot-scripts/build-preboot.sh | 18 |
2 files changed, 27 insertions, 0 deletions
@@ -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 |