mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* more CONFIG oddities in the current barebox tree
@ 2009-12-20 12:08 Robert P. J. Day
  2009-12-21  9:32 ` Sascha Hauer
  0 siblings, 1 reply; 6+ messages in thread
From: Robert P. J. Day @ 2009-12-20 12:08 UTC (permalink / raw)
  To: U-Boot Version 2 (barebox)


  here's a short list of Makefile CONFIG tests that test for
non-existent CONFIG variables -- not strictly an error, just valueless
and can be removed if there's no compelling reason to keep them.  (as
always, could be trivial false positives).

===== CMD_I2C =====
./commands/Makefile:obj-$(CONFIG_CMD_I2C)		+= i2c.o
===== LOGO =====
./scripts/Makefile:hostprogs-$(CONFIG_LOGO)         += pnmtologo
===== MODULE =====
./common/Makefile:obj-$(CONFIG_MODULE)		+= module.o
./arch/ppc/Makefile:ifndef CONFIG_MODULE
===== MODVERSIONS =====
./Makefile:  KBUILD_BUILTIN := $(if $(CONFIG_MODVERSIONS),1)
./scripts/Makefile:#subdir-$(CONFIG_MODVERSIONS) += genksyms
===== PROM_CONSOLE =====
./scripts/Makefile:hostprogs-$(CONFIG_PROM_CONSOLE) += conmakehash
===== SIMPLE_PARSER =====
./commands/Makefile:obj-$(CONFIG_SIMPLE_PARSER)	+= setenv.o
===== USE_IRQ =====
./arch/ppc/mach-mpc5xxx/Makefile:obj-$(CONFIG_USE_IRQ)	+=
interrupts.o
./arch/ppc/lib/Makefile:obj-$(CONFIG_USE_IRQ) += interrupts.o
===== VT =====
./scripts/Makefile:hostprogs-$(CONFIG_VT)           += conmakehash

  if any of that can be obviously deleted, let me know and i can
submit the appropriate patches.

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: more CONFIG oddities in the current barebox tree
  2009-12-20 12:08 more CONFIG oddities in the current barebox tree Robert P. J. Day
@ 2009-12-21  9:32 ` Sascha Hauer
  2009-12-21  9:37   ` Robert P. J. Day
  2009-12-21 13:09   ` Robert P. J. Day
  0 siblings, 2 replies; 6+ messages in thread
From: Sascha Hauer @ 2009-12-21  9:32 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: U-Boot Version 2 (barebox)

On Sun, Dec 20, 2009 at 07:08:02AM -0500, Robert P. J. Day wrote:
> 
>   here's a short list of Makefile CONFIG tests that test for
> non-existent CONFIG variables -- not strictly an error, just valueless
> and can be removed if there's no compelling reason to keep them.  (as
> always, could be trivial false positives).
> 
> ===== CMD_I2C =====
> ./commands/Makefile:obj-$(CONFIG_CMD_I2C)		+= i2c.o

This can be removed.

> ===== LOGO =====
> ./scripts/Makefile:hostprogs-$(CONFIG_LOGO)         += pnmtologo

Ditto

> ===== MODULE =====
> ./common/Makefile:obj-$(CONFIG_MODULE)		+= module.o
> ./arch/ppc/Makefile:ifndef CONFIG_MODULE

Ditto. This is a duplicate of CONFIG_MODULES.

> ===== MODVERSIONS =====
> ./Makefile:  KBUILD_BUILTIN := $(if $(CONFIG_MODVERSIONS),1)
> ./scripts/Makefile:#subdir-$(CONFIG_MODVERSIONS) += genksyms


> ===== PROM_CONSOLE =====
> ./scripts/Makefile:hostprogs-$(CONFIG_PROM_CONSOLE) += conmakehash

Can be removed.

> ===== SIMPLE_PARSER =====
> ./commands/Makefile:obj-$(CONFIG_SIMPLE_PARSER)	+= setenv.o

should be CONFIG_SHELL_SIMPLE instead.

> ===== USE_IRQ =====
> ./arch/ppc/mach-mpc5xxx/Makefile:obj-$(CONFIG_USE_IRQ)	+=
> interrupts.o
> ./arch/ppc/lib/Makefile:obj-$(CONFIG_USE_IRQ) += interrupts.o

The IRQ stuff is an area for some more cleanup. So far I do not use
interrupts at all and I doubt they are working anywhere. Maybe it's best
to keep it like it is until somebody is willing to think about irqs and
has some suggestions in which direction we want to go.

> ===== VT =====
> ./scripts/Makefile:hostprogs-$(CONFIG_VT)           += conmakehash

Can be removed.

> 
>   if any of that can be obviously deleted, let me know and i can
> submit the appropriate patches.

That would be great. Your scripts really put the eyes on some long
forgotten things ;)

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: more CONFIG oddities in the current barebox tree
  2009-12-21  9:32 ` Sascha Hauer
@ 2009-12-21  9:37   ` Robert P. J. Day
  2009-12-21 13:09   ` Robert P. J. Day
  1 sibling, 0 replies; 6+ messages in thread
From: Robert P. J. Day @ 2009-12-21  9:37 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: U-Boot Version 2 (barebox)

On Mon, 21 Dec 2009, Sascha Hauer wrote:

> On Sun, Dec 20, 2009 at 07:08:02AM -0500, Robert P. J. Day wrote:
> >
> >   here's a short list of Makefile CONFIG tests that test for
> > non-existent CONFIG variables -- not strictly an error, just
> > valueless and can be removed if there's no compelling reason to
> > keep them.  (as always, could be trivial false positives).
> >
> > ===== CMD_I2C =====
> > ./commands/Makefile:obj-$(CONFIG_CMD_I2C)		+= i2c.o
>
> This can be removed.

  ... snip ...

just to be clear, if such a reference to a non-existent CONFIG
variable can be removed from a Makefile, that normally implies that
what it was managing (the source file) can *also* be removed since
there will, of course, be nothing to force its compilation.

  in the above case, there just happens to be no file i2c.c in that
directory so it's not a problem, but if there had been, the patch to
take care of this would have involved deleting that source file.  as
long as we understand that.

  i may remove the removable stuff in more than one patch if they look
like logically separate operations.

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: more CONFIG oddities in the current barebox tree
  2009-12-21  9:32 ` Sascha Hauer
  2009-12-21  9:37   ` Robert P. J. Day
@ 2009-12-21 13:09   ` Robert P. J. Day
  2009-12-21 13:27     ` Sascha Hauer
  1 sibling, 1 reply; 6+ messages in thread
From: Robert P. J. Day @ 2009-12-21 13:09 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: U-Boot Version 2 (barebox)


  leftovers from one of my earliest posts ...

On Mon, 21 Dec 2009, Sascha Hauer wrote:

> On Sun, Dec 20, 2009 at 07:08:02AM -0500, Robert P. J. Day wrote:

> > ===== MODVERSIONS =====
> > ./Makefile:  KBUILD_BUILTIN := $(if $(CONFIG_MODVERSIONS),1)
> > ./scripts/Makefile:#subdir-$(CONFIG_MODVERSIONS) += genksyms

  so is barebox actually going to support MODVERSIONS?

> > ===== USE_IRQ =====
> > ./arch/ppc/mach-mpc5xxx/Makefile:obj-$(CONFIG_USE_IRQ)	+=
> > interrupts.o
> > ./arch/ppc/lib/Makefile:obj-$(CONFIG_USE_IRQ) += interrupts.o
>
> The IRQ stuff is an area for some more cleanup. So far I do not use
> interrupts at all and I doubt they are working anywhere. Maybe it's
> best to keep it like it is until somebody is willing to think about
> irqs and has some suggestions in which direction we want to go.

  sure, no problem.  all other issues from that post have now been
addressed.

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: more CONFIG oddities in the current barebox tree
  2009-12-21 13:09   ` Robert P. J. Day
@ 2009-12-21 13:27     ` Sascha Hauer
  2009-12-21 13:56       ` Robert P. J. Day
  0 siblings, 1 reply; 6+ messages in thread
From: Sascha Hauer @ 2009-12-21 13:27 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: U-Boot Version 2 (barebox)

On Mon, Dec 21, 2009 at 08:09:11AM -0500, Robert P. J. Day wrote:
> 
>   leftovers from one of my earliest posts ...
> 
> On Mon, 21 Dec 2009, Sascha Hauer wrote:
> 
> > On Sun, Dec 20, 2009 at 07:08:02AM -0500, Robert P. J. Day wrote:
> 
> > > ===== MODVERSIONS =====
> > > ./Makefile:  KBUILD_BUILTIN := $(if $(CONFIG_MODVERSIONS),1)
> > > ./scripts/Makefile:#subdir-$(CONFIG_MODVERSIONS) += genksyms
> 
>   so is barebox actually going to support MODVERSIONS?

I think not. If we ever want to do we can add this back in.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: more CONFIG oddities in the current barebox tree
  2009-12-21 13:27     ` Sascha Hauer
@ 2009-12-21 13:56       ` Robert P. J. Day
  0 siblings, 0 replies; 6+ messages in thread
From: Robert P. J. Day @ 2009-12-21 13:56 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: U-Boot Version 2 (barebox)

On Mon, 21 Dec 2009, Sascha Hauer wrote:

> On Mon, Dec 21, 2009 at 08:09:11AM -0500, Robert P. J. Day wrote:
> >
> >   leftovers from one of my earliest posts ...
> >
> > On Mon, 21 Dec 2009, Sascha Hauer wrote:
> >
> > > On Sun, Dec 20, 2009 at 07:08:02AM -0500, Robert P. J. Day wrote:
> >
> > > > ===== MODVERSIONS =====
> > > > ./Makefile:  KBUILD_BUILTIN := $(if $(CONFIG_MODVERSIONS),1)
> > > > ./scripts/Makefile:#subdir-$(CONFIG_MODVERSIONS) += genksyms
> >
> >   so is barebox actually going to support MODVERSIONS?
>
> I think not. If we ever want to do we can add this back in.

  ok.  that second line has already been removed as part of an earlier
patch, i'll submit something to delete the first one appropriately.

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2009-12-21 13:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-20 12:08 more CONFIG oddities in the current barebox tree Robert P. J. Day
2009-12-21  9:32 ` Sascha Hauer
2009-12-21  9:37   ` Robert P. J. Day
2009-12-21 13:09   ` Robert P. J. Day
2009-12-21 13:27     ` Sascha Hauer
2009-12-21 13:56       ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox