-
-
-define KernelPackage
- NAME:=$(1)
- $(eval $(call KernelPackage/Defaults))
- $(eval $(call KernelPackage/$(1)))
- $(eval $(call KernelPackage/$(1)/$(KERNEL)))
-
- ifneq ($(findstring m,$(KCONFIG)),m)
- CONFIG_PACKAGE_kmod-$(1):=
- endif
-
- define Package/kmod-$(1)
- TITLE:=$(TITLE)
- SECTION:=kernel
- CATEGORY:=Kernel modules
- DEFAULT:=m
- DESCRIPTION:=$(DESCRIPTION)
- EXTRA_DEPENDS:='kernel (=$(PKG_VERSION))'
- $(call KernelPackage/$(1))
- $(call KernelPackage/$(1)/$(KERNEL))
- endef