Building U-Boot with Eclipse

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Building U-Boot with Eclipse

8,440 Views
bonzo
NXP Employee
NXP Employee

U-Boot is typically build using a command line make files or within LTIB.  The attached document explains how to set up Eclipse to build U-Boot.  This may make it easier to make changes and see how U-Boot is structured.

Enjoy...

Labels (1)
Tags (2)
0 Kudos
4 Replies

3,147 Views
deans
Contributor I

Thanks - worked pretty well with QorIQ SDK U-Boot. A couple minor comments:

- I also added BUILD_DIR on Step 5 (personal preference)

- For some reason I saw no addr2line and c++filt on Step 6 (not sure I care)

- For better indexing (eg, picking up correct config.h), added C/C++ Paths and Symbols, includes (all languages):

        ${BUILD_DIR}/include2

        ${BUILD_DIR}/include

        ${ProjDirPath}/include

        /opt/fsl/.../include

(assuming BUILD_DIR is used)

1 thing that's not working well is indexing of assembly code, which is annoying since I'm digging through start.S at the moment. Any idea if/how to get indexing to work on assembler (.S) files?

0 Kudos

3,147 Views
bonzo
NXP Employee
NXP Employee

Not sure how to index .S files.

In CodeWarrior (which is based on Eclipse), there is a check box in Properties-->C/C++ Build-->Discovery Options.  This allows you to automate discovery of the C Compiler or Assembler.

But I'm not sure if this option is available in the Eclipse running in Linux.  Will need to check.

0 Kudos

3,147 Views
deans
Contributor I

Step 4 in the attachment says to uncheck that option. I'm not familiar with it & haven't had a chance to experiment. Any tips would be appreciated.

0 Kudos

3,147 Views
Balaji_ng
Contributor III
Extremely Useful. Thank you very much for your work.
0 Kudos