On Wednesday 18 November 2009 03:17:21 Robert P. J. Day wrote: > i'm curious as to why common/Makefile hardcodes the compilation of > cmd_pcmcia.c thusly: > > COBJS-y += cmd_pcmcia.o > > since i'm interested in building for a beagleboard, i have no interest > in PCMCIA support, yet that source file will be compiled for me, even > though the selection macro CONFIG_CMD_PCMCIA does exist and is defined > by a number of other board configurations. > > what seems stranger is that, even though that config macro exists, > it isn't used in the Makefile but *is* tested in the source file > itself to determine whether the "pinit" command will be compiled:
you didnt read enough of the code. specifically, you missed the fact that other config options can compile code in this file even if CONFIG_CMD_PCMCIA is disabled. if you feel like re-architecting and splitting the code to take this into consideration, that's one thing. but it isnt a simple 'move the config option into the makefile' fix. -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

