Re: [U-Boot] non-needed objects added to resulting U-Boot image

2008-10-15 Thread Wolfgang Denk
Dear Roman Mashak,

In message [EMAIL PROTECTED] you wrote:
 
  These libraries may be used in the link command of your image, but do
  you actually see any unused objects included in your linked image?
 LIBS in Makefile incorporates all drivers, file systems etc., so
 'make' command traverses through out the source tree and builds (in
 many cases the binaries contain only debug information). Isn't it
 reasonable to add a few variables, say in $(uboot)/config_user.mk,
 which will more precisely define what to build. Further,

Um... you didn't follow what's been going on in the Makefiles in the
last months, have you?

 It may slightly speed up a building process.

This is already being worked on, just differently (using kconfig
style).

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: [EMAIL PROTECTED]
...computer hardware progress is so fast. No other  technology  since
civilization  began  has seen six orders of magnitude in performance-
price gain in 30 years. - Fred Brooks, Jr.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] non-needed objects added to resulting U-Boot image

2008-10-14 Thread Wolfgang Denk
Dear Roman Mashak,

In message [EMAIL PROTECTED] you wrote:
 
 I was building u-boot for ARM based custom board and I found that
 unused and no needed object files are built and linked to the
 resulting U-Boot image. For example, my board doesn't have PCI,
 PCMCIA, USB or Ethernet, but according to the build-log, corresponding
 archives have been built and linked:
 
 drivers/net/libnet.a
 drivers/net/sk98lin/libsk98lin.a
 drivers/pci/libpci.a
 drivers/pcmcia/libpcmcia.a
 
 and so on.

These libraries may be used in the link command of your image, but do
you actually see any unused objects included in your linked image?

 Don't think it is intended behavior, on the other hand I have not
 included any support for this modules in my configuration. What can be
 the reason, has anybody had this before?

Um... you know what a library is and how the linker processes it?

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: [EMAIL PROTECTED]
Why can you only have two doors on a chicken coop? If it had four  it
would be a chicken sedan.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] non-needed objects added to resulting U-Boot image

2008-10-14 Thread Roman Mashak
Hello

2008/10/14 Wolfgang Denk [EMAIL PROTECTED]:
 drivers/net/libnet.a
 drivers/net/sk98lin/libsk98lin.a
 drivers/pci/libpci.a
 drivers/pcmcia/libpcmcia.a

 and so on.

 These libraries may be used in the link command of your image, but do
 you actually see any unused objects included in your linked image?
LIBS in Makefile incorporates all drivers, file systems etc., so
'make' command traverses through out the source tree and builds (in
many cases the binaries contain only debug information). Isn't it
reasonable to add a few variables, say in $(uboot)/config_user.mk,
which will more precisely define what to build. Further,
$(uboot)/config.mk includes config_local.mk, and later on Makefile
organizes LIBS something like that:

...
ifdef BUILD_NET
LIBS +=drivers/net/libnet.a
endif
...

It may slightly speed up a building process.

-- 
Roman Mashak
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot