generate kernel package outside of SD image

This commit is contained in:
Gwenhael Le Moine 2014-03-01 09:22:22 +01:00
parent 888e32ec45
commit 05f9b5a77e

View file

@ -11,7 +11,7 @@ CWD=$(pwd)
# --- Configuration ------------------------------------------------------------- # --- Configuration -------------------------------------------------------------
IMG_NAME=${IMG_NAME:-"SlackwareARM_cubitruck"} IMG_NAME=${IMG_NAME:-"SlackwareARM_cubitruck"}
VERSION=${VERSION:-0.2} VERSION=${VERSION:-0.3}
COMPILE=${COMPILE:-"false"} COMPILE=${COMPILE:-"false"}
DEST=${DEST:-$CWD/dist} DEST=${DEST:-$CWD/dist}
CUBIETRUCK_DISPLAY=${CUBIETRUCK_DISPLAY:-"HDMI"} # "HDMI" or "VGA" CUBIETRUCK_DISPLAY=${CUBIETRUCK_DISPLAY:-"HDMI"} # "HDMI" or "VGA"
@ -392,10 +392,10 @@ EOF
( cd $DEST/pkg-linux-sunxi ( cd $DEST/pkg-linux-sunxi
makepkg -l y -c n $DEST/image/sdcard/root/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz makepkg -l y -c n $DEST/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
) )
installpkg --root $DEST/image/sdcard/ $DEST/image/sdcard/root/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz installpkg --root $DEST/image/sdcard/ $DEST/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
else else
cat <<EOF > $DEST/image/sdcard/boot/uEnv.txt cat <<EOF > $DEST/image/sdcard/boot/uEnv.txt
root=/dev/mmcblk0p1 ro rootwait root=/dev/mmcblk0p1 ro rootwait