
I found the stupid mistake. I copy the entire directory and forget to modify the Makefile inside. just rename the $(ORIG_BOARD).c to $(NEW_BOARD).c since there is a line in Makefile: OBJS = $(BOARD).o. There is no mercury.c so make is unhappy. However the make give me confusing messages. Hope this mail be helpful to other newbies.
It's adapted from the evaluation board.
On Wed, May 21, 2008 at 4:03 PM, Wolfgang Denk wd@denx.de wrote:
In message 6bb35d250805202300k58ffd3f5h3b5664b46c368d58@mail.gmail.com you wrote:
I am newbie. I am trying to port u-boot to my board. I did these things: 1. copy a existing board directory, say m5445evb, to a new one "mercury" 2. copy the M5445X_config section and rename it to "MERCURY_config" 3. change board name "m5445evb" in the "@mkconfig -a ..." line
to mercury but when I try to compile u-boot make says "no rule to make target .depend", needed by lib_mercury.a in the board/freescale/mercury directory. I can compile u-boot for m5445evb normally. What's the matter?
You failed to adapt board/freescale/mercury/Makefile to your new board. Are you sure this is indeed a Freescale board? If not, then why is it located in the Freescale vendor directory?
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: wd@denx.de History tends to exaggerate. -- Col. Green, "The Savage Curtain", stardate 5906.4