batman-adv: use kernel-specific PKG_BUILD_DIR 266/head
authorMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 27 Jan 2017 12:23:39 +0000 (13:23 +0100)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 27 Jan 2017 12:39:10 +0000 (13:39 +0100)
commit8018159e9c48b0082076544061cb28acc5ce58fa
treee63ed9e1dcf6052db875af484ba4cec73598c776
parent9c65b25b59f9c5af9177f76f9ecd374ac8cf2312
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