All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mkconfig: start deprecating Makefile config targets
@ 2011-09-18  5:29 Mike Frysinger
  2011-09-19 13:07 ` Peter Korsgaard
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Mike Frysinger @ 2011-09-18  5:29 UTC (permalink / raw)
  To: u-boot

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(-)

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
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH] mkconfig: start deprecating Makefile config targets
  2011-09-18  5:29 [U-Boot] [PATCH] mkconfig: start deprecating Makefile config targets Mike Frysinger
@ 2011-09-19 13:07 ` Peter Korsgaard
  2011-09-19 14:05 ` [U-Boot] [PATCH v2] " Mike Frysinger
  2011-10-01 20:15 ` [U-Boot] [PATCH v3] " Mike Frysinger
  2 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2011-09-19 13:07 UTC (permalink / raw)
  To: u-boot

>>>>> "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/

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2] mkconfig: start deprecating Makefile config targets
  2011-09-18  5:29 [U-Boot] [PATCH] mkconfig: start deprecating Makefile config targets Mike Frysinger
  2011-09-19 13:07 ` Peter Korsgaard
@ 2011-09-19 14:05 ` Mike Frysinger
  2011-09-19 14:14   ` Wolfgang Denk
  2011-10-01 20:15 ` [U-Boot] [PATCH v3] " Mike Frysinger
  2 siblings, 1 reply; 8+ messages in thread
From: Mike Frysinger @ 2011-09-19 14:05 UTC (permalink / raw)
  To: u-boot

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>
---
v2
	- fix typo in warning msg

 mkconfig |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/mkconfig b/mkconfig
index ecb6d4e..438530b 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 in the next release.
+
+	EOF
+	sleep 5
 fi
 
 while [ $# -gt 0 ] ; do
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2] mkconfig: start deprecating Makefile config targets
  2011-09-19 14:05 ` [U-Boot] [PATCH v2] " Mike Frysinger
@ 2011-09-19 14:14   ` Wolfgang Denk
  2011-09-19 14:36     ` Mike Frysinger
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2011-09-19 14:14 UTC (permalink / raw)
  To: u-boot

Dear Mike Frysinger,

In message <1316441157-24823-1-git-send-email-vapier@gentoo.org> you wrote:
> 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>
> ---
> v2
> 	- fix typo in warning msg
> 
>  mkconfig |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)

Please update doc/feature-removal-schedule.txt as well.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"A little knowledge is a dangerous thing."                - Doug Gwyn

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2] mkconfig: start deprecating Makefile config targets
  2011-09-19 14:14   ` Wolfgang Denk
@ 2011-09-19 14:36     ` Mike Frysinger
  2011-09-26 18:21       ` Wolfgang Denk
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Frysinger @ 2011-09-19 14:36 UTC (permalink / raw)
  To: u-boot

On Monday, September 19, 2011 10:14:46 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > 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>
> > ---
> > v2
> > 
> > 	- fix typo in warning msg
> > 	
> >  mkconfig |    9 +++++++++
> >  1 files changed, 9 insertions(+), 0 deletions(-)
> 
> Please update doc/feature-removal-schedule.txt as well.

i didnt have a schedule in mind ... just start scaring people :)

any target you have in mind ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110919/9d1e9436/attachment.pgp 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2] mkconfig: start deprecating Makefile config targets
  2011-09-19 14:36     ` Mike Frysinger
@ 2011-09-26 18:21       ` Wolfgang Denk
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2011-09-26 18:21 UTC (permalink / raw)
  To: u-boot

Dear Mike Frysinger,

In message <201109191036.38248.vapier@gentoo.org> you wrote:
>
> > Please update doc/feature-removal-schedule.txt as well.
> 
> i didnt have a schedule in mind ... just start scaring people :)
> 
> any target you have in mind ?

Next release? Second next release?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If you think the problem is bad now, just wait until we've solved it.
                                                        Epstein's Law

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v3] mkconfig: start deprecating Makefile config targets
  2011-09-18  5:29 [U-Boot] [PATCH] mkconfig: start deprecating Makefile config targets Mike Frysinger
  2011-09-19 13:07 ` Peter Korsgaard
  2011-09-19 14:05 ` [U-Boot] [PATCH v2] " Mike Frysinger
@ 2011-10-01 20:15 ` Mike Frysinger
  2011-10-05 18:59   ` Wolfgang Denk
  2 siblings, 1 reply; 8+ messages in thread
From: Mike Frysinger @ 2011-10-01 20:15 UTC (permalink / raw)
  To: u-boot

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>
---
v3
	- add an actual target for board removal

 doc/feature-removal-schedule.txt |   16 ++++++++++++++++
 mkconfig                         |    9 +++++++++
 2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/doc/feature-removal-schedule.txt b/doc/feature-removal-schedule.txt
index 180ead5..13d7d9a 100644
--- a/doc/feature-removal-schedule.txt
+++ b/doc/feature-removal-schedule.txt
@@ -7,6 +7,22 @@ file.
 
 ---------------------------
 
+What:	boards with xxx_config targets in top level Makefile
+When:	Release v2012.03
+
+Why:	We have a boards.cfg file which the vast majority of boards have
+	converted over to.  Boards that still manually run mkconfig in the
+	top level Makefile are either dead, or the maintainer doesn't care,
+	or they are doing something weird/wrong that should be fixed in a
+	different way, or they need to extend boards.cfg syntax (unlikely).
+
+	In any case, if no one cares about these boards to figure out how
+	to make boards.cfg work, then we'll just punt them.
+
+Who:	Mike Frysinger <vapier@gentoo.org>
+
+---------------------------
+
 What:	CONFIG_NET_MULTI option
 When:	Release 2009-11
 
diff --git a/mkconfig b/mkconfig
index ecb6d4e..438530b 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 in the next release.
+
+	EOF
+	sleep 5
 fi
 
 while [ $# -gt 0 ] ; do
-- 
1.7.6.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v3] mkconfig: start deprecating Makefile config targets
  2011-10-01 20:15 ` [U-Boot] [PATCH v3] " Mike Frysinger
@ 2011-10-05 18:59   ` Wolfgang Denk
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2011-10-05 18:59 UTC (permalink / raw)
  To: u-boot

Dear Mike Frysinger,

In message <1317500104-1508-1-git-send-email-vapier@gentoo.org> you wrote:
> 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>
> ---
> v3
> 	- add an actual target for board removal
> 
>  doc/feature-removal-schedule.txt |   16 ++++++++++++++++
>  mkconfig                         |    9 +++++++++
>  2 files changed, 25 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
But it's real. And if it's real it can be affected ... we may not  be
able  to break it, but, I'll bet you credits to Navy Beans we can put
a dent in it.
	-- deSalle, "Catspaw", stardate 3018.2

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-10-05 18:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-18  5:29 [U-Boot] [PATCH] mkconfig: start deprecating Makefile config targets Mike Frysinger
2011-09-19 13:07 ` Peter Korsgaard
2011-09-19 14:05 ` [U-Boot] [PATCH v2] " Mike Frysinger
2011-09-19 14:14   ` Wolfgang Denk
2011-09-19 14:36     ` Mike Frysinger
2011-09-26 18:21       ` Wolfgang Denk
2011-10-01 20:15 ` [U-Boot] [PATCH v3] " Mike Frysinger
2011-10-05 18:59   ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.