treewide: Use default PKG_BUILD_DIR when possible
authorJeffery To <jeffery.to@gmail.com>
Sat, 12 Oct 2019 17:00:20 +0000 (01:00 +0800)
committerRosen Penev <rosenp@gmail.com>
Mon, 13 Apr 2020 02:24:15 +0000 (19:24 -0700)
commitfc2a591b53c3f2520f13676bb46c582d1efccc0d
treec8bf5574159488e3daa6c58daeca0ce5f11a4d69
parent3c59551d85a8f7652ee6e86573fc806a104aefc8
treewide: Use default PKG_BUILD_DIR when possible

This removes lines that set PKG_BUILD_DIR when the set value is no
different from the default value.

Specifically, the line is removed if the assigned value is:

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)

  The default PKG_BUILD_DIR was updated[1] to incorporate BUILD_VARIANT
  if it is set, so now this is identical to the default value.

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)

  if PKG_SOURCE_SUBDIR is set to $(PKG_NAME)-$(PKG_VERSION), making it
  the same as the previous case

* $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

  This is the same as the default PKG_BUILD_DIR when there is no
  BUILD_VARIANT.

* $(BUILD_DIR)/[name]-$(PKG_VERSION)

  where [name] is a string that is identical to PKG_NAME

[1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e545fac8d968864a965edb9e50c6f90940b0a6c9

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 53e1692ae91b1b5fc59a7e8ab7fb98f8775eb4b6)
47 files changed:
admin/monit/Makefile
admin/openwisp-config/Makefile
lang/lpeg/Makefile
lang/lua-cjson/Makefile
lang/lua-libmodbus/Makefile
lang/luasql/Makefile
libs/libedit/Makefile
libs/libshout/Makefile
libs/libuwsc/Makefile
libs/libwebsockets/Makefile
libs/libyubikey/Makefile
libs/xmlrpc-c/Makefile
libs/zmq/Makefile
mail/alpine/Makefile
mail/emailrelay/Makefile
mail/mailsend/Makefile
mail/msmtp/Makefile
multimedia/ffmpeg/Makefile
net/daemonlogger/Makefile
net/foolsm/Makefile
net/haproxy/Makefile
net/httping/Makefile
net/knot/Makefile
net/mini_snmpd/Makefile
net/mosquitto/Makefile
net/ngircd/Makefile
net/nmap/Makefile
net/nsd/Makefile
net/nut/Makefile
net/openssh/Makefile
net/opentracker/Makefile
net/sshfs/Makefile
net/uanytun/Makefile
net/unbound/Makefile
net/vsftpd/Makefile
net/wget/Makefile
net/wifidog/Makefile
sound/mpd/Makefile
sound/shairport-sync/Makefile
sound/squeezelite/Makefile
utils/acpica-unix/Makefile
utils/bandwidthd/Makefile
utils/cryptsetup/Makefile
utils/flashrom/Makefile
utils/less/Makefile
utils/openzwave/Makefile
utils/ykclient/Makefile