Added rebuild*.sh scripts

This commit is contained in:
apio 2022-09-06 18:27:24 +02:00
parent c9e13f0128
commit 86e53c3004
3 changed files with 35 additions and 0 deletions

8
tools/rebuild-and-run.sh Executable file
View File

@ -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

15
tools/rebuild-iso.sh Executable file
View File

@ -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

12
tools/rebuild.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
source $(dirname $0)/env.sh
cd $LUNA_ROOT
tools/setup.sh
make clean
make -j$(nproc)