Build: Added run-kos.sh script

Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
This commit is contained in:
2025-03-23 18:12:04 +03:00
parent 4c92c11668
commit b16bb3c49e
2 changed files with 19 additions and 0 deletions

4
.gitignore vendored
View File

@@ -36,3 +36,7 @@ build
# SDK dir
sdk
# Downloaded KolibriOS artifacts
kolibrios-img.7z
kolibri.img

15
run-kos.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -eu
download_kolibrios()
{
wget -O "kolibrios-img.7z" https://builds.kolibrios.org/en_US/latest-img.7z
7z e kolibrios-img.7z kolibri.img
}
if [ ! -f "kolibri.img" ]; then
download_kolibrios
fi
qemu-system-i386 -boot a -fda kolibri.img -m 512 -drive file=fat:rw:"$SDK_SYSROOT_DIR" -usbdevice tablet