diff options
Diffstat (limited to 'bsp/meta-ti/recipes-ti/devtools/ti-xdctools')
-rw-r--r-- | bsp/meta-ti/recipes-ti/devtools/ti-xdctools/arm-linker-hack.diff | 19 | ||||
-rw-r--r-- | bsp/meta-ti/recipes-ti/devtools/ti-xdctools/fix-hardcoded-paths.diff | 21 |
2 files changed, 40 insertions, 0 deletions
diff --git a/bsp/meta-ti/recipes-ti/devtools/ti-xdctools/arm-linker-hack.diff b/bsp/meta-ti/recipes-ti/devtools/ti-xdctools/arm-linker-hack.diff new file mode 100644 index 00000000..26debf8f --- /dev/null +++ b/bsp/meta-ti/recipes-ti/devtools/ti-xdctools/arm-linker-hack.diff @@ -0,0 +1,19 @@ +--- a/packages/gnu/targets/arm/linkcmd.xdt 2010-12-30 19:33:53.000000000 +0100 ++++ b/packages/gnu/targets/arm/linkcmd.xdt 2010-12-30 19:42:55.000000000 +0100 +@@ -40,12 +40,13 @@ + + %if ("BINVERS" in prog.build.target) { + % var _utils = xdc.loadCapsule("gnu/targets/linkUtils.xs"); ++% if (prog.build.target.GCCVERS < "4.3.3") { + SECTIONS { + `_utils.genSections(prog)` + } +- +-% if (!prog.build.target.noStdLinkScript +-% && prog.build.target.BINVERS >= "2.19") { ++% } ++% if (prog.build.target.noStdLinkScript ++% && prog.build.target.BINVERS >= "2.19") { + INSERT BEFORE .gnu.attributes + % } + diff --git a/bsp/meta-ti/recipes-ti/devtools/ti-xdctools/fix-hardcoded-paths.diff b/bsp/meta-ti/recipes-ti/devtools/ti-xdctools/fix-hardcoded-paths.diff new file mode 100644 index 00000000..36142c47 --- /dev/null +++ b/bsp/meta-ti/recipes-ti/devtools/ti-xdctools/fix-hardcoded-paths.diff @@ -0,0 +1,21 @@ +diff -ur a/packages/gnu/targets/ITarget.xs b/packages/gnu/targets/ITarget.xs +--- a/packages/gnu/targets/ITarget.xs 2011-08-06 13:24:44.000000000 +0200 ++++ b/packages/gnu/targets/ITarget.xs 2011-08-06 13:23:37.000000000 +0200 +@@ -251,7 +251,7 @@ + + function askLd(target) + { +- var ldCmd = target.rootDir + "/" + target.GCCTARG + "/bin/ld"; ++ var ldCmd = target.rootDir + "/" + target.GCCTARG + "-ld"; + /* If the ld executable cannot be found, and the prefix is not used, + * it's probably a misspelled directory path. + */ +@@ -486,7 +486,7 @@ + tool2cmd["link"] = cmd; + + /* define the ar command template */ +- cmd = prefix + target.ar.cmd ++ cmd = prefix + target.GCCTARG + "-ar" + + " $(AROPTS_P) " + target.ar.opts + + " $@ $(AROPTS_S) $(aropts) $(files)"; + tool2cmd["ar"] = cmd; |