-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·34 lines (27 loc) · 870 Bytes
/
Makefile
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
34
#!/usr/bin/make -f
BASENAME ?= liox-$(shell git describe --tags)-$(LIOX_ARCH)$(LIOX_CONTEST)
QEMU ?= qemu-system-x86_64 -enable-kvm -cpu host
.PHONY: clean vm iso
iso: $(BASENAME).iso
$(BASENAME).iso:
lb config --archive-areas "main contrib non-free non-free-firmware"
mkdir -p config/includes.chroot/etc
echo $(BASENAME) > config/includes.chroot/etc/liox_version
lb build
mv live-image-*.hybrid.iso $@
$(BASENAME).raw:
qemu-img create -f raw $@ 7.45G
clean:
lb clean
AUTO := preseed/file=/cdrom/preseed/auto.cfg
DBG := DEBCONF_DEBUG=5
vm: $(BASENAME).raw $(BASENAME).iso
$(QEMU) -no-reboot -smp 2 \
-m 256M \
-monitor stdio \
-display gtk \
-cdrom $(BASENAME).iso \
-drive file=$(BASENAME).raw,format=raw \
-kernel binary/install/vmlinuz \
-initrd binary/install/initrd.gz \
-append "auto=true priority=critical keymap=us $(AUTO) $(DBG)"