From 82ef2fd773987a72678a32b862f50085c3f57d56 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 23 Oct 2017 04:52:49 +0200 Subject: [PATCH] jool: fix PKG_BUILD_DIR to avoid kernel ABI mismatch As jool builds a kernel module, a PKG_BUILD_DIR under KERNEL_BUILD_DIR must be used to avoid reusing build artifacts when switching to a different target of the same architecture. Otherwise, kernel ABI mismatches may result, leading to an unusuable module, or build failures like the following: Package kmod-jool is missing dependencies for the following libraries: crypto_hash.ko Signed-off-by: Matthias Schiffer --- net/jool/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/jool/Makefile b/net/jool/Makefile index aa0e1b9770..0a6d691568 100644 --- a/net/jool/Makefile +++ b/net/jool/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=jool PKG_VERSION:=2016.12.17 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPL-3.0 PKG_LICENSE_FILES:=COPYING @@ -19,7 +19,7 @@ PKG_SOURCE_VERSION:=66a791c90751d7941b08c142babe1deec73d0996 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.xz -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR) +PKG_BUILD_DIR=$(KERNEL_BUILD_DIR)/$(PKG_SOURCE_SUBDIR) PKG_BUILD_PARALLEL:=1 PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone -- 2.30.2