diff --git a/scripts/image_squashfs b/scripts/image_squashfs index 9b3fa60d53..57cfac61c5 100755 --- a/scripts/image_squashfs +++ b/scripts/image_squashfs @@ -30,11 +30,10 @@ $SCRIPTS/image $SCRIPTS/build squashfs $SCRIPTS/build fakeroot -get_version - mkdir -p $TARGET_IMG rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel + if [ "$BOOTLOADER" = "u-boot" ]; then KERNEL_IMAGE="uImage" else @@ -53,7 +52,7 @@ mkdir -p $TARGET_IMG cp -PR $BUILD/atv-bootloader-*/mach_kernel $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel chmod 0644 $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel fi - + 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" >> $FAKEROOT_SCRIPT