mirror of
https://xff.cz/git/u-boot/
synced 2026-01-07 00:59:18 +01:00
kconfig: show an error message when defconfig is not found
When a non-existing defconfig is specified, display an easy-to-understand message (fake the error message on Linux Kernel): $ make foo_defconfig *** *** Can't find default configuration "confis/foo_defconfig"! *** Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
committed by
Tom Rini
parent
ec3b48201d
commit
8caaec6260
@@ -118,6 +118,13 @@ do_board_defconfig () {
|
||||
defconfig_path=$srctree/configs/$1
|
||||
tmp_defconfig_path=configs/.tmp_defconfig
|
||||
|
||||
if [ ! -r $defconfig_path ]; then
|
||||
echo >&2 "***"
|
||||
echo >&2 "*** Can't find default configuration \"confis/$1\"!"
|
||||
echo >&2 "***"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p arch configs
|
||||
# defconfig for Normal:
|
||||
# pick lines without prefixes and lines starting '+' prefix
|
||||
|
||||
Reference in New Issue
Block a user