summaryrefslogtreecommitdiffstats
path: root/package/kernel/Makefile
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-09-24 20:49:31 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-09-24 20:49:31 +0000
commit8afb23270d23db6a033ba8fb77e1cf1a1d925a7c (patch)
treeb7ed2e950b1b35de067464525dccaf95f2876cfd /package/kernel/Makefile
parent1d072248383ae47bd68032d69bd86cc060796ef4 (diff)
new (last?) attempt at standardizing Makefiles
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4855 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/Makefile')
-rw-r--r--package/kernel/Makefile23
1 files changed, 11 insertions, 12 deletions
diff --git a/package/kernel/Makefile b/package/kernel/Makefile
index f43f4fdf6..bb9fd4f70 100644
--- a/package/kernel/Makefile
+++ b/package/kernel/Makefile
@@ -17,9 +17,9 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
include $(INCLUDE_DIR)/package.mk
ifeq ($(DUMP),)
--include $(LINUX_DIR)/.config
-NF_KMOD:=1
-include $(INCLUDE_DIR)/netfilter.mk
+ -include $(LINUX_DIR)/.config
+ NF_KMOD:=1
+ include $(INCLUDE_DIR)/netfilter.mk
endif
define Build/Prepare
@@ -30,9 +30,9 @@ define Build/Compile
endef
define KernelPackage/Defaults
-FILES:=
-KCONFIG:=m
-AUTOLOAD:=
+ FILES:=
+ KCONFIG:=m
+ AUTOLOAD:=
endef
define ModuleAutoLoad
@@ -72,20 +72,19 @@ define KernelPackage
endef
ifeq ($(findstring m,$(KCONFIG)),m)
- ifneq ($(strip $(FILES)),)
- define Package/kmod-$(1)/install
+ ifneq ($(strip $(FILES)),)
+ define Package/kmod-$(1)/install
mkdir -p $$(1)/lib/modules/$(LINUX_VERSION)
$(CP) $$(FILES) $$(1)/lib/modules/$(LINUX_VERSION)/
$(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD))
- endef
- endif
+ endef
+ endif
endif
$$(eval $$(call BuildPackage,kmod-$(1)))
endef
define AutoLoad
-add_module $(1) "$(2)";
+ add_module $(1) "$(2)";
endef
include ./modules.mk
-