2020-03-24 23:39:02 +01:00
|
|
|
.PHONY: all clean test
|
2019-05-15 06:08:56 +02:00
|
|
|
|
2020-01-21 23:45:13 +01:00
|
|
|
all:
|
|
|
|
$(MAKE) -C src all
|
2019-05-15 06:08:56 +02:00
|
|
|
|
|
|
|
clean:
|
2020-01-21 23:45:13 +01:00
|
|
|
$(MAKE) -C src clean
|
2020-03-24 23:39:02 +01:00
|
|
|
|
2020-04-10 17:47:26 +02:00
|
|
|
test: all
|
2020-03-24 23:39:02 +01:00
|
|
|
$(MAKE) -C test
|
2020-03-25 01:04:18 +01:00
|
|
|
rm -f test.img
|
2020-03-24 23:39:02 +01:00
|
|
|
dd if=/dev/zero bs=1M count=0 seek=64 of=test.img
|
|
|
|
parted -s test.img mklabel msdos
|
|
|
|
parted -s test.img mkpart primary 1 100%
|
|
|
|
echfs-utils -m -p0 test.img quick-format 32768
|
|
|
|
echfs-utils -m -p0 test.img import test/test.elf test.elf
|
|
|
|
echfs-utils -m -p0 test.img import test/qloader2.cfg qloader2.cfg
|
2020-04-10 17:47:26 +02:00
|
|
|
./qloader2-install src/qloader2.bin test.img
|
2020-03-25 01:04:18 +01:00
|
|
|
qemu-system-x86_64 -hda test.img -monitor stdio
|