Author: blogic
Date: 2014-09-17 13:01:24 +0200 (Wed, 17 Sep 2014)
New Revision: 42592

Modified:
   branches/barrier_breaker/target/sdk/Makefile
Log:
sdk: predefine kernel version magic

Kernel modules which are built using the SDK do not have access
to the .vermagic file in the Linux build dir, therefore the
generated .ipk metadata depends on kernel versions like
'3.10.49-1-unknown' which are not satisfiable by the kernel
meta package in the image.

Fix this problem by substituting 'unknown' with the current
version magic in include/kernel.mk when packing the SDK.

Signed-off-by: Jo-Philipp Wich <[email protected]>

Backport of r42590

Modified: branches/barrier_breaker/target/sdk/Makefile
===================================================================
--- branches/barrier_breaker/target/sdk/Makefile        2014-09-17 11:01:23 UTC 
(rev 42591)
+++ branches/barrier_breaker/target/sdk/Makefile        2014-09-17 11:01:24 UTC 
(rev 42592)
@@ -108,6 +108,7 @@
        cat $(TOPDIR)/feeds.conf.default \
                >> $(SDK_BUILD_DIR)/feeds.conf.default
        $(SED) 's,^# REVISION:=.*,REVISION:=$(REVISION),g' 
$(SDK_BUILD_DIR)/include/version.mk
+       $(SED) '/LINUX_VERMAGIC:=/ { s,unknown,$(LINUX_VERMAGIC),g }' 
$(SDK_BUILD_DIR)/include/kernel.mk
        find $(SDK_BUILD_DIR) -name .git | $(XARGS) rm -rf
        find $(SDK_BUILD_DIR) -name .svn | $(XARGS) rm -rf
        find $(SDK_BUILD_DIR) -name CVS | $(XARGS) rm -rf
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to