Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » How to use @opts-file with xs command
How to use @opts-file with xs command [message #1316] Sun, 22 February 2009 19:41 Go to next message
Ramsey Harris is currently offline Ramsey Harris
Messages: 22
Registered: July 2009
Junior Member
Champs,

I am using the @opts-file option with the xdc command and it seems to be working. When I attempt to use the same @opts-file with the xs command I get a package not found error. Should I be able to use the same @opts-file for both commands?

I'm using xdctools 3.15.00.26.

xdc.opts

XDCPATH = ^/../imports;/db/toolsrc/library/tools/packages;/home/xlibra ry/trees/a
valaprod/avalaprod-d21/product/bios_6_20_00_21/packages;/hom e/xlibrary/trees/ipc
/ipc-b22/product/ipc_1_00_00_22/packages;^/ti/sdo/fc/utils/b ridgeconfig;/db/tool
src/library/tools/vendors/ti/edma3_lld/edma3_lld_1_06_00_01/ packages

(all on one line)

xdc @opts-file .interfaces

This seems to work.

xs @opts-file xdc.tools.path --help

This generates the following error:

js: " /db/rtree/install/trees/products/xdcprod-k26/product/Linux/x dctools_3_15_00
_26/packages/xdc/xdc.tci", line 316: xdc.services.global.XDCException: xdc.PACKA
GE_NOT_FOUND: can't locate the package 'XDCPATH = ^/../imports;/db/toolsrc/libra
ry/tools/packages;/home/xlibrary/trees/avalaprod/avalaprod-d 21/product/bios_6_20
_00_21/packages;/home/xlibrary/trees/ipc/ipc-b22/product/ipc _1_00_00_22/packages
;^/ti/sdo/fc/utils/bridgeconfig;/db/toolsrc/library/tools/ve ndors/ti/edma3_lld/e
dma3_lld_1_06_00_01/packages' along the path: '/db/toolsrc/library/tools/vendors
/xdc/xdctools_3_15_00_26/Linux/packages;/db/atree/rvh/fc-g29 x/src/ti/sdo/rcm/exa
mples/basic/./../../../../..;'. Ensure that the package path is set correctly.

Thank you
~ Ramsey
Re: How to use @opts-file with xs command [message #1455 is a reply to message #1316] Mon, 23 February 2009 15:31 Go to previous messageGo to next message
Dave Russo is currently offline Dave Russo
Messages: 172
Registered: July 2009
Senior Member
Ramsey Harris wrote:
> Champs,
>
> I am using the @opts-file option with the xdc command and it seems to be
> working. When I attempt to use the same @opts-file with the xs command I
> get a package not found error. Should I be able to use the same
> @opts-file for both commands?
>
> I'm using xdctools 3.15.00.26.
>
> xdc.opts
>
> XDCPATH =
> ^/../imports;/db/toolsrc/library/tools/packages;/home/xlibra ry/trees/a
> valaprod/avalaprod-d21/product/bios_6_20_00_21/packages;/hom e/xlibrary/trees/ipc
>
> /ipc-b22/product/ipc_1_00_00_22/packages;^/ti/sdo/fc/utils/b ridgeconfig;/db/tool
>
> src/library/tools/vendors/ti/edma3_lld/edma3_lld_1_06_00_01/ packages
>
> (all on one line)
>
> xdc @opts-file .interfaces
>
> This seems to work.
>
> xs @opts-file xdc.tools.path --help
>
> This generates the following error:
>
> js:
> " /db/rtree/install/trees/products/xdcprod-k26/product/Linux/x dctools_3_15_00
>
> _26/packages/xdc/xdc.tci", line 316: xdc.services.global.XDCException:
> xdc.PACKA
> GE_NOT_FOUND: can't locate the package 'XDCPATH =
> ^/../imports;/db/toolsrc/libra
> ry/tools/packages;/home/xlibrary/trees/avalaprod/avalaprod-d 21/product/bios_6_20
>
> _00_21/packages;/home/xlibrary/trees/ipc/ipc-b22/product/ipc _1_00_00_22/packages
>
> ;^/ti/sdo/fc/utils/bridgeconfig;/db/toolsrc/library/tools/ve ndors/ti/edma3_lld/e
>
> dma3_lld_1_06_00_01/packages' along the path:
> '/db/toolsrc/library/tools/vendors
> /xdc/xdctools_3_15_00_26/Linux/packages;/db/atree/rvh/fc-g29 x/src/ti/sdo/rcm/exa
>
> mples/basic/./../../../../..;'. Ensure that the package path is set
> correctly.
>
> Thank you
> ~ Ramsey
You can use the same opts file _provided_ every option in the opts file
is valid for both commands.

In the case of "XDCPATH=", unfortunately, only xdc understands this form
of the option; this form works because xdc allows all options allowed by
GNU make but xs is unrelated to GNU make. However, --xdcpath can be
used with both xdc and xs to set the package path.
Re: How to use @opts-file with xs command [message #1507 is a reply to message #1455] Mon, 23 February 2009 21:33 Go to previous message
Ramsey Harris is currently offline Ramsey Harris
Messages: 22
Registered: July 2009
Junior Member
dave russo wrote:
> Ramsey Harris wrote:
>> Champs,
>>
>> I am using the @opts-file option with the xdc command and it seems to
>> be working. When I attempt to use the same @opts-file with the xs
>> command I get a package not found error. Should I be able to use the
>> same @opts-file for both commands?
>>
>> I'm using xdctools 3.15.00.26.
>>
>> xdc.opts
>>
>> XDCPATH =
>> ^/../imports;/db/toolsrc/library/tools/packages;/home/xlibra ry/trees/a
>> valaprod/avalaprod-d21/product/bios_6_20_00_21/packages;/hom e/xlibrary/trees/ipc
>>
>> /ipc-b22/product/ipc_1_00_00_22/packages;^/ti/sdo/fc/utils/b ridgeconfig;/db/tool
>>
>> src/library/tools/vendors/ti/edma3_lld/edma3_lld_1_06_00_01/ packages
>>
>> (all on one line)
>>
>> xdc @opts-file .interfaces
>>
>> This seems to work.
>>
>> xs @opts-file xdc.tools.path --help
>>
>> This generates the following error:
>>
>> js:
>> " /db/rtree/install/trees/products/xdcprod-k26/product/Linux/x dctools_3_15_00
>>
>> _26/packages/xdc/xdc.tci", line 316: xdc.services.global.XDCException:
>> xdc.PACKA
>> GE_NOT_FOUND: can't locate the package 'XDCPATH =
>> ^/../imports;/db/toolsrc/libra
>> ry/tools/packages;/home/xlibrary/trees/avalaprod/avalaprod-d 21/product/bios_6_20
>>
>> _00_21/packages;/home/xlibrary/trees/ipc/ipc-b22/product/ipc _1_00_00_22/packages
>>
>> ;^/ti/sdo/fc/utils/bridgeconfig;/db/toolsrc/library/tools/ve ndors/ti/edma3_lld/e
>>
>> dma3_lld_1_06_00_01/packages' along the path:
>> '/db/toolsrc/library/tools/vendors
>> /xdc/xdctools_3_15_00_26/Linux/packages;/db/atree/rvh/fc-g29 x/src/ti/sdo/rcm/exa
>>
>> mples/basic/./../../../../..;'. Ensure that the package path is set
>> correctly.
>>
>> Thank you
>> ~ Ramsey
> You can use the same opts file _provided_ every option in the opts file
> is valid for both commands.
>
> In the case of "XDCPATH=", unfortunately, only xdc understands this form
> of the option; this form works because xdc allows all options allowed by
> GNU make but xs is unrelated to GNU make. However, --xdcpath can be
> used with both xdc and xs to set the package path.

Ah, understood. I changed my xdc.opts file as follows

--xdcpath=^/../imports;/db/toolsrc/library/tools/packages;/h ome/xlibrary/trees/a
valaprod/avalaprod-d21/product/bios_6_20_00_21/packages;/hom e/xlibrary/trees/ipc
/ipc-b22/product/ipc_1_00_00_22/packages;^/ti/sdo/fc/utils/b ridgeconfig;/db/tool
src/library/tools/vendors/ti/edma3_lld/edma3_lld_1_06_00_01/ packages

(all on one line, no quotes as needed on the command line)

This works for both the xdc and xs commands.
Thank you.
Previous Topic:correct way to set profile for executable
Next Topic:Using sibling modules
Goto Forum:
  


Current Time: Mon Sep 15 02:05:52 GMT 2014

Powered by FUDForum. Page generated in 0.02990 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software