core: move generated .br2-external kconfig file to $(BASE_DIR)

Currently, that file is generated rather late in the configuration
process, so BUILD_DIR is known (and exists) by then.

We're soon to generate that file much earlier, at a point where
BUILD_DIR is not yet known, so we have two options:
 1- declare BUILD_DIR earlier;
 2- generate the file in an already-known location.

We go with the second solution, as we're already generating a
br2-external related file in BASE_DIR, so we can as well generate all
br2-external files in the same place.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Yann E. MORIN
2019-07-29 22:19:53 +02:00
committed by Peter Korsgaard
parent fa3a2f139f
commit 54af0551b8
2 changed files with 8 additions and 8 deletions

View File

@@ -14,9 +14,9 @@ config BR2_HOSTARCH
string
option env="HOSTARCH"
config BR2_BUILD_DIR
config BR2_BASE_DIR
string
option env="BUILD_DIR"
option env="BASE_DIR"
# Hidden config symbols for packages to check system gcc version
config BR2_HOST_GCC_VERSION
@@ -865,4 +865,4 @@ source "package/Config.in.host"
source "Config.in.legacy"
source "$BR2_BUILD_DIR/.br2-external.in"
source "$BR2_BASE_DIR/.br2-external.in"