diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2015-04-08 19:08:35 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-06-10 09:27:05 +0200 |
commit | 932a958672b1239d2fb872573f723aa99bf8991b (patch) | |
tree | 21a9535e13a78bfb1a1c0bfccb0523a598b3a7b3 | |
parent | 30d076be237cc2bce8d397deb318a91593d3089b (diff) | |
download | buildroot-932a958672b1239d2fb872573f723aa99bf8991b.tar.gz buildroot-932a958672b1239d2fb872573f723aa99bf8991b.zip |
infra/pkg-kconfig: require an non-empty KCONFIG_FILE
Currently, we only check that the variable is defined, which is not
enough since we really want it to be non-empty.
We however can't check it points to an existing file, because the
package might well not be extracted yet, and we may use an internal
defconfig. If that file does not eventually exist, there will be a
failure down the road at build time when we try to copy it...
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>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/pkg-kconfig.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/pkg-kconfig.mk b/package/pkg-kconfig.mk index dcaed53dd2..7a00fff393 100644 --- a/package/pkg-kconfig.mk +++ b/package/pkg-kconfig.mk @@ -70,7 +70,7 @@ $$($(2)_TARGET_CONFIGURE): $$($(2)_DIR)/.stamp_kconfig_fixup_done ifeq ($$($$($(2)_KCONFIG_VAR)),y) # FOO_KCONFIG_FILE is required -ifndef $(2)_KCONFIG_FILE +ifeq ($$($(2)_KCONFIG_FILE),) $$(error Internal error: no value specified for $(2)_KCONFIG_FILE) endif |