From 3e20a60566fff38dcb09c4042c594be45318ff73 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Mon, 13 Jul 2015 12:32:04 +0200 Subject: [PATCH] package/uclibc: check for config file Add a check (before we call kconfig-package) that ensures the user has set a kconfig-file. Signed-off-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- package/uclibc/uclibc.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk index ecbfa113d4..3aceae300c 100644 --- a/package/uclibc/uclibc.mk +++ b/package/uclibc/uclibc.mk @@ -474,4 +474,12 @@ define UCLIBC_INSTALL_STAGING_CMDS $(UCLIBC_INSTALL_UTILS_STAGING) endef +# Checks to give errors that the user can understand +# Must be before we call to kconfig-package +ifeq ($(BR_BUILDING),y) +ifeq ($(call qstrip,$(BR2_UCLIBC_CONFIG)),) +$(error No uClibc configuration file specified, check your BR2_UCLIBC_CONFIG setting) +endif +endif + $(eval $(kconfig-package)) -- 2.30.2