<div dir="ltr">I thought I would try and rebuild sources again, however, I got an error that autoconf version 2.69 or greater was required when I tried to bootstrap. I don't know why it all passed last time. I am updating my system and after that will try again</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 2, 2015 at 9:25 AM, Angelo Fraietta <span dir="ltr"><<a href="mailto:newsgroups@smartcontroller.com.au" target="_blank">newsgroups@smartcontroller.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I followed Ben's tutorial.</div><div><pre style="font-family:monospace,serif;font-size:16px;padding:1em;direction:ltr;word-wrap:normal;border:1px solid rgb(204,204,204);border-radius:5px;overflow:auto;color:rgb(131,148,150);line-height:16px;background:rgb(224,224,224)"> <span style="color:rgb(88,110,117);font-style:italic">% ../source-builder/sb-set-builder --log=beagle.txt --prefix=$HOME/development/rtems/4.11 devel/beagle.bset</span></pre></div><div>and</div><div><br></div><div><pre style="font-family:monospace,serif;font-size:16px;padding:1em;direction:ltr;word-wrap:normal;border:1px solid rgb(204,204,204);border-radius:5px;overflow:auto;color:rgb(131,148,150);line-height:16px;background:rgb(224,224,224)"> <span style="color:rgb(88,110,117);font-style:italic">% mkdir b-beagle ; cd b-beagle</span>
<span style="color:rgb(88,110,117);font-style:italic">% CONSOLE_POLLED=1 ../rtems-src/configure --target=arm-rtems4.11 --enable-rtemsbsp="beagleboneblack beagleboardxm" --enable-tests</span>
<span style="color:rgb(88,110,117);font-style:italic">% make</span></pre><pre style="font-family:monospace,serif;font-size:16px;padding:1em;direction:ltr;word-wrap:normal;border:1px solid rgb(204,204,204);border-radius:5px;overflow:auto;color:rgb(131,148,150);line-height:16px;background:rgb(224,224,224)"><span style="color:rgb(88,110,117);font-style:italic"><br></span></pre></div>I have done a grep for that file and it comes up like this<div><br></div><div><div>angelo@debian:~/development$ find -name leaf.cfg</div><div>./rtems/b-beagle/arm-rtems4.11/c/beagleboardxm/make/leaf.cfg</div><div>./rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/make/leaf.cfg</div><div>./rtems/rtems-src/make/leaf.cfg</div><div>./rtems/rtems-src/c/src/make/leaf.cfg</div></div><div><br></div><div>So I decided to do a symlink</div><div><div>root@debian:/opt# ln -s /home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/ beagleboneblack/ /opt/rtems-4.11</div></div><div><br></div><div>Now when I go make, I get the error</div><div><div>make: *** No rule to make target `/init.o', needed by `/gpio.exe'. Stop.</div></div><div><br></div><div>So it seems that ARCH is not being defined somewhere that it needs to be. So making the symlink is not the solution.</div><div>Also, looking at RTEMS doc, <a href="https://docs.rtems.org/doc-current/share/rtems/pdf/started.pdf" target="_blank">https://docs.rtems.org/doc-current/share/rtems/pdf/started.pdf</a>, it said it was supposed to install to /opt/rtems-4.11 by default, which it did not.</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 2, 2015 at 6:58 AM, Diego Sanz <span dir="ltr"><<a href="mailto:dshernan80@gmail.com" target="_blank">dshernan80@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>One question, this Makefile has been made by you?, or you has used another one from an example of building applications?<br><br></div>What is strange from my point of view is that:<br><br></div>your "RTEMS_MAKEFILE_PATH: /home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/make/" includes the last make folder try with:<br>RTEMS_MAKEFILE_PATH: /home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack, I suppose that that this is where you have installed your RTEMS built for architecture arm-rtems4.11, and board beagleboneblack...<br><br></div>another problem is that you have as a target not found /opt/rtems-4.11/make/leaf.cfg, and then is because you have RTEMS installed in other place, it looks you have installed here:<br>/home/angelo/development/rtems/b-beagle/arm-rtems4.11.<br><br></div><div>Then <br></div><div><div><div><div><div><br>RTEMS_MAKEFILE_PATH should be the place where RTEMS (after be compiled) is installed for your architecture arm and beagleboneblack<br><br></div><div>Hope this give you some ide, but if you continue with the problem, take as example the example-v2 from the RTEMs repo, to make you a better idea<br><br><br></div><div><br><br><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2015-06-30 6:45 GMT+02:00 Angelo Fraietta <span dir="ltr"><<a href="mailto:newsgroups@smartcontroller.com.au" target="_blank">newsgroups@smartcontroller.com.au</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">To add a bit more light on what is happening, I added some echo in make to find out what the variables are being evaluated as. This is what I get<div><br></div><div><br></div><div><div>RTEMS_ROOT: /opt/rtems-4.11</div><div>RTEMS_CUSTOM: /opt/rtems-4.11/make/custom/beagleboneblack.cfg</div><div>RTEMS_MAKEFILE_PATH: /home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/make/</div></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 29, 2015 at 2:18 PM, Angelo Fraietta <span dir="ltr"><<a href="mailto:newsgroups@smartcontroller.com.au" target="_blank">newsgroups@smartcontroller.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Greetings</div><div><br></div><div>I have been able to successfully able to build and run RTEMS samples using Ben's tutorial at</div><div><a href="http://www.shrike-systems.com/beagleboard-xm-beaglebone-black-and-everything-else-rtems-on-the-beagles.html" style="font-size:12.8000001907349px" target="_blank">http://www.shrike-systems.com/beagleboard-xm-beaglebone-black-and-everything-else-rtems-on-the-beagles.html</a><span style="font-size:12.8000001907349px"> </span><br></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">with a few mods and am able to run using tftp</span></div><div><br></div><div>However, I am having difficulty using my own make file to build an app.</div><div><br></div><div>I have added <span style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%">RTEMS_MAKEFILE_PATH to my environment and added</span></div><div><p class="MsoNormal"><span lang="EN-US">PATH=$PATH:/home/angelo/development/rtems/4.11/bin</span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p><p class="MsoNormal"><span lang="EN-US">When I run my makefile, I get an error </span></p><p class="MsoNormal">Makefile:41: /opt/rtems-4.11/make/leaf.cfg: No such file or directory</p><p class="MsoNormal"><span lang="EN-US"></span></p><p class="MsoNormal">make: *** No rule to make target `/opt/rtems-4.11/make/leaf.cfg'. Stop.</p></div><div>It looks to me like RTEMS_ROOT is not being set properly (I could be wrong)</div><div><br></div><div>Find below makefile contents</div><div><br></div><div>EXEC=gpio.exe</div><div># C source names, if any, go here -- minus the .c</div><div>C_PIECES= init</div><div>C_FILES=$(C_PIECES:%=%.c)</div><div>C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)</div><div><br></div><div># C++ source names, if any, go here -- minus the .cc</div><div>CC_PIECES=</div><div><br></div><div>CC_FILES=$(CC_PIECES:%=%.cpp)</div><div>CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)</div><div><br></div><div>H_FILES= </div><div><br></div><div># Assembly source names, if any, go here -- minus the .S</div><div>S_PIECES=</div><div>S_FILES=$(S_PIECES:%=%.S)</div><div>S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)</div><div><br></div><div>SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)</div><div>OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)</div><div><br></div><div>PGMS=${ARCH}/$(EXEC) #${ARCH}/xxx-another-one</div><div><br></div><div># List of RTEMS managers to be included in the application goes here.</div><div># Use:</div><div># MANAGERS=all</div><div># to include all RTEMS managers in the application.</div><div>MANAGERS=io event message rate_monotonic semaphore timer</div><div><br></div><div>include $(RTEMS_MAKEFILE_PATH)/Makefile.inc</div><div><br></div><div>include $(RTEMS_CUSTOM)</div><div>include $(RTEMS_ROOT)/make/leaf.cfg</div><div><br></div><div>#</div><div># (OPTIONAL) Add local stuff here using +=</div><div>#</div><div><br></div><div>DEFINES += </div><div>CPPFLAGS += </div><div><br></div><div>XCPPFLAGS +=</div><div>CFLAGS +=</div><div><br></div><div>#</div><div># CFLAGS_DEBUG_V are used when the `make debug' target is built.</div><div># To link your application with the non-optimized RTEMS routines,</div><div># uncomment the following line:</div><div># CFLAGS_DEBUG_V += -qrtems_debug</div><div>#</div><div><br></div><div>LD_PATHS += #xxx-your-EXTRA-library-paths-go-here, if any</div><div><br></div><div>LD_LIBS += </div><div># Add the following code when attempting to strip down in size</div><div>#LDFLAGS += -Wl,'-gc-sections'</div><div><br></div><div>#</div><div># Add your list of files to delete here. The config files</div><div># already know how to delete some stuff, so you may want</div><div># to just run 'make clean' first to see what gets missed.</div><div># 'make clobber' already includes 'make clean'</div><div>#</div><div><br></div><div>CLEAN_ADDITIONS += </div><div>CLOBBER_ADDITIONS +=</div><div><br></div><div>all:<span style="white-space:pre-wrap"> </span>${ARCH} $(SRCS) $(PGMS)</div><div><br></div><div>${ARCH}/$(EXEC): ${OBJS} ${LINK_FILES}</div><div><span style="white-space:pre-wrap"> </span>$(make-cxx-exe)</div><div><br></div><div># Install the program(s), appending _g or _p as appropriate.</div><div># for include files, just use $(INSTALL_CHANGE)</div><div>install: all</div><div><span style="white-space:pre-wrap"> </span>$(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin</div><div><br></div><div><br></div><div>Any ideas?</div><div><br></div><div>Thanks</div></div>
</blockquote></div><br></div>
</div></div><br></div></div><span>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br></span></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>