0004-batman-adv-use-kernel-specific-PKG_BUILD_DIR.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Fri, 27 Jan 2017 13:23:39 +0100
  3. Subject: batman-adv: use kernel-specific PKG_BUILD_DIR
  4. The batman-adv Makefile set a PKG_BUILD_DIR outside of KERNEL_BUILD_DIR;
  5. this could lead to batman-adv not being rebuilt when switching targets and
  6. thus kernel configurations. This resulted in ABI mismatches and
  7. occasionally broke the build with messages like the following:
  8. Package kmod-batman-adv is missing dependencies for the following libraries:
  9. crc16.ko
  10. Instead of setting a better PKG_BUILD_DIR ourselves, we can just remove
  11. the explicit PKG_BUILD_DIR definition and include kernel.mk before
  12. package.mk to get the default definition used by other kernel module
  13. packages.
  14. Reported-by: David Lutz <kpanic@hirnduenger.de>
  15. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  16. diff --git a/batman-adv/Makefile b/batman-adv/Makefile
  17. index 55f41fbfc222d4759bd008739ef0eff9e05b951a..ca34aa2241a979de836c7b6cd919416cf85225c3 100644
  18. --- a/batman-adv/Makefile
  19. +++ b/batman-adv/Makefile
  20. @@ -11,17 +11,15 @@ include $(TOPDIR)/rules.mk
  21. PKG_NAME:=batman-adv
  22. PKG_VERSION:=2016.4
  23. -PKG_RELEASE:=1
  24. +PKG_RELEASE:=2
  25. PKG_MD5SUM:=1ed28d02ad86050d1518023e354737b6
  26. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  27. PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
  28. PKG_LICENSE:=GPL-2.0
  29. -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)
  30. -
  31. -include $(INCLUDE_DIR)/package.mk
  32. include $(INCLUDE_DIR)/kernel.mk
  33. +include $(INCLUDE_DIR)/package.mk
  34. define KernelPackage/batman-adv
  35. URL:=https://www.open-mesh.org/