From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Thu, 17 Sep 2009 08:19:09 -0400 Subject: [U-Boot] Compile for SPARC Leon3 fails with *** No rule to make target ... *** In-Reply-To: <6105146B697B3049A2C2C04C0EE9088D06E313F85A@WW001E1ERLMM11.ww001.siemens.net> References: <6105146B697B3049A2C2C04C0EE9088D06E313F85A@WW001E1ERLMM11.ww001.siemens.net> Message-ID: <4AB2293D.1010800@ge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. 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: > > Thanks for your help! > > Best regards, > > Tobias Kraitschy Good luck, gvb