From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Compile for SPARC Leon3 fails with *** No rule to make target ... ***
Date: Thu, 17 Sep 2009 08:19:09 -0400 [thread overview]
Message-ID: <4AB2293D.1010800@ge.com> (raw)
In-Reply-To: <6105146B697B3049A2C2C04C0EE9088D06E313F85A@WW001E1ERLMM11.ww001.siemens.net>
Kraitschy, Tobias wrote:
> Hi all,
>
> I`ve implemented Gaisler Research`s Leon3 SPARC core to a FPGA
> evaluation board of Actel. Now I`m about to get U-Boot running. So I
> made up my own board directory, added header files with my
> configuration-parameters etc. just as discribed in the u-boot README.
> The "make myboard_config" goes well, but "make all" fails with the
> following message.
>
> make[1]: *** No rule to make target `/u-boot-2009.08_build/cpu/leon3/start.S', needed by `/u-boot-2009.08_build/cpu/leon3/start.o'. Stop.
The source has a cpu/leon3/start.S file. The Makefile in that directory has
$(START): $(START:.o=.S)
so that is where the dependency is coming from. Is the file's location
correct? Does the file really exist there:
ls /u-boot-2009.08_build/cpu/leon3/start.S
> I?d like to add that I set "BUILD_DIR=`/u-boot-2009.08_build" and I
> am using Gaisler`s Bare Cross Compiler with GCC 3.4.4. Searching the
> mailing-list-archives brought no advice to me. I also tried to study
> the Makefiles for half a week now, but I?m not familiar enought with
> it.
Setting BUILD_DIR to be an absolute path (leading "/") seems odd.
<http://www.denx.de/wiki/DULG/UBootConfiguration> says...
"By default the build is performed locally and the objects are saved in
the source directory. One of the two methods can be used to change this
behaviour and build U-Boot to some external directory:"
Try building it in the source directory rather than putting the output
in a separate directory. There are perennial problems with building
into a separate directory (e.g. the $(OBJ) prefix is not prepended to
the destination). This is an easy thing to miss or mess up (also easy
to fix). Since leon3 is not a heavily used target, I would suspect that
is the problem.
I would suggest not using BUILD_DIR and see if it works. If it does,
update the cpu/leon3/Makefile to look like a more heavily used target
CPU, e.g. a PowerPC like the 83xx:
<http://git.denx.de/?p=u-boot.git;a=blob;f=cpu/mpc83xx/Makefile;h=15e2c18b13760c25f266a51934659c4fdc845730;hb=HEAD>
>
> Thanks for your help!
>
> Best regards,
>
> Tobias Kraitschy
Good luck,
gvb
next prev parent reply other threads:[~2009-09-17 12:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Aco21zg2LUilBoR3QbmCX7X3hkBIfA==>
2009-09-16 14:08 ` [U-Boot] Compile for SPARC Leon3 fails with *** No rule to make target ... *** Kraitschy, Tobias
2009-09-16 17:10 ` Сергей Миронов
2009-09-17 12:19 ` Jerry Van Baren [this message]
2009-09-17 13:35 ` Kraitschy, Tobias
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AB2293D.1010800@ge.com \
--to=gerald.vanbaren@ge.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.