From 5867aad78c4ebd154eace69b026b63d780be0e84 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 16 Feb 2014 10:48:13 +0100 Subject: use virtio drivers for sparc64 --- mk/modules.mk | 11 +++++++++++ mk/rootfs.mk | 3 +++ 2 files changed, 14 insertions(+) (limited to 'mk') diff --git a/mk/modules.mk b/mk/modules.mk index f5660ba97..00667de3e 100644 --- a/mk/modules.mk +++ b/mk/modules.mk @@ -1736,3 +1736,14 @@ $(eval $(call KMOD_template,SCx200_ACB,scx200-acb,\ $(MODULES_DIR)/kernel/drivers/i2c/busses/scx200_acb \ ,25)) +# +# VirtIO +# +$(eval $(call KMOD_template,VIRTIO_BLK,virtio-block,\ + $(MODULES_DIR)/kernel/drivers/net/virtio_blk \ +,20)) + +$(eval $(call KMOD_template,VIRTIO_NET,virtio-net,\ + $(MODULES_DIR)/kernel/drivers/net/virtio_net \ +,40)) + diff --git a/mk/rootfs.mk b/mk/rootfs.mk index f1d0bdf3a..5ec5f3107 100644 --- a/mk/rootfs.mk +++ b/mk/rootfs.mk @@ -13,6 +13,9 @@ MTDDEV:= root=/dev/mtdblock0 ifeq ($(ADK_TARGET_ROOTFS_ARCHIVE),y) ROOTFS:= root=/dev/sda1 endif +ifeq ($(ADK_TARGET_QEMU_WITH_VIRTIO),y) +ROOTFS:= root=/dev/vda1 +endif endif ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y) -- cgit v1.2.3