Hi,
I'm starting to walk through lessons and examples for the RTSC Primer.
But the first example doesn't work on my Windows host.
Citation in
http://rtsc.eclipse.org/docs-tip/RTSC_Module_Primer/Lesson_0:
"Windows-hosted developers should surround «xdcroot» or «c6xtools» with
double-quotes "..." if these directory paths contain any spaces in their
names."
I did this and lesson 1 doesn't work. The output is:
"C:/Programme/Texas Instruments/xdctools_3_10_03"/xs xdc.tools.configuro
-c "C:/Programme/Texas Instruments/C6000 Code Generation Tools 6.1.10"
-t ti.targets.C64P -p ti.platforms.sim64Pxx -o cfgsite prog.cfg
Der Befehl ""C:/Programme/Texas Instruments/xdctools_3_10_03"" ist
entweder falsch geschrieben oder
konnte nicht gefunden werden.
gmake: *** [cfgsite/compiler.opt] Error 1
It look like the double-quotes are not in the right place. I did other
modifications in "common.mak": surround macros+extenstions with
double-quotes. This works.
Question: what will be best practice for solving the problem? And can
this configurations used on Linux hosts too?
Regards,
Andi
--- common.mak ---
## -------- common makefile -------- ##
## -------- host-specific paths -------- ##
## MODIFY THESE PATHS PER YOUR
INSTALLATION
## WINDOWS HOST -- SURROUND
THESE PATHS WITH "" "" IF THEY CONTAIN SPACES XDCROOT =
C:/Programme/Texas Instruments/xdctools_3_10_03
C6XTOOLS = C:/Programme/Texas Instruments/C6000 Code Generation Tools
6.1.10
## -------- remove command -------- ##
## LINUX HOSTS -- REPLACE
$(XDCROOT)/bin/rm WITH rm
RMCMD = $(XDCROOT)/bin/rm
## --------build tools -------- ##
CONFIGURO = "$(XDCROOT)/xs" xdc.tools.configuro
LOADER = "$(XDCROOT)/xs" xdc.tools.loader
CC = "$(C6XTOOLS)/bin/cl6x" -q
## -------- build parameters -------- ##
CONFIG = cfgsite
TARGET = ti.targets.C64P
PLATFORM = ti.platforms.sim64Pxx
PROGNAME = prog
## -------- all-rule -------- ##
all : $(PROGNAME).out
## -------- config-rule -------- ##
$(CONFIG)/linker.cmd $(CONFIG)/compiler.opt : $(PROGNAME).cfg
$(CONFIGURO) -c "$(C6XTOOLS)" -t $(TARGET) -p $(PLATFORM) -o
$(CONFIG) $(PROGNAME).cfg
## -------- compile-rule -------- ##
$(PROGNAME).obj : $(PROGNAME).c $(CONFIG)/compiler.opt
$(CC) -@$(CONFIG)/compiler.opt -c $(PROGNAME).c
## -------- link-rule -------- ##
$(PROGNAME).out : $(PROGNAME).obj $(CONFIG)/linker.cmd
$(CC) -z -c $^ -o $(PROGNAME).out -l "$(C6XTOOLS)/lib/rts64plus.lib"
## -------- test-rule -------- ##
test : $(PROGNAME).out
$(LOADER) $(PROGNAME).out
## -------- clean-rule -------- ##
clean :
$(XDCROOT)/bin/rm -rf $(CONFIG) *.obj *.out