build my own rtems application
Boughedada Kamal
kamal.boughedada at obspm.fr
Tue Oct 11 16:13:44 UTC 2016
Hi,
after successful RTEMS 4.11 installation, I would like to develop my own rtems application thanks to Eclipse IDE.
I follow this procedure :
Step 1 : New Makefile project
Step 2:
copy rtems/make/Templates/Makefile.leaf
Add the files init.c and sytem.h from testsuites/samples
Step 3: Modify the Makefile
Change: C_PIECES=xxxd xxxe xxxf
To: C_PIECES=init
Change: CC_PIECES=xxxa xxxb xxxc
To: CC_PIECES=
Change: H_FILES=
To: H_FILES=system.h
Change: PGMS=${ARCH}/xxx-your-program-here ${ARCH}/xxx-another-one
to: PGMS=${ARCH}/rtems-app.exe
Change:
LD_PATHS += xxx-your-EXTRA-library-paths-go-here, if any
LD_LIBS += xxx-your-libraries-go-here eg: -lvx
To:
LD_PATHS +=
LD_LIBS +=
Change: CLEAN_ADDITIONS += xxx-your-debris-goes-here
to: CLEAN_ADDITIONS +=
Change: ${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES}
To: ${ARCH}/rtems-app.exe: ${OBJS} ${LINK_FILES}
Result : with 2 files , the compilation and linkage are ok.
But I want to create different directory and files and modify by hand C_PIECES=init in the makefile is complicated.
Can you give me a tip please ?
Thanks in advance
K. Boughedada
More information about the devel
mailing list