Skip to content

Commit

Permalink
kernel: decouple 9P virtio from 9P net
Browse files Browse the repository at this point in the history
General support for 9P is desirable on platforms without virtualization.
This decouples the 9P general networking support for use on more platforms.

Signed-off-by: Daniel Maslowski <[email protected]>
  • Loading branch information
orangecms committed Sep 15, 2023
1 parent 7494eb1 commit 7acf8fc
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions package/kernel/linux/modules/netsupport.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1311,17 +1311,13 @@ $(eval $(call KernelPackage,mpls))
define KernelPackage/9pnet
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=Plan 9 Resource Sharing Support (9P2000)
DEPENDS:=@VIRTIO_SUPPORT
KCONFIG:= \
CONFIG_NET_9P \
CONFIG_NET_9P_DEBUG=n \
CONFIG_NET_9P_XEN=n \
CONFIG_NET_9P_VIRTIO \
[email protected]
FILES:= \
$(LINUX_DIR)/net/9p/9pnet.ko \
$(LINUX_DIR)/net/9p/9pnet_virtio.ko
AUTOLOAD:=$(call AutoLoad,29,9pnet 9pnet_virtio)
$(LINUX_DIR)/net/9p/9pnet.ko
AUTOLOAD:=$(call AutoLoad,29,9pnet)
endef

define KernelPackage/9pnet/description
Expand All @@ -1331,6 +1327,25 @@ endef

$(eval $(call KernelPackage,9pnet))

define KernelPackage/9pvirtio
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=Plan 9 Virtio Support
DEPENDS:=+kmod-9pnet @VIRTIO_SUPPORT
KCONFIG:= \
CONFIG_NET_9P_XEN=n \
CONFIG_NET_9P_VIRTIO
FILES:= \
$(LINUX_DIR)/net/9p/9pnet_virtio.ko
AUTOLOAD:=$(call AutoLoad,29,9pnet_virtio)
endef

define KernelPackage/9pvirtio/description
Kernel support support for
Plan 9 resource sharing for virtio.
endef

$(eval $(call KernelPackage,9pvirtio))


define KernelPackage/nlmon
SUBMENU:=$(NETWORK_SUPPORT_MENU)
Expand Down

0 comments on commit 7acf8fc

Please sign in to comment.