From: Jonas Gorski Date: Fri, 5 Dec 2014 11:50:42 +0000 (+0000) Subject: sdk: don't try to build in-kernel kmods X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e0342d268400cf810c737d98f79dbc12144d53d9;p=librecmc%2Flibrecmc.git sdk: don't try to build in-kernel kmods We don't ship the kernel sources, so using the base git as a feed will fail when trying to build kernel modules with separate install steps. Instead of trying to fixup the install steps, let's just skip building kernel modules alltogether and just create empty packages. Out-of-kernel modules are still expected to exist and are packaged, as for these sources are fetched during the normal build steps. Reported-by: Jo-Philipp Wich Signed-off-by: Jonas Gorski SVN-Revision: 43525 --- diff --git a/include/kernel.mk b/include/kernel.mk index 01fb4dbd81..d2754abe44 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -167,7 +167,7 @@ $(call KernelPackage/$(1)/config) $(call KernelPackage/depends) ifneq ($(if $(filter-out %=y %=n %=m,$(KCONFIG)),$(filter m y,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$($(c)))),.),) - ifneq ($(strip $(FILES)),) + ifneq ($(if $(SDK),$(filter-out $(LINUX_DIR)/%.ko,$(FILES)),$(strip $(FILES))),) define Package/kmod-$(1)/install @for mod in $$(FILES); do \ if [ -e $$$$$$$$mod ]; then \