build: include BUILD_VARIANT in PKG_BUILD_DIR
authorJeffery To <jeffery.to@gmail.com>
Sat, 3 Aug 2019 20:45:06 +0000 (04:45 +0800)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Sep 2019 11:35:17 +0000 (13:35 +0200)
commitcc7560eb22d2c491a0a995135780f3e8aa3cfa6f
treea58fd4c6ce3fa8a5f5eb3a26425713ed70b034da
parent3f974a954d351bc1f34c39e0ca908a22a2583701
build: include BUILD_VARIANT in PKG_BUILD_DIR

This changes the default PKG_BUILD_DIR to take BUILD_VARIANT into
account (if set), so that packages do not need to manually override
PKG_BUILD_DIR just to handle variants.

This also updates most base packages with variants to use the updated
default PKG_BUILD_DIR.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit e545fac8d968864a965edb9e50c6f90940b0a6c9)
17 files changed:
include/kernel.mk
include/package.mk
package/boot/tfa-layerscape/Makefile
package/kernel/lantiq/ltq-adsl-mei/Makefile
package/kernel/lantiq/ltq-atm/Makefile
package/kernel/lantiq/ltq-deu/Makefile
package/kernel/lantiq/ltq-ptm/Makefile
package/libs/ustream-ssl/Makefile
package/network/services/hostapd/Makefile
package/network/services/odhcpd/Makefile
package/network/services/openvpn/Makefile
package/network/services/ppp/Makefile
package/network/utils/iproute2/Makefile
package/network/utils/iw/Makefile
package/network/utils/tcpdump/Makefile
package/system/ucert/Makefile
package/utils/px5g/Makefile