boot/barebox: check for config file before calling kconfig-package
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 13 Jul 2015 10:32:02 +0000 (12:32 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 14 Jul 2015 08:30:42 +0000 (10:30 +0200)
commit06d126fdc1813dad84c95c2500f400f45853ffae
tree374d69b49f5c13516910b90a635df9a359d76467
parent5e94388c57546aa8eff1f7c3cb29ddde052e0b4b
boot/barebox: check for config file before calling kconfig-package

If we check that the user provides a config file after we call to the
kconfig-package infra, the error message we get is the one for the
kconfig-package infra, not the custom error message we want to show to
the user.

So, only call kconfig-package after we do the check.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
boot/barebox/barebox.mk