Skip to contentSkip to conversation

more CONFIG oddities in the current barebox tree

DISCUSSION Robert P. J. Day 2 participants 6 messages Dec 20, 2009 – Dec 21, 2009

lore
Share & tools
lore
#0 lore raw

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw
Quoted 8 lines · Robert P. J. Day

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.

Quoted 2 lines

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

Ditto

Quoted 3 lines

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

Ditto. This is a duplicate of CONFIG_MODULES.

Quoted 7 lines

===== 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.

Quoted 2 lines

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

should be CONFIG_SHELL_SIMPLE instead.

Quoted 4 lines

===== 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.

Quoted 2 lines

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

Can be removed.

Quoted 3 lines

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
Quoted 11 lines · Sascha Hauer
Quoted 8 lines · Robert P. J. Day

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#3 lore raw
In reply to Sascha Hauer

leftovers from one of my earliest posts ...

Quoted 5 lines · Sascha Hauer
Quoted 3 lines · Robert P. J. Day

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

so is barebox actually going to support MODVERSIONS?

Quoted 9 lines
Quoted 4 lines

===== 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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#4 lore raw
Quoted 5 lines · Robert P. J. Day

leftovers from one of my earliest posts ...

On Mon, 21 Dec 2009, Sascha Hauer wrote:

Quoted 7 lines
Quoted 5 lines · Robert P. J. Day
Quoted 4 lines

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#5 lore raw
Quoted 8 lines · Sascha Hauer
Quoted 7 lines · Robert P. J. Day

leftovers from one of my earliest posts ...

Quoted 1 line · Sascha Hauer

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

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

===== 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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox