diff options
author | Nicolas Thill <nico@openwrt.org> | 2006-09-24 20:49:31 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2006-09-24 20:49:31 +0000 |
commit | ecb6c4b599eab655681dbaa3e755709fa1b819b3 (patch) | |
tree | b7ed2e950b1b35de067464525dccaf95f2876cfd /package/kernel/Makefile | |
parent | 403a4bfc19147dc962180adb099e5ec9d7ad81c1 (diff) | |
download | upstream-ecb6c4b599eab655681dbaa3e755709fa1b819b3.tar.gz upstream-ecb6c4b599eab655681dbaa3e755709fa1b819b3.tar.bz2 upstream-ecb6c4b599eab655681dbaa3e755709fa1b819b3.zip |
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/Makefile | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/package/kernel/Makefile b/package/kernel/Makefile index f43f4fdf69..bb9fd4f70f 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 - |