package/pkg-kconfig: move defaults before calling pkg-generic
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 24 Jul 2021 21:19:20 +0000 (23:19 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 25 Jul 2021 13:20:24 +0000 (15:20 +0200)
commit5b5df66b7d0a9fd887b042de0401ba5094522857
tree689b756de0a6f6f6a6556b2f3aa15498bdc431ff
parent9d8b1d3977fa5cd2829a7214a8f2ea479560d421
package/pkg-kconfig: move defaults before calling pkg-generic

Currently, we define the default values for kconfig-specific variables
after we call into the generic package infrastructure.

So far, this was totally unconsequential, because there was no kconfig
variable that could influence the generic parts. But conversely, there
are generic variables that do influence the kconfig part (e.g. $(2)_DIR
that is used in some dependency definitions), but none that do influence
the kconfig variables.

However, we are going to add a new kconfig-related variable that will
have an impact on the generic parts, so we will want that kconfig
variable to be defined before calling into the generic infrastructure.

For consistency, move all the defaults before calling the generic infra.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/pkg-kconfig.mk