infra/pkg-kconfig: don't require a kconfig file for disabled packages
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 8 Apr 2015 17:08:34 +0000 (19:08 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 8 Apr 2015 20:29:58 +0000 (22:29 +0200)
commitb85bdae04dfc1e4235a206de60b3743a243510dd
tree4a2a7f62604dcbfc777d710c34afcf0ffb3fc6f2
parent85445896db96c7cddfa2ed12512eda5a8b8b6953
infra/pkg-kconfig: don't require a kconfig file for disabled packages

When a package is not enabled, we need not check that it provides
a .config/defconfig file.

So far, all our pkg-kconfig packages unconditionally set their
_KCONFIG_FILE, even to an empty value. But some packages (e.g.
at91bootstrap3) wanted to set it only when enabled, and broke.

So, only do the check when the package is enabled.

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