scripts/image_squashfs: cleanup

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-05-21 15:44:33 +02:00
parent 61ca57676a
commit 30c32b7ec6

View File

@ -30,11 +30,10 @@ $SCRIPTS/image
$SCRIPTS/build squashfs $SCRIPTS/build squashfs
$SCRIPTS/build fakeroot $SCRIPTS/build fakeroot
get_version
mkdir -p $TARGET_IMG mkdir -p $TARGET_IMG
rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel
rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel
if [ "$BOOTLOADER" = "u-boot" ]; then if [ "$BOOTLOADER" = "u-boot" ]; then
KERNEL_IMAGE="uImage" KERNEL_IMAGE="uImage"
else else
@ -53,7 +52,7 @@ mkdir -p $TARGET_IMG
cp -PR $BUILD/atv-bootloader-*/mach_kernel $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel cp -PR $BUILD/atv-bootloader-*/mach_kernel $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel
chmod 0644 $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel chmod 0644 $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel
fi fi
echo "rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system" >> $FAKEROOT_SCRIPT echo "rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system" >> $FAKEROOT_SCRIPT
# echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system -noappend -comp xz" >> $FAKEROOT_SCRIPT # echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system -noappend -comp xz" >> $FAKEROOT_SCRIPT
echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system -noappend" >> $FAKEROOT_SCRIPT echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system -noappend" >> $FAKEROOT_SCRIPT