Handling 2 components which are the same except size of files in TD project

C

Chris

Hi All,

I wanted to build one project(TD) for 2 target (Almost identical
Embedded PC except few feature) and to select the PC I want by
validating / devalidating the macro-components before generating the
image.

I get a pb for 2 components which are the same
same file name
same ressource
same place in target
EXCEPT the size of the file ( one driver is more up to date than the
other and I the one which is up to date does not work on the older PC)

So I made 2 different components with 2 different repositories,...

The pb is that TD only want to take one even if the 2 components have
different name. TD replaces each component by the other each time I add
one of them. I think it is because TD check the name but also the
ressource of the component and try to replace a component which has the
same ressource.

Is there a solution or do I have to make 2 project in TD (it would be a
shame)

Thks.
 
L

Lynda Allen \(MS\)

Chris,

If I understand you correctly you have created two components for two
different versions of a driver and you manually add one or the other
component to your config by selecting a check box in a macro component.

You want to make sure that you differentiate your 2 components and that you
also differentiate the files that belong to each component. To differentiate
the two components you need to ensure that the components have different
VIGUIDS (right-click on the componetn and select Advanced- you will see both
a VIGUID and VSGUID listed). If you have used your first component as a
template for your second component and just changed the display name etc and
saved it it probably still has the same VIGUID. Make sure your second
component is a totally new component (TIP- you can create a new sld and copy
and paste your first component into the second sld- that will change
generate a new VIDUID for the 2nd component).

The best way to differentiate the files that have the same name would be to
decorate them in each repository (e.g rename the file to
"comp1_filename.sys" for component 1 and "comp2_filename.sys" for component
2). Then reference those appropriate decorated files in each component by
going to "Files" node, selecting the file, enter the source name of the file
as "comp1_filename.sys" or "comp2_filename.sys. When the runtime image is
built TD will grab the appropriate decorated file name and rename it to the
normal name when it is binplaced in the \Windows\system32\drivers folder.

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top