diff options
author | Sebastian Schmelzer | 2011-03-14 17:51:16 +0100 |
---|---|---|
committer | Sebastian Schmelzer | 2011-03-14 17:51:16 +0100 |
commit | 12e4b1c978975d8cb6f3e13f20b1dbb136166b41 (patch) | |
tree | 959f0e28343389f92313cc318af6de39a4e14c2b /bin | |
download | usb-boot-stick-12e4b1c978975d8cb6f3e13f20b1dbb136166b41.tar.gz usb-boot-stick-12e4b1c978975d8cb6f3e13f20b1dbb136166b41.tar.xz usb-boot-stick-12e4b1c978975d8cb6f3e13f20b1dbb136166b41.zip |
initial commit
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-preboot-initramfs | 9 | ||||
-rw-r--r-- | bin/build-preboot-kernel | 26 |
2 files changed, 35 insertions, 0 deletions
diff --git a/bin/build-preboot-initramfs b/bin/build-preboot-initramfs new file mode 100755 index 0000000..b94eadd --- /dev/null +++ b/bin/build-preboot-initramfs @@ -0,0 +1,9 @@ +#!/bin/bash + +ROOT_DIR=$(readlink -f $(dirname $(readlink -f $0))/..) + +cd ${ROOT_DIR}/build/rootfs +find . | cpio -H newc -o > ../initramfs-default.cpio +cd .. +gzip initramfs-default.cpio +mv initramfs-default.cpio.gz initramfs-initramfs diff --git a/bin/build-preboot-kernel b/bin/build-preboot-kernel new file mode 100644 index 0000000..d03810d --- /dev/null +++ b/bin/build-preboot-kernel @@ -0,0 +1,26 @@ +#!/bin/bash + +ROOT_DIR=$(readlink -f $(dirname $(readlink -f $0))/..) + +. $ROOT_DIR/config/setup.conf + + + +cd $ROOT_DIR/build +if [ ! -f linux-${kernel_version}.tar.bz2 ]; then + echo "download kernel" + wget -c "$kernel_url" +fi + +if [ ! -d linux-${kernel_version} ]; then + echo "unpack kernel" + tar xjf linux-${kernel_version}.tar.bz2 +fi + +cd linux-${kernel_version} +cp ${ROOT_DIR}/config/kernel.config ./.config + +linux32 make oldconfig +linux32 make -j 4 + +cp arch/x86/boot/bzImage ../kernel-preboot-latest |