diff mbox

[U-Boot] mkconfig: start deprecating Makefile config targets

Message ID 1316323778-5486-1-git-send-email-vapier@gentoo.org
State Superseded
Headers show

Commit Message

Mike Frysinger Sept. 18, 2011, 5:29 a.m. UTC
Now that we've got boards.cfg and most people have converted over,
start warning people who have yet to so we can phase board configs
completely out of the Makefile.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 mkconfig |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

Comments

Peter Korsgaard Sept. 19, 2011, 1:07 p.m. UTC | #1
>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:

 Mike> Now that we've got boards.cfg and most people have converted over,
 Mike> start warning people who have yet to so we can phase board configs
 Mike> completely out of the Makefile.

 Mike> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
 Mike> ---
 Mike>  mkconfig |    9 +++++++++
 Mike>  1 files changed, 9 insertions(+), 0 deletions(-)

 Mike> diff --git a/mkconfig b/mkconfig
 Mike> index ecb6d4e..6a60849 100755
 Mike> --- a/mkconfig
 Mike> +++ b/mkconfig
 Mike> @@ -29,6 +29,15 @@ if [ \( $# -eq 2 \) -a \( "$1" = "-A" \) ] ; then
 Mike>  	set ${line}
 Mike>  	# add default board name if needed
 Mike>  	[ $# = 3 ] && set ${line} ${1}
 Mike> +elif [ "${MAKEFLAGS+set}${MAKELEVEL+set}" = "setset" ] ; then
 Mike> +	# only warn when using a config target in the Makefile
 Mike> +	cat <<-EOF
 Mike> +
 Mike> +	warning: Please migrate to boards.cfg.  Failure to do so will
 Mike> +	         mean removal of your board board in the next release.

s/board board/board/
diff mbox

Patch

diff --git a/mkconfig b/mkconfig
index ecb6d4e..6a60849 100755
--- a/mkconfig
+++ b/mkconfig
@@ -29,6 +29,15 @@  if [ \( $# -eq 2 \) -a \( "$1" = "-A" \) ] ; then
 	set ${line}
 	# add default board name if needed
 	[ $# = 3 ] && set ${line} ${1}
+elif [ "${MAKEFLAGS+set}${MAKELEVEL+set}" = "setset" ] ; then
+	# only warn when using a config target in the Makefile
+	cat <<-EOF
+
+	warning: Please migrate to boards.cfg.  Failure to do so will
+	         mean removal of your board board in the next release.
+
+	EOF
+	sleep 5
 fi
 
 while [ $# -gt 0 ] ; do