summaryrefslogtreecommitdiff
path: root/com32/hdt/Makefile
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-12-07 21:25:23 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-07 21:25:23 +0100
commit779142d7b6f8a426f04fdb4b08cb9a884e97ee82 (patch)
treea12174f0e363ec6f21dfd549a4761417d999ee2d /com32/hdt/Makefile
parent6be5744463d04fb8bd65dd5f5e4e302200fde9d9 (diff)
downloadsyslinux-779142d7b6f8a426f04fdb4b08cb9a884e97ee82.tar.gz
hdt: Adding make test target
Impact: Make testing easier During the dev. phases, we usually do make hdt.img; qemu-kvm -fda hdt.img. Let's put that into a make target.
Diffstat (limited to 'com32/hdt/Makefile')
-rw-r--r--com32/hdt/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/com32/hdt/Makefile b/com32/hdt/Makefile
index 5c02c43f..8cd96f2c 100644
--- a/com32/hdt/Makefile
+++ b/com32/hdt/Makefile
@@ -46,6 +46,7 @@ GZ_PCI_IDS_FILE ?= $(PCI_IDS_FILE).gz
REBOOT_COM32 ?= $(com32)/modules/reboot.c32
MENU_COM32 ?= $(com32)/menu/menu.c32
ART_DIR ?= art/
+QEMU ?= qemu-kvm
all: $(MODULES) $(TESTFILES)
@@ -111,6 +112,9 @@ hdt.iso: hdt.c32 $(topdir)/core/isolinux.bin $(FLOPPY_DIR)/hdt.cfg memtest
release: spotless hdt.c32 hdt.img hdt.img.gz hdt.iso
mv hdt.c32 hdt_$(VERSION_C32).c32
+test: hdt.img
+ $(QEMU) -fda hdt.img
+
tidy dist:
rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp