package/pkg-kconfig: handle KCONFIG_DEPENDENCIES with per-package directories
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 5 Nov 2019 16:46:43 +0000 (17:46 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 29 Nov 2019 14:29:04 +0000 (15:29 +0100)
commit41ea76711356cd715d27820578510e9e0815e5e2
tree37a2095cdf04e6550915ef33985fd3e5bc08c327
parentb27fb7871c6bce02434f74af457a9bc4312bd932
package/pkg-kconfig: handle KCONFIG_DEPENDENCIES with per-package directories

The pkg-kconfig infrastructure hijacks the regular chain of build
steps to insert its own step to prepare the configuration of kconfig
packages. This additional step may have dependencies of its own, such
as host-flex, host-bison or toolchain.

In the context of per-package directory support, those dependencies
must be copied to the per-package directory of the current package
prior to doing the config preparation. This commit implements this
logic by adding a call to prepare-per-package-directory at the right
spot.

Reported-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-kconfig.mk