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