wok-tiny diff linux/stuff/bundle @ rev 102
keyboard: add kernel cmdline optional support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 05 14:44:30 2016 +0100 (2016-01-05) |
parents | 84dee9f78001 |
children | 2cc2f08d75b7 |
line diff
1.1 --- a/linux/stuff/bundle Tue Oct 06 21:04:42 2015 +0200 1.2 +++ b/linux/stuff/bundle Tue Jan 05 14:44:30 2016 +0100 1.3 @@ -25,13 +25,14 @@ 1.4 1.5 if [ ! -s "$1" ]; then 1.6 cat <<EOT 1.7 -Usage: $0 kernel [initrd] 1.8 +Usage: $0 kernel [initrd] [@] 1.9 EOT 1.10 elif [ -s "$2" ]; then 1.11 - base_initrd=$(( (($(get 0x1F4 "$1")*33 + 65535)&-65536) + 0x100000 )) 1.12 + base_initrd=$((0x00300000)) 1.13 size_initrd=$(stat -c %s "$2") 1.14 [ $(($base_initrd + $size_initrd)) -gt $((0x1000000)) ] && 1.15 base_initrd=$((0x01400000)) 1.16 + [ "$3" ] && base_initrd=$(($3)) 1.17 printf "initrd @%X %X\n" $base_initrd $size_initrd 1.18 store 0x218 $base_initrd "$1" 1.19 store 0x21C $size_initrd "$1"