|
|
@ -148,6 +148,10 @@ for FLAVOUR in $LB_LINUX_FLAVOURS; do
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
KVERS="$( (cd "binary/$INITFS"; ls vmlinu?-*) | sed -n "s/^vmlinu.-\\([^-]*-[^-]*-$FLAVOUR\\)$/\\1/p" )"
|
|
|
|
KVERS="$( (cd "binary/$INITFS"; ls vmlinu?-*) | sed -n "s/^vmlinu.-\\([^-]*-[^-]*-$FLAVOUR\\)$/\\1/p" )"
|
|
|
|
if [ -z "$KVERS" ]; then
|
|
|
|
if [ -z "$KVERS" ]; then
|
|
|
|
|
|
|
|
if [ -e "binary/$INITFS/vmlinuz" ]; then
|
|
|
|
|
|
|
|
# already renamed by ubuntu-defaults-image
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "No kernel output for $FLAVOUR!" >&2
|
|
|
|
echo "No kernel output for $FLAVOUR!" >&2
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -167,9 +171,17 @@ done
|
|
|
|
NUMFLAVOURS="$(set -- $LB_LINUX_FLAVOURS; echo $#)"
|
|
|
|
NUMFLAVOURS="$(set -- $LB_LINUX_FLAVOURS; echo $#)"
|
|
|
|
if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then
|
|
|
|
if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then
|
|
|
|
# only one kernel flavour
|
|
|
|
# only one kernel flavour
|
|
|
|
|
|
|
|
if [ -e "binary/$INITFS/vmlinuz" ]; then
|
|
|
|
|
|
|
|
ln "binary/$INITFS/vmlinuz" "$PREFIX.kernel"
|
|
|
|
|
|
|
|
else
|
|
|
|
ln -sf "$PREFIX.kernel-$LB_LINUX_FLAVOURS" "$PREFIX.kernel"
|
|
|
|
ln -sf "$PREFIX.kernel-$LB_LINUX_FLAVOURS" "$PREFIX.kernel"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e "binary/$INITFS/initrd.lz" ]; then
|
|
|
|
|
|
|
|
ln "binary/$INITFS/initrd.lz" "$PREFIX.initrd"
|
|
|
|
|
|
|
|
else
|
|
|
|
ln -sf "$PREFIX.initrd-$LB_LINUX_FLAVOURS" "$PREFIX.initrd"
|
|
|
|
ln -sf "$PREFIX.initrd-$LB_LINUX_FLAVOURS" "$PREFIX.initrd"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$SUBARCH" = "ac100" ]; then
|
|
|
|
if [ "$SUBARCH" = "ac100" ]; then
|
|
|
|
# create the md5sum file for which we are actually doing all this
|
|
|
|
# create the md5sum file for which we are actually doing all this
|
|
|
|