kernel: reduce spurious rebuilds of simple kmod-* packages
authorFelix Fietkau <nbd@openwrt.org>
Thu, 18 Jul 2013 16:32:07 +0000 (16:32 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 18 Jul 2013 16:32:07 +0000 (16:32 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37403

package/kernel/linux/Makefile

index 4ca442f2a5b86f8999842b74185508e3f8adcaee..e10e99c51e3ad320f6052707b5c3c5b8aadf993a 100644 (file)
@@ -18,6 +18,9 @@ PKG_LICENSE:=GPLv2
 PKG_LICENSE_FILES:=
 
 include $(INCLUDE_DIR)/package.mk
+
+STAMP_BUILT:=$(STAMP_BUILT)_$(firstword $(shell $(SCRIPT_DIR)/kconfig.pl $(LINUX_DIR)/.config | md5sum))
+
 ifeq ($(DUMP),)
   -include $(LINUX_DIR)/.config
 endif
@@ -32,6 +35,9 @@ endef
 define Build/Compile
 endef
 
+define KernelPackage/depends
+endef
+
 CONFIG_PACKAGE_kernel=y
 define Package/kernel
   SECTION:=sys