wok-tiny diff linux/receipt @ rev 95
linux: add bootloader
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 06 21:04:42 2015 +0200 (2015-10-06) |
parents | 371673f39e46 |
children | 2cc2f08d75b7 |
line diff
1.1 --- a/linux/receipt Fri Oct 02 21:45:05 2015 +0200 1.2 +++ b/linux/receipt Tue Oct 06 21:04:42 2015 +0200 1.3 @@ -36,6 +36,8 @@ 1.4 cp $WOK/busybox/source/busybox*/.config $src/config-busybox 1.5 mkdir $src/slitaz 1.6 cp $stuff/list_modules.sh $src/slitaz 1.7 + cc -o bootloader.o -Wa,-algms=bootloader.lst -c $stuff/bootloader.S 1.8 + objcopy -O binary bootloader.o bootloader.bin 1.9 1.10 sed -i 's/^config %config/config/' Makefile 1.11 cp $stuff/linux-$VERSION-slitaz.config .config 1.12 @@ -51,9 +53,11 @@ 1.13 { 1.14 mkdir $fs/boot 1.15 cp -a $src/arch/i386/boot/bzImage $fs/boot/ 1.16 + dd if=$src/bootloader.bin of=$fs/boot/bzImage conv=notrunc 1.17 cp -a $src/System.map $fs/boot/ 1.18 cp -a $src/.config $fs/boot/config 1.19 cp -a $src/config-busybox $fs/boot 1.20 + cp -a $stuff/bundle $fs/boot 1.21 } 1.22 1.23 # Pre and post install commands for Tazpkg.