Skip to content

Commit

Permalink
add SharedRegion example
Browse files Browse the repository at this point in the history
  • Loading branch information
tostq committed May 6, 2016
1 parent e967ec1 commit 6913478
Show file tree
Hide file tree
Showing 125 changed files with 84,048 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 7.SharedMem/.ccsproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?ccsproject version="1.0"?>

<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.GenericC66xxDevice"/>
<deviceFamily value="C6000"/>
<deviceEndianness value="little"/>
<codegenToolVersion value="7.4.2"/>
<isElfFormat value="true"/>
<connection value=""/>
<rts value="libc.a"/>
<templateProperties value="id=com.ti.rtsc.SYSBIOS.example_9,type=rtsc,products=com.ti.rtsc.SYSBIOS,buildProfile=release,isHybrid=true,configuroOptions=--compileOptions &quot;-g --optimize_with_debug&quot;,"/>
</projectOptions>
Binary file added 7.SharedMem/.config/.productview.dat
Binary file not shown.
1 change: 1 addition & 0 deletions 7.SharedMem/.config/xconfig_SharedMemory/.buildtime
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
E:\Code\CCS\workspace_v5_2\SharedMem\.config\xconfig_SharedMemory\.buildtime
Empty file.
16 changes: 16 additions & 0 deletions 7.SharedMem/.config/xconfig_SharedMemory/.xdcenv.mak
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
_XDCBUILDCOUNT =
ifneq (,$(findstring path,$(_USEXDCENV_)))
override XDCPATH = D:/ti/bios_6_33_05_46/packages;D:/ti/ipc_1_24_03_32/packages;D:/ti/ccsv5/ccs_base;E:/Code/CCS/workspace_v5_2/SharedMem/.config
override XDCROOT = D:/ti/xdctools_3_23_03_53
override XDCBUILDCFG = ./config.bld
endif
ifneq (,$(findstring args,$(_USEXDCENV_)))
override XDCARGS =
override XDCTARGETS =
endif
#
ifeq (0,1)
PKGPATH = D:/ti/bios_6_33_05_46/packages;D:/ti/ipc_1_24_03_32/packages;D:/ti/ccsv5/ccs_base;E:/Code/CCS/workspace_v5_2/SharedMem/.config;D:/ti/xdctools_3_23_03_53/packages;..
HOSTOS = Windows
endif
1 change: 1 addition & 0 deletions 7.SharedMem/.config/xconfig_SharedMemory/compiler.opt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mv6600 --abi=eabi -I"D:/ti/bios_6_33_05_46/packages" -I"D:/ti/ipc_1_24_03_32/packages" -I"D:/ti/ccsv5/ccs_base" -I"E:/Code/CCS/workspace_v5_2/SharedMem/.config" -I"D:/ti/xdctools_3_23_03_53/packages" -I"E:/Code/CCS/workspace_v5_2/SharedMem/.config/xconfig_SharedMemory/.." -ID:/ti/C6000C~1.2/include -Dxdc_target_types__="ti/targets/elf/std.h" -Dxdc_target_name__=C66 -Dxdc_cfg__header__="E:/Code/CCS/workspace_v5_2/SharedMem/.config/xconfig_SharedMemory/package/cfg/SharedMemory_pe66.h"
7 changes: 7 additions & 0 deletions 7.SharedMem/.config/xconfig_SharedMemory/config.bld
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* THIS IS A GENERATED FILE -- DO NOT EDIT */
/* configuro was passed the target's name explicitly */
var target = xdc.module('ti.targets.elf.C66');
target.ccOpts.prefix = "-g --optimize_with_debug " + target.ccOpts.prefix;
Build.targets = [target];
/* configuro was passed the target's rootDir explicitly */
Build.targets[0].rootDir = 'D:/ti/C6000 Code Generation Tools 7.4.2';
6 changes: 6 additions & 0 deletions 7.SharedMem/.config/xconfig_SharedMemory/custom.mak
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## THIS IS A GENERATED FILE -- DO NOT EDIT
.configuro: .libraries,e66 linker.cmd \
package/cfg/SharedMemory_pe66.oe66 \

linker.cmd: package/cfg/SharedMemory_pe66.xdl
$(SED) 's"^\"\(package/cfg/SharedMemory_pe66cfg.cmd\)\"$""\"E:/Code/CCS/workspace_v5_2/SharedMem/.config/xconfig_SharedMemory/\1\""' package/cfg/SharedMemory_pe66.xdl > $@
84 changes: 84 additions & 0 deletions 7.SharedMem/.config/xconfig_SharedMemory/package.bld
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/* THIS IS A GENERATED FILE -- DO NOT EDIT */

var targ = xdc.module('ti.targets.elf.C66');
/* configuro was told the platform explicitly */
var platform = 'ti.platforms.evm6678';

/* decide whether to make an assembly or an executable */
var makeAssembly = false;


var Executable = xdc.module('xdc.bld.Executable');

var exeOpts = new Executable.Attrs({
cfgScript: 'E:/Code/CCS/workspace_v5_2/SharedMem/SharedMemory.cfg',
profile: 'release',
cfgHome: 'xconfig_SharedMemory',
});

/* if the build model supports encoded cfgArgs, use it */
if ('cfgArgsEncoded' in exeOpts) {
exeOpts.cfgArgs = 'null';
exeOpts.cfgArgsEncoded = true;
}
else {
/* otherwise, we must risk errors if cfgArgs contains embedded 's */
exeOpts.cfgArgs = 'null';
}

var exe = Pkg[makeAssembly ? 'addAssembly': 'addExecutable'](
'SharedMemory',
targ,
platform,
exeOpts
);

/*
* Generate the compiler.opt file
* Do this here instead of during the initial creation of the configuro
* package, because the contents of any config.bld script are unknown
* at that time. Config.bld can't be executed until the XDC build phase.
*/
if (makeAssembly) {
var suffix = targ.dllExt || '.p' + targ.suffix;
}
else {
var suffix = '.p' + targ.suffix;
}
var thisObj = {
cfg: 'E:/Code/CCS/workspace_v5_2/SharedMem/SharedMemory.cfg',
outputPath: 'E:/Code/CCS/workspace_v5_2/SharedMem/.config/xconfig_SharedMemory',
exeName: 'SharedMemory' + suffix,
exeIntName: 'SharedMemory' + suffix.replace('.', '_'),
targ: targ,
legacyTcf: false,
bios5Incs: false,
linkerCommandFile: 'linker.cmd',
makeAssembly: makeAssembly
};
var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/compiler.opt.xdt');
tmpl.genFile('compiler.opt', thisObj, [], false);

/*
* Generate the custom makefile.
*/
var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/' +
(makeAssembly? 'custom.mak.asm.xdt' : 'custom.mak.exe.xdt'));
tmpl.genFile('custom.mak', thisObj, [], false);
Pkg.makeEpilogue = "include custom.mak";

/*
* Generate the package script.
*/
var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/package.xs.xdt');
tmpl.genFile('package.xs', thisObj, [], false);

if (makeAssembly) {
/*
* Generate the linker options into a staging file, so that the presence or
* age of the advertised linker command file can be the makefile trigger to
* rebuild the package from the user's config script.
*/
var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/linker.cmd.asm.xdt');
tmpl.genFile('linker.cmd.cp', thisObj, [], false);
}
257 changes: 257 additions & 0 deletions 7.SharedMem/.config/xconfig_SharedMemory/package.mak
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
#
# Do not edit this file. This file is generated from
# package.bld. Any modifications to this file will be
# overwritten whenever makefiles are re-generated.
#

unexport MAKEFILE_LIST
MK_NOGENDEPS := $(filter clean,$(MAKECMDGOALS))
override PKGDIR = xconfig_SharedMemory
XDCINCS = -I. -I$(strip $(subst ;, -I,$(subst $(space),\$(space),$(XPKGPATH))))
XDCCFGDIR = package/cfg/

#
# The following dependencies ensure package.mak is rebuilt
# in the event that some included BOM script changes.
#
ifneq (clean,$(MAKECMDGOALS))
D:/ti/xdctools_3_23_03_53/include/utils.tci:
package.mak: D:/ti/xdctools_3_23_03_53/include/utils.tci
D:/ti/xdctools_3_23_03_53/packages/xdc/xdc.tci:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/xdc.tci
D:/ti/xdctools_3_23_03_53/packages/xdc/template.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/template.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/om2.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/om2.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/xmlgen.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/xmlgen.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/xmlgen2.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/xmlgen2.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/IPackage.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/IPackage.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/package.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/package.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/services/global/Clock.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/services/global/Clock.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/services/global/Trace.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/services/global/Trace.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/bld.js:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/bld.js
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/BuildEnvironment.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/BuildEnvironment.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/PackageContents.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/PackageContents.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/_gen.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/_gen.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Library.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Library.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Executable.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Executable.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Repository.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Repository.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Configuration.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Configuration.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Script.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Script.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Manifest.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Manifest.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Utils.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/Utils.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/ITarget.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/ITarget.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/ITarget2.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/ITarget2.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/ITargetFilter.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/ITargetFilter.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/bld/package.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/bld/package.xs
package.mak: config.bld
D:/ti/xdctools_3_23_03_53/packages/ti/targets/ITarget.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/ti/targets/ITarget.xs
D:/ti/xdctools_3_23_03_53/packages/ti/targets/C28_large.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/ti/targets/C28_large.xs
D:/ti/xdctools_3_23_03_53/packages/ti/targets/C28_float.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/ti/targets/C28_float.xs
D:/ti/xdctools_3_23_03_53/packages/ti/targets/package.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/ti/targets/package.xs
D:/ti/xdctools_3_23_03_53/packages/ti/targets/elf/ITarget.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/ti/targets/elf/ITarget.xs
D:/ti/xdctools_3_23_03_53/packages/ti/targets/elf/TMS470.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/ti/targets/elf/TMS470.xs
D:/ti/xdctools_3_23_03_53/packages/ti/targets/elf/package.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/ti/targets/elf/package.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/services/io/File.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/services/io/File.xs
D:/ti/xdctools_3_23_03_53/packages/xdc/services/io/package.xs:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/services/io/package.xs
package.mak: package.bld
D:/ti/xdctools_3_23_03_53/packages/xdc/tools/configuro/template/compiler.opt.xdt:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/tools/configuro/template/compiler.opt.xdt
D:/ti/xdctools_3_23_03_53/packages/xdc/tools/configuro/template/custom.mak.exe.xdt:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/tools/configuro/template/custom.mak.exe.xdt
D:/ti/xdctools_3_23_03_53/packages/xdc/tools/configuro/template/package.xs.xdt:
package.mak: D:/ti/xdctools_3_23_03_53/packages/xdc/tools/configuro/template/package.xs.xdt
endif

ti.targets.elf.C66.rootDir ?= D:/ti/C6000C~1.2
ti.targets.elf.packageBase ?= D:/ti/xdctools_3_23_03_53/packages/ti/targets/elf/
.PRECIOUS: $(XDCCFGDIR)/%.oe66
.PHONY: all,e66 .dlls,e66 .executables,e66 test,e66
all,e66: .executables,e66
.executables,e66: .libraries,e66
.executables,e66: .dlls,e66
.dlls,e66: .libraries,e66
.libraries,e66: .interfaces
@$(RM) $@
@$(TOUCH) "$@"

.help::
@$(ECHO) xdc test,e66
@$(ECHO) xdc .executables,e66
@$(ECHO) xdc .libraries,e66
@$(ECHO) xdc .dlls,e66


all: .executables
.executables: .libraries .dlls
.libraries: .interfaces

PKGCFGS := $(wildcard package.xs) package/build.cfg
.interfaces: package/package.xdc.inc package/package.defs.h package.xdc $(PKGCFGS)

-include package/package.xdc.dep
package/%.xdc.inc package/%_xconfig_SharedMemory.c package/%.defs.h: %.xdc $(PKGCFGS)
@$(MSG) generating interfaces for package xconfig_SharedMemory" (because $@ is older than $(firstword $?))" ...
$(XSRUN) -f xdc/services/intern/cmd/build.xs $(MK_IDLOPTS) -m package/package.xdc.dep -i package/package.xdc.inc package.xdc

.dlls,e66 .dlls: SharedMemory.pe66

-include package/cfg/SharedMemory_pe66.mak
-include package/cfg/SharedMemory_pe66.cfg.mak
ifeq (,$(MK_NOGENDEPS))
-include package/cfg/SharedMemory_pe66.dep
endif
SharedMemory.pe66: package/cfg/SharedMemory_pe66.xdl
@


ifeq (,$(wildcard .libraries,e66))
SharedMemory.pe66 package/cfg/SharedMemory_pe66.c: .libraries,e66
endif

package/cfg/SharedMemory_pe66.c package/cfg/SharedMemory_pe66.h package/cfg/SharedMemory_pe66.xdl: override _PROG_NAME := SharedMemory.xe66
package/cfg/SharedMemory_pe66.c: package/cfg/SharedMemory_pe66.cfg

clean:: clean,e66
-$(RM) package/cfg/SharedMemory_pe66.cfg
-$(RM) package/cfg/SharedMemory_pe66.dep
-$(RM) package/cfg/SharedMemory_pe66.c
-$(RM) package/cfg/SharedMemory_pe66.xdc.inc

clean,e66::
-$(RM) SharedMemory.pe66
.executables,e66 .executables: SharedMemory.xe66

SharedMemory.xe66: |SharedMemory.pe66

-include package/cfg/SharedMemory.xe66.mak
SharedMemory.xe66: package/cfg/SharedMemory_pe66.oe66
$(RM) $@
@$(MSG) lnke66 $@ ...
$(RM) $(XDCCFGDIR)/$@.map
$(ti.targets.elf.C66.rootDir)/bin/lnk6x -q -u _c_int00 -fs $(XDCCFGDIR)$(dir $@). -q -o $@ package/cfg/SharedMemory_pe66.oe66 package/cfg/SharedMemory_pe66.xdl --abi=eabi -c -m $(XDCCFGDIR)/$@.map -l $(ti.targets.elf.C66.rootDir)/lib/rts6600_elf.lib

SharedMemory.xe66: export C_DIR=
SharedMemory.xe66: PATH:=$(ti.targets.elf.C66.rootDir)/bin/;$(PATH)
SharedMemory.xe66: Path:=$(ti.targets.elf.C66.rootDir)/bin/;$(PATH)

SharedMemory.test test,e66 test: SharedMemory.xe66.test

SharedMemory.xe66.test:: SharedMemory.xe66
ifeq (,$(_TESTLEVEL))
@$(MAKE) -R -r --no-print-directory -f $(XDCROOT)/packages/xdc/bld/xdc.mak _TESTLEVEL=1 SharedMemory.xe66.test
else
@$(MSG) running $< ...
$(call EXEC.SharedMemory.xe66, )
endif

clean,e66::
-$(RM) .tmp,SharedMemory.xe66,0,*


clean:: clean,e66

clean,e66::
-$(RM) SharedMemory.xe66
clean::
-$(RM) package/cfg/SharedMemory_pe66.pjt
%,copy:
@$(if $<,,$(MSG) don\'t know how to build $*; exit 1)
@$(MSG) cp $< $@
$(RM) $@
$(CP) $< $@
SharedMemory_pe66.oe66,copy : package/cfg/SharedMemory_pe66.oe66
SharedMemory_pe66.se66,copy : package/cfg/SharedMemory_pe66.se66

$(XDCCFGDIR)%.c $(XDCCFGDIR)%.h $(XDCCFGDIR)%.xdl: $(XDCCFGDIR)%.cfg .interfaces $(XDCROOT)/packages/xdc/cfg/Main.xs
@$(MSG) "configuring $(_PROG_NAME) from $< ..."
$(CONFIG) $(_PROG_XSOPTS) xdc.cfg $(_PROG_NAME) $(XDCCFGDIR)$*.cfg $(XDCCFGDIR)$*

.PHONY: release,xconfig_SharedMemory
xconfig_SharedMemory.tar: package/package.bld.xml
xconfig_SharedMemory.tar: package/package.ext.xml
xconfig_SharedMemory.tar: package/package.rel.dot
xconfig_SharedMemory.tar: package/build.cfg
xconfig_SharedMemory.tar: package/package.xdc.inc
ifeq (,$(MK_NOGENDEPS))
-include package/rel/xconfig_SharedMemory.tar.dep
endif
package/rel/xconfig_SharedMemory/xconfig_SharedMemory/package/package.rel.xml:

xconfig_SharedMemory.tar: package/rel/xconfig_SharedMemory.xdc.inc package/rel/xconfig_SharedMemory/xconfig_SharedMemory/package/package.rel.xml
@$(MSG) making release file $@ "(because of $(firstword $?))" ...
-$(RM) $@
$(call MKRELTAR,package/rel/xconfig_SharedMemory.xdc.inc,package/rel/xconfig_SharedMemory.tar.dep)


release release,xconfig_SharedMemory: all xconfig_SharedMemory.tar
clean:: .clean
-$(RM) xconfig_SharedMemory.tar
-$(RM) package/rel/xconfig_SharedMemory.xdc.inc
-$(RM) package/rel/xconfig_SharedMemory.tar.dep

clean:: .clean
-$(RM) .libraries .libraries,*
clean::
-$(RM) .dlls .dlls,*
#
# The following clean rule removes user specified
# generated files or directories.
#

ifneq (clean,$(MAKECMDGOALS))
ifeq (,$(wildcard package))
$(shell $(MKDIR) package)
endif
ifeq (,$(wildcard package/cfg))
$(shell $(MKDIR) package/cfg)
endif
ifeq (,$(wildcard package/lib))
$(shell $(MKDIR) package/lib)
endif
ifeq (,$(wildcard package/rel))
$(shell $(MKDIR) package/rel)
endif
ifeq (,$(wildcard package/internal))
$(shell $(MKDIR) package/internal)
endif
ifeq (,$(wildcard package/external))
$(shell $(MKDIR) package/external)
endif
endif
clean::
-$(RMDIR) package

include custom.mak
clean::
-$(RM) package/xconfig_SharedMemory.pjt
Loading

0 comments on commit 6913478

Please sign in to comment.