From 7c3b30f6fcae5a5557063424572d77b76bfdd390 Mon Sep 17 00:00:00 2001 From: Oliver Grawert Date: Wed, 14 Nov 2012 13:33:35 +0100 Subject: [PATCH] add nexus7 specific kernel cmdline, move the nexus7 processing up a bit in the code so we can modify the bootimg cmdline before the file gets copied around --- debian/changelog | 8 ++++++++ live-build/auto/build | 18 +++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index 8e5d592a..870db93f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +livecd-rootfs (2.96) UNRELEASED; urgency=low + + * add nexus7 specific kernel cmdline + * move the nexus7 processing up a bit in the code so we can modify the + bootimg cmdline before the file gets copied around + + -- Oliver Grawert Wed, 14 Nov 2012 13:28:50 +0100 + livecd-rootfs (2.95) raring; urgency=low * make the dependency on android-tools-fsutils not arch specific, seems diff --git a/live-build/auto/build b/live-build/auto/build index 156416d8..8a5c014d 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -376,6 +376,17 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then # create boot.img Chroot chroot "abootimg --create /boot/installer-${KVERS}.img -f /boot/bootimg.cfg -r /boot/initrd.img-${KVERS} -k /boot/vmlinuz-${KVERS}" + if [ "$SUBARCH" = "nexus7" ]; then + # adjust the bootimg cmdline parameters + Chroot chroot 'abootimg -u /boot/installer-${KVERS}.img -c "cmdline=root=/dev/mmcblk0p9 ro console=tty1 fbcon=rotate:1 quiet splash"' + + # roll the android rootfs images + mkdir userdata + cp $PREFIX.rootfs.tar.gz userdata/rootfs.tar.gz + make_ext4fs -l 6G -s $PREFIX.img-$FLAVOUR userdata/ + ln -sf "$PREFIX.img-$FLAVOUR" "$PREFIX.img" + fi + # clean up lb chroot_devpts remove "$@" lb chroot_sysfs remove "$@" @@ -384,13 +395,6 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then cp "chroot/boot/installer-${KVERS}.img" "$PREFIX.bootimg-$FLAVOUR" ln -sf "$PREFIX.bootimg-$FLAVOUR" "$PREFIX.bootimg" - if [ "$SUBARCH" = "nexus7" ]; then - # roll the android rootfs images - mkdir userdata - cp $PREFIX.rootfs.tar.gz userdata/rootfs.tar.gz - make_ext4fs -l 6G -s $PREFIX.img-$FLAVOUR userdata/ - ln -sf "$PREFIX.img-$FLAVOUR" "$PREFIX.img" - fi fi # LTSP chroot building (only in 32bit and for Edubuntu (DVD))