Re: [U-Boot-Users] Compiling Hello_World

Ok:
I am using U-Boot 1.2.0. The target machine is a PowerPC 8248. I am using the C compiler ppc_82xx-gcc, version 3.2.2. The host system is a TACE-Linux 2.6.18.
I am able to compile a quite simple application that only has an empty "main" function. I would like to add a "printf" senctence, so how my Makefile should look like? The compilation step must include the neccessary include paths, but after checking some documentation I discovered that it is neccessary to link with some ".o" files, where the exported functions are. After that linking step I do an object-copy step, to generate a S-Record file. Do I have to perform an additional step after linking?
Regards,
Alberto
On 11:31 Wed 12 Dec , alberto.caballero@di... wrote:
Hello. I am trying to compile the Hello_World example. After executing "make" I get some error messages, like wrong paths, not-defined
constants.
Why I can build the example from the examples folder without modifiyint the Makefile script?
What I am tryint to do is to compile a standalone application for
U-Boot.
I use the "printf" sentence on that application, so, do I have to
include
the "exports.h" and "common.h" header files to my application source
file?
Can anyone give an example of a Makefile where I can see the steps for building the code?
Regards,
Alberto
Hi,
Could you provide more information on your platform, toolchains, u-boot version etc...
Best Regards, J. Q No imprima este e-mail si no es necesario. Protejamos el Medio Ambiente. E Este mensaje y sus ficheros adjuntos se dirigen exclusivamente a su destinatario y pueden contener informaci�n confidencial y/o sujeta a secreto profesional. Si no es usted el destinatario indicado, queda notificado de que la utilizaci�n, divulgaci�n y/o copia sin autorizaci�n est� prohibida en virtud de la legislaci�n vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma v�a y proceda a su destrucci�n. Los ficheros adjuntos han sido comprobados con un programa anti virus antes de su transmisi�n, pero les recomendamos que efect�en sus propias comprobaciones antes de abrir cualquiera de ellos. No aceptamos responsabilidad alguna por da�os o p�rdidas causados por virus inform�ticos. La empresa no asume ning�n tipo de responsabilidad legal por el contenido de este mensaje. Cualquier opini�n manifestada en el pertenece solo al autor y no representa necesariamente la opini�n de la empresa salvo que expresamente se especifique lo contrario. Dimetronic, S.A. con domicilio en Avda. Castilla n�2, Parque Empresarial San Fernando (Edificio Grecia), 28830 San Fernando de Henares, Madrid, Espa�a y CIF A-28512598 se encuentra inscrita en el Registro Mercantil de Madrid al tomo 4.948 general, secci�n 3�, folio 23, hoja n� 39135 y Dimetronic S.A., Sucursal Portuguesa con domicilio en Avenida D. Jo�o II, Lote 1.16.05, Edificio Infante 3�Q, 1990-083 Lisboa, Freguesia de Santa Maria dos Olivais, Concelho de Lisboa, (Portugal), NIPC 980 020 891 se encuentra inscrita en el Registro Comercial de Lisboa con el n� 68850/880725. Dimetronic, S.A. y Dimetronic, S.A. Sucursal Portuguesa son filiales de Invensys, Plc , cuyo domicilio social est� en Portland House, Bressenden Place, London SW1E 5BF. Registrada en Inglaterra y Gales con el n� 1641421.
English translation Tradu��o portuguesa
participants (1)
-
alberto.caballero@dimetronic.com