<div dir="ltr">I wonder if the error is in<div><br></div><div>development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/make/Makefile.inc<br></div><div><br></div><div>It has</div><div><div><br></div><div>RTEMS_BSP = beagleboneblack</div><div><br></div><div>prefix = /opt/rtems-4.11</div><div>exec_prefix = /opt/rtems-4.11/arm-rtems4.11</div></div><div><br></div><div>and later</div><div><br></div><div><div>RTEMS_ROOT = $(prefix)</div><div>PROJECT_ROOT = $(RTEMS_ROOT)</div><div>RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 7:04 AM, Ben Gras <span dir="ltr"><<a href="mailto:beng@shrike-systems.com" target="_blank">beng@shrike-systems.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Very generous of you. Let me check it out, will take a day or so.<br>
<br>
<br>
On Tue, Jun 30, 2015 at 4:55 AM, Angelo Fraietta<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:newsgroups@smartcontroller.com.au">newsgroups@smartcontroller.com.au</a>> wrote:<br>
> I put in what I have worked out. You can review and format as you like.<br>
><br>
> On Tue, Jun 30, 2015 at 9:06 AM, Ben Gras <<a href="mailto:beng@shrike-systems.com">beng@shrike-systems.com</a>> wrote:<br>
>><br>
>> Yes please!<br>
>><br>
>> On Tue, Jun 30, 2015 at 1:01 AM, Angelo Fraietta<br>
>> <<a href="mailto:newsgroups@smartcontroller.com.au">newsgroups@smartcontroller.com.au</a>> wrote:<br>
>> > Yes - If you want, I can copy your instructions and modify what I think<br>
>> > need<br>
>> > to be done to make it a bit easier.<br>
>> ><br>
>> ><br>
>> > On Mon, Jun 29, 2015 at 9:06 PM, Ben Gras <<a href="mailto:beng@shrike-systems.com">beng@shrike-systems.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Hi Angelo,<br>
>> >><br>
>> >> Sorry to see you're having such a rough time :-)<br>
>> >><br>
>> >> I'd like to help with the Makefile question. Before I do, do you have<br>
>> >> anything you think I should add or change to my tutorial so that it<br>
>> >> will be easier for future visitors?<br>
>> >><br>
>> >> Cheers,<br>
>> >> Ben<br>
>> >><br>
>> >><br>
>> >><br>
>> >> On Mon, Jun 29, 2015 at 6:18 AM, Angelo Fraietta<br>
>> >> <<a href="mailto:newsgroups@smartcontroller.com.au">newsgroups@smartcontroller.com.au</a>> wrote:<br>
>> >> > Greetings<br>
>> >> ><br>
>> >> > I have been able to successfully able to build and run RTEMS samples<br>
>> >> > using<br>
>> >> > Ben's tutorial at<br>
>> >> ><br>
>> >> ><br>
>> >> > <a href="http://www.shrike-systems.com/beagleboard-xm-beaglebone-black-and-everything-else-rtems-on-the-beagles.html" rel="noreferrer" target="_blank">http://www.shrike-systems.com/beagleboard-xm-beaglebone-black-and-everything-else-rtems-on-the-beagles.html</a><br>
>> >> ><br>
>> >> > with a few mods and am able to run using tftp<br>
>> >> ><br>
>> >> > However, I am having difficulty using my own make file to build an<br>
>> >> > app.<br>
>> >> ><br>
>> >> > I have added RTEMS_MAKEFILE_PATH to my environment and added<br>
>> >> ><br>
>> >> > PATH=$PATH:/home/angelo/development/rtems/4.11/bin<br>
>> >> ><br>
>> >> ><br>
>> >> > When I run my makefile, I get an error<br>
>> >> ><br>
>> >> > Makefile:41: /opt/rtems-4.11/make/leaf.cfg: No such file or directory<br>
>> >> ><br>
>> >> > make: *** No rule to make target `/opt/rtems-4.11/make/leaf.cfg'.<br>
>> >> > Stop.<br>
>> >> ><br>
>> >> > It looks to me like RTEMS_ROOT is not being set properly (I could be<br>
>> >> > wrong)<br>
>> >> ><br>
>> >> > Find below makefile contents<br>
>> >> ><br>
>> >> > EXEC=gpio.exe<br>
>> >> > # C source names, if any, go here -- minus the .c<br>
>> >> > C_PIECES= init<br>
>> >> > C_FILES=$(C_PIECES:%=%.c)<br>
>> >> > C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)<br>
>> >> ><br>
>> >> > # C++ source names, if any, go here -- minus the .cc<br>
>> >> > CC_PIECES=<br>
>> >> ><br>
>> >> > CC_FILES=$(CC_PIECES:%=%.cpp)<br>
>> >> > CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)<br>
>> >> ><br>
>> >> > H_FILES=<br>
>> >> ><br>
>> >> > # Assembly source names, if any, go here -- minus the .S<br>
>> >> > S_PIECES=<br>
>> >> > S_FILES=$(S_PIECES:%=%.S)<br>
>> >> > S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)<br>
>> >> ><br>
>> >> > SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)<br>
>> >> > OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)<br>
>> >> ><br>
>> >> > PGMS=${ARCH}/$(EXEC) #${ARCH}/xxx-another-one<br>
>> >> ><br>
>> >> > # List of RTEMS managers to be included in the application goes here.<br>
>> >> > # Use:<br>
>> >> > #     MANAGERS=all<br>
>> >> > # to include all RTEMS managers in the application.<br>
>> >> > MANAGERS=io event message rate_monotonic semaphore timer<br>
>> >> ><br>
>> >> > include $(RTEMS_MAKEFILE_PATH)/Makefile.inc<br>
>> >> ><br>
>> >> > include $(RTEMS_CUSTOM)<br>
>> >> > include $(RTEMS_ROOT)/make/leaf.cfg<br>
>> >> ><br>
>> >> > #<br>
>> >> > # (OPTIONAL) Add local stuff here using +=<br>
>> >> > #<br>
>> >> ><br>
>> >> > DEFINES  +=<br>
>> >> > CPPFLAGS +=<br>
>> >> ><br>
>> >> > XCPPFLAGS +=<br>
>> >> > CFLAGS   +=<br>
>> >> ><br>
>> >> > #<br>
>> >> > # CFLAGS_DEBUG_V are used when the `make debug' target is built.<br>
>> >> > # To link your application with the non-optimized RTEMS routines,<br>
>> >> > # uncomment the following line:<br>
>> >> > # CFLAGS_DEBUG_V += -qrtems_debug<br>
>> >> > #<br>
>> >> ><br>
>> >> > LD_PATHS  +=  #xxx-your-EXTRA-library-paths-go-here, if any<br>
>> >> ><br>
>> >> > LD_LIBS   +=<br>
>> >> > # Add the following code when attempting to strip down in size<br>
>> >> > #LDFLAGS   += -Wl,'-gc-sections'<br>
>> >> ><br>
>> >> > #<br>
>> >> > # Add your list of files to delete here.  The config files<br>
>> >> > #  already know how to delete some stuff, so you may want<br>
>> >> > #  to just run 'make clean' first to see what gets missed.<br>
>> >> > #  'make clobber' already includes 'make clean'<br>
>> >> > #<br>
>> >> ><br>
>> >> > CLEAN_ADDITIONS +=<br>
>> >> > CLOBBER_ADDITIONS +=<br>
>> >> ><br>
>> >> > all: ${ARCH} $(SRCS) $(PGMS)<br>
>> >> ><br>
>> >> > ${ARCH}/$(EXEC): ${OBJS} ${LINK_FILES}<br>
>> >> > $(make-cxx-exe)<br>
>> >> ><br>
>> >> > # Install the program(s), appending _g or _p as appropriate.<br>
>> >> > # for include files, just use $(INSTALL_CHANGE)<br>
>> >> > install:  all<br>
>> >> > $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin<br>
>> >> ><br>
>> >> ><br>
>> >> > Any ideas?<br>
>> >> ><br>
>> >> > Thanks<br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>