[U-Boot] [PATCH v2] Switch from archive libraries to partial linking
Andre Schwarz
andre.schwarz at matrix-vision.de
Wed Nov 10 09:35:36 CET 2010
Sebastien,
>> I also don't understand why ftd.c is not depending on CONFIG_QE.
>> That's another question ... but leads to error having your patch applied.
>>
> Right, fdt.c should not be included in the build unless both CONFIG_QE
> and CONFIG_OF_LIBFDT are defined. Previously this issue was hidden
> because all of qe.a was discarded by the linker. Would the following
> be a good fix for this problem?
>
> -COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
> +COBJS-$(and $(CONFIG_QE),$(CONFIG_OF_LIBFDT)) += fdt.o
>
yes - this should do it.
Within fdt.c there's a CONFIG_QE conditional - you can remove this also
with your approach.
Regards,
André
MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
More information about the U-Boot
mailing list