From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Mon, 19 Sep 2011 15:07:14 +0200 Subject: [U-Boot] [PATCH] mkconfig: start deprecating Makefile config targets In-Reply-To: <1316323778-5486-1-git-send-email-vapier@gentoo.org> (Mike Frysinger's message of "Sun, 18 Sep 2011 01:29:38 -0400") References: <1316323778-5486-1-git-send-email-vapier@gentoo.org> Message-ID: <878vpk65q5.fsf@macbook.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >>>>> "Mike" == Mike Frysinger 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 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/ -- Bye, Peter Korsgaard