File build.diff of Package build

Index: obs-build-20230628/emulator/aranym.conf.in
===================================================================
--- /dev/null
+++ obs-build-20230628/emulator/aranym.conf.in
@@ -0,0 +1,33 @@
+[GLOBAL]
+FastRAM = 3072
+GMTime = Yes
+
+[ETH0]
+Type =
+Tunnel =
+
+[LILO]
+Kernel = @KERNEL@
+Ramdisk = @INITRD@
+Args = root=/dev/nfhd0p1 video=atafb:vga16 console=nfcon init=/.build/build quiet
+LoadToFastRAM = Yes
+
+[PARTITION0]
+Path = @IMAGE@
+Present = Yes
+PartID = LNX
+ByteSwap = Yes
+ReadOnly = No
+
+[PARTITION1]
+Path = @SWAP@
+Present = @HAS_SWAP@
+PartID = LNX
+ByteSwap = Yes
+ReadOnly = No
+
+[SERIAL]
+Serport =
+
+[JOYSTICKS]
+Ikbd1 = -1
Index: obs-build-20230628/emulator/emulator.sh
===================================================================
--- obs-build-20230628.orig/emulator/emulator.sh
+++ obs-build-20230628/emulator/emulator.sh
@@ -20,6 +20,30 @@
 #
 ################################################################
 
+has_swap=No
+if test -n "$2"; then
+    has_swap=Yes
+fi
+mkdir -p $BUILD_ROOT/.mount
+mount -o loop "$1" $BUILD_ROOT/.mount
+kernel=$PWD/vmlinuz
+initrd=$PWD/initrd
+if test -f $BUILD_ROOT/.mount/.build.kernel.kvm; then
+  kernel=$BUILD_ROOT/.build.kernel.kvm
+  initrd=$BUILD_ROOT/.build.initrd.kvm
+  cp $BUILD_ROOT/.mount/.build.*.kvm $BUILD_ROOT
+  mkdir -p $BUILD_ROOT/.mount/sys
+fi
+umount $BUILD_ROOT/.mount
+conf=$BUILD_ROOT/.aranym.conf
+sed -e "s,@IMAGE@,$1," -e "s,@SWAP@,$2," -e "s,@HAS_SWAP@,$has_swap," \
+  -e "s,@KERNEL@,$kernel," \
+  -e "s,@INITRD@,$initrd," \
+  aranym.conf.in > $conf
+SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=dummy aranym-mmu -l -c $conf
+
+exit
+
 echo "ERROR: the emulator.sh script needs to be changed to support your emulator!"
 exit 1
 
Index: obs-build-20230628/emulator/verify-options.sh
===================================================================
--- /dev/null
+++ obs-build-20230628/emulator/verify-options.sh
@@ -0,0 +1 @@
+VM_SWAPDEV=/dev/nfhd1p1
Index: obs-build-20230628/qemu-reg
===================================================================
--- obs-build-20230628.orig/qemu-reg
+++ obs-build-20230628/qemu-reg
@@ -19,7 +19,7 @@
 
 :loongarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02\x01:\xff\xff\xff\xff\xff\xff\xff\xfc\x00\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-loongarch64:P loongarch64
 
-:m68k:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x04:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-m68k:P m68k
+:m68k:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x04:\xff\xff\xff\xff\xff\xff\xfe\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-m68k:P m68k
 
 :mips:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips:P mips
 :mipsel:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mipsel:P mipsel
openSUSE Build Service is sponsored by