From 634879e18c1597b7932c9956be744c52fcf1ba62 Mon Sep 17 00:00:00 2001 From: Jonathan Maw Date: Thu, 23 May 2013 11:25:20 +0100 Subject: Make run-built-arm-image work with newer baserock images --- armv7-versatile/create-source-disk.sh | 18 ----------- armv7-versatile/download-image.sh | 39 ----------------------- armv7-versatile/run-baserock-image.sh | 56 ---------------------------------- armv7-versatile/run-built-arm-image.sh | 2 +- 4 files changed, 1 insertion(+), 114 deletions(-) delete mode 100755 armv7-versatile/create-source-disk.sh delete mode 100755 armv7-versatile/download-image.sh delete mode 100755 armv7-versatile/run-baserock-image.sh diff --git a/armv7-versatile/create-source-disk.sh b/armv7-versatile/create-source-disk.sh deleted file mode 100755 index aaeee82..0000000 --- a/armv7-versatile/create-source-disk.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -e - -DIR="$1" - -if [[ -z "$DIR" ]]; then - echo "Usage: $0 " - exit 1 -fi - -cd "$DIR" - -SOURCE_DISK="devel-system-armv7-versatile.src.img" - -if [[ ! -f "$SOURCE_DISK" ]]; then - qemu-img create -f qcow2 "$SOURCE_DISK" 30G -fi diff --git a/armv7-versatile/download-image.sh b/armv7-versatile/download-image.sh deleted file mode 100755 index 1aff10d..0000000 --- a/armv7-versatile/download-image.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -set -e - -DIR="$1" -IMAGE_BASENAME="$2" - -if [[ -z "$IMAGE_BASENAME" ]]; then - echo "Usage: $0 " - echo "Example: $0 . devel-system-armv7-versatile" - exit 1 -fi - -COMPRESSED_IMAGE="$IMAGE_BASENAME.img.gz" -DECOMPRESSED_IMAGE=${COMPRESSED_IMAGE/.gz/} -KERNEL_IMAGE="$IMAGE_BASENAME.zimage" - -if [[ ! -d "$DIR" ]]; then - mkdir -p "$DIR" -fi - -cd "$DIR" - -if [[ ! -f "$COMPRESSED_IMAGE" ]]; then - echo "Downloading development image..." - curl "http://download.baserock.org/baserock/$COMPRESSED_IMAGE" > \ - "$COMPRESSED_IMAGE" -fi - -if [[ ! -f "$KERNEL_IMAGE" ]]; then - echo "Downloading kernel image..." - curl "http://download.baserock.org/baserock/$KERNEL_IMAGE" > \ - "$KERNEL_IMAGE" -fi - -if [[ ! -f "$DECOMPRESSED_IMAGE" ]]; then - echo "Decompressing development image..." - gzip -cd "$COMPRESSED_IMAGE" > "$DECOMPRESSED_IMAGE" -fi diff --git a/armv7-versatile/run-baserock-image.sh b/armv7-versatile/run-baserock-image.sh deleted file mode 100755 index 695d331..0000000 --- a/armv7-versatile/run-baserock-image.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -set -e - -DIR="$1" - -if [[ -z "$DIR" ]]; then - echo "Usage: $0 " - exit 1 -fi - - -if [[ ! -d "$DIR" ]]; then - mkdir -p "$DIR" -fi - -IMAGE_BASENAME="devel-system-armv7-versatile" -COMPRESSED_IMAGE="$DIR/$IMAGE_BASENAME.img.gz" -DECOMPRESSED_IMAGE=${COMPRESSED_IMAGE/.gz/} -KERNEL_IMAGE="$DIR/$IMAGE_BASENAME.zimage" - -./download-image.sh "$DIR" "$IMAGE_BASENAME" - -# If we ever get multiple disks working on qemu ARM, execute: -# ./create-source-disk.sh "$DIR" -# Because the devel image doesn't have enough space to develop on the -# main partition, resize it. -truncate --size=5G "$DECOMPRESSED_IMAGE" -sfdisk "$DECOMPRESSED_IMAGE" <&2 <