-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·33 lines (25 loc) · 732 Bytes
/
Makefile
File metadata and controls
executable file
·33 lines (25 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f
VSN ?= $(shell git describe --tags)
QEMU ?= kvm
#DISPLAY = vga=788 # for nice graphics
DISPLAY = console=tty0 console=ttyS0,38400n8 # serial console
.PHONY: clean vm iso
iso: liox-$(VSN).iso
liox-$(VSN).iso:
echo liox-$(VSN) > config/includes.chroot/etc/liox_version
lb build
mv binary.iso $@
liox-$(VSN).vdi:
qemu-img create -f vdi $@ 10G
clean:
lb clean
AUTO := preseed/file=/cdrom/preseed/auto.cfg
DBG := DEBCONF_DEBUG=5
vm: liox-$(VSN).vdi liox-$(VSN).iso
$(QEMU) -no-reboot -smp 2 \
-nographic \
-cdrom liox-$(VSN).iso \
-kernel binary/install/vmlinuz \
-initrd binary/install/initrd.gz \
-append "$(DISPLAY) auto=true priority=critical keymap=us $(AUTO) $(DBG)" \
liox-$(VSN).vdi