<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" target="_blank" style="font-size:12.8000001907349px">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 class="" style="white-space:pre">    </span>${ARCH} $(SRCS) $(PGMS)</div><div><br></div><div>${ARCH}/$(EXEC): ${OBJS} ${LINK_FILES}</div><div><span class="" style="white-space:pre">      </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 class="" style="white-space:pre">     </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>