batman-adv: use kernel-specific PKG_BUILD_DIR
authorMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 27 Jan 2017 12:23:39 +0000 (13:23 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 27 Jan 2017 14:00:56 +0000 (15:00 +0100)
commita6c7413594a0e4b42dab42bb5fa68534e39b7d0c
treeb152c23ca84f644105553d62ec953078b2757986
parentcdaf1e2144918f1a19c46608589fef16e34c4bb2
batman-adv: use kernel-specific PKG_BUILD_DIR

The batman-adv Makefile set a PKG_BUILD_DIR outside of KERNEL_BUILD_DIR;
this could lead to batman-adv not being rebuilt when switching targets and
thus kernel configurations. This resulted in ABI mismatches and
occasionally broke the build with messages like the following:

    Package kmod-batman-adv is missing dependencies for the following libraries:
    crc16.ko

Instead of setting a better PKG_BUILD_DIR ourselves, we can just remove
the explicit PKG_BUILD_DIR definition and include kernel.mk before
package.mk to get the default definition used by other kernel module
packages.

Reported-by: David Lutz <kpanic@hirnduenger.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
batman-adv/Makefile