Changeset f124b04 in rtems-eclipse-plug-in


Ignore:
Timestamp:
11/24/08 03:01:03 (15 years ago)
Author:
Daron Chabot <daron.chabot@…>
Branches:
master
Children:
8d045c3
Parents:
235b60c
Message:

Clean up of plugin.xml and addition of simpler, "Hello World" template.

Removed shared-lib option from c/c++ linker tools: RTEMS doesn't support shared libs.

Removed -D_REENTRANT flag. I've no idea where that came from: it's not in RTEMS or newlib.

Added more stringent test for empty RTEMS_BSP_DEFINED_SYMBOLS environment variable.
NOTE: none of the defs (provided by Robert) for this variable are necessary.

Location:
org.rtems.cdt.toolchain
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • org.rtems.cdt.toolchain/plugin.xml

    r235b60c rf124b04  
    7171            name="RTEMS Toolchain"
    7272            archList="all"
    73             osList="win32"
     73            osList="all"
    7474            configurationEnvironmentSupplier="org.rtems.cdt.toolchain.RtemsEnvironmentVariableSupplier"
    7575            isToolChainSupported="org.rtems.cdt.toolchain.IsRtemsToolChainSupported"
     
    7878           
    7979          <targetPlatform
    80               id="cdt.managedbuild.target.gnu.platform.rtems.base"
    81               name="Target Platform RTEMS"
    82               binaryParser="org.eclipse.cdt.core.PE"                                 
    83               osList="win32"                     
    84               archList="all">
     80                archList="all"
     81                binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.PE"
     82                id="cdt.managedbuild.target.gnu.platform.rtems.base"
     83                name="Target Platform RTEMS"
     84                osList="other">
    8585          </targetPlatform>
    8686         
     
    145145              </option>
    146146              <option
    147                   defaultValue="-qrtems -D_REENTRANT -c -fmessage-length=0"
     147                  defaultValue="-qrtems -c -fmessage-length=0"
    148148                  id="rtems.gnu.c.compiler.option.misc.other"
    149149                  superClass="gnu.c.compiler.option.misc.other">
     
    191191              </option>
    192192              <option
    193                   defaultValue="-qrtems -D_REENTRANT -c -fmessage-length=0"
     193                  defaultValue="-qrtems -c -fmessage-length=0"
    194194                  id="rtems.gnu.cpp.compiler.option.other.other"
    195195                  superClass="gnu.cpp.compiler.option.other.other">
     
    380380            </option>
    381381            <option
    382                    defaultValue="-qrtems -D_REENTRANT"
     382                   defaultValue="-qrtems"
    383383                   id="rtems.gnu.c.link.option.ldflags"
    384384                   superClass="gnu.c.link.option.ldflags">
    385385            </option>
    386             <option
    387                    defaultValue="true"
    388                    name="%RTEMS.C.Linker.Shared.Libgcc"
    389                    category="gnu.c.link.category.shared"
    390                    command="-shared-libgcc"
    391                    id="rtems.gnu.c.link.option.shared.libgcc"
    392                    valueType="boolean">
    393             </option>
    394             <outputType
    395                id="cdt.managedbuild.tool.gnu.c.linker.rtems.so.output.base"
    396                superClass="cdt.managedbuild.tool.gnu.c.linker.output.so"
    397                outputs="dll">
    398             </outputType>
    399386          </tool>
    400387         
     
    579566            </option>
    580567            <option
    581                defaultValue="-qrtems -D_REENTRANT"
    582                id="rtems.gnu.cpp.link.option.other.flags"
    583                superClass="gnu.cpp.link.option.flags">
    584             </option>
    585             <option
    586                defaultValue="true"
    587                name="%RTEMS.CPP.Linker.Shared.Libgcc"
    588                category="gnu.cpp.link.category.shared"
    589                command="-shared-libgcc"
    590                id="rtems.gnu.cpp.link.option.shared.libgcc"
    591                valueType="boolean">
    592              </option>
     568                  defaultValue="-qrtems"
     569                  id="rtems.gnu.cpp.link.option.ldflags"
     570                  superClass="gnu.c.link.option.ldflags">
     571            </option>
    593572           
    594             <outputType
    595                id="cdt.managedbuild.tool.gnu.cpp.linker.rtems.so.output.base"
    596                superClass="cdt.managedbuild.tool.gnu.cpp.linker.output.so"
    597                outputs="dll">
    598             </outputType>
    599573          </tool>                 
    600574
     
    745719            projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
    746720      </template>
     721      <template
     722            filterPattern=".*"
     723            id="org.rtems.cdt.toolchain.templates.hello"
     724            location="$nl$/templates/hello/template.xml"
     725            projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
     726      </template>
    747727   </extension>
    748728   
     
    755735         </toolChain>
    756736      </template>
     737      <template
     738            id="org.rtems.cdt.toolchain.templates.hello">
     739         <toolChain
     740               id="cdt.managedbuild.toolchain.gnu.rtems.base">
     741         </toolChain>
     742      </template>
    757743   </extension>
    758744
  • org.rtems.cdt.toolchain/src/org/rtems/cdt/toolchain/RtemsScannerInfoCollector.java

    r235b60c rf124b04  
    7373    String bspSymbols = System.getenv(ENV_RTEMS_BSP_DEFINED_SYMBOLS);
    7474    // e.g., "STDC_HEADERS,HAVE_SYS_TYPES_H,HAVE_SYS_STAT_H,HAVE_STDLIB_H..."
    75     if (bspSymbols != null) {
     75    //NOTE: it's insufficient to test for a non-null string, thus the test for length>0
     76    if (bspSymbols != null && bspSymbols.length() > 0) {
    7677      String[] macro = bspSymbols.split(",");
    7778      for (int i=0; i<macro.length; i++) {
Note: See TracChangeset for help on using the changeset viewer.