From 86e53c300499880f09459009c18637560e6bde6b Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 6 Sep 2022 18:27:24 +0200 Subject: [PATCH] Added rebuild*.sh scripts --- tools/rebuild-and-run.sh | 8 ++++++++ tools/rebuild-iso.sh | 15 +++++++++++++++ tools/rebuild.sh | 12 ++++++++++++ 3 files changed, 35 insertions(+) create mode 100755 tools/rebuild-and-run.sh create mode 100755 tools/rebuild-iso.sh create mode 100755 tools/rebuild.sh diff --git a/tools/rebuild-and-run.sh b/tools/rebuild-and-run.sh new file mode 100755 index 00000000..fa3cc7df --- /dev/null +++ b/tools/rebuild-and-run.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e +source $(dirname $0)/env.sh + +tools/rebuild-iso.sh + +qemu-system-x86_64 -cdrom Luna.iso -smp 1 -m 256M -serial stdio -enable-kvm \ No newline at end of file diff --git a/tools/rebuild-iso.sh b/tools/rebuild-iso.sh new file mode 100755 index 00000000..f06e31df --- /dev/null +++ b/tools/rebuild-iso.sh @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +source $(dirname $0)/env.sh + +cd $LUNA_ROOT + +tools/setup.sh + +make clean + +make -j$(nproc) +make install + +mkbootimg luna.json Luna.iso \ No newline at end of file diff --git a/tools/rebuild.sh b/tools/rebuild.sh new file mode 100755 index 00000000..d204e93f --- /dev/null +++ b/tools/rebuild.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -e + +source $(dirname $0)/env.sh + +cd $LUNA_ROOT + +tools/setup.sh + +make clean + +make -j$(nproc) \ No newline at end of file