2023-03-06 12:31:31 +01:00
|
|
|
all: x86-generic
|
2023-02-03 16:40:47 +01:00
|
|
|
|
2023-03-06 12:31:31 +01:00
|
|
|
x86-generic:
|
2023-02-26 19:15:24 +01:00
|
|
|
$(MAKE) \
|
2023-03-10 11:21:22 +01:00
|
|
|
ADDITIONAL_INSTALL="install-x86-network-config install-x86-uci-defaults" \
|
|
|
|
ADDITIONAL_OPENWRT_PACKAGES="dmidecode" \
|
2023-02-26 19:15:24 +01:00
|
|
|
OPENWRT_TARGET="x86/generic" \
|
|
|
|
EMISSARY_ARCH="386" \
|
|
|
|
OPENWRT_PROFILE="generic" \
|
|
|
|
build
|
2023-02-03 16:40:47 +01:00
|
|
|
|
2023-03-06 12:31:31 +01:00
|
|
|
run-x86-generic: bin/$(OPENWRT_VERSION)/x86/generic/generic/openwrt-$(OPENWRT_VERSION)-emissary-*-ext4-combined.img
|
2023-02-03 16:40:47 +01:00
|
|
|
qemu-system-x86_64 \
|
|
|
|
-enable-kvm \
|
|
|
|
-nographic \
|
|
|
|
-drive file=$(shell ls bin/$(OPENWRT_VERSION)/x86/generic/generic/openwrt-$(OPENWRT_VERSION)-emissary-*-ext4-combined.img),id=d0,if=none \
|
|
|
|
-device ide-hd,drive=d0,bus=ide.0 \
|
|
|
|
-netdev user,id=hn1 \
|
2023-02-26 19:15:24 +01:00
|
|
|
-device e1000,netdev=hn1,id=nic1
|
2023-02-03 16:40:47 +01:00
|
|
|
|
|
|
|
bin/$(OPENWRT_VERSION)/x86/generic/generic/openwrt-$(OPENWRT_VERSION)-emissary-*-ext4-combined.img:
|
2023-02-26 19:15:24 +01:00
|
|
|
gunzip bin/$(OPENWRT_VERSION)/x86/generic/generic/openwrt-$(OPENWRT_VERSION)-emissary-*-ext4-combined.img.gz
|