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)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 20:03:14 +0000 (16:03 -0400)
commit8922ba9b48e948232c8ecb1c2eabd77d7edafc6f
tree667e23bd07d4fb9047ecfb6047715d49c24b27f5
parentfeb2260aababce9177dda22741d76ececa07daff
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)
12 files changed:
include/kernel.mk
include/package.mk
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