none
desktop icons and walpaper platform builder - CE7 RRS feed

Answers

  • You could modify that to run as premakeimg.bat and remove the LNK files from the seperate DAT files instead.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com

    • Marked as answer by Frank Grundin Wednesday, September 26, 2012 11:53 AM
    Wednesday, September 26, 2012 11:07 AM
    Moderator

All replies

  • Last I checked this still works for me in WEC7: http://guruce.com/blogpost/filteringdatfiles

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.

    Wednesday, September 26, 2012 5:50 AM
    Moderator
  • Hi, thx for the reply and nice to hear that it should work.

    I looked into the file .../oak/misc/makeimg.proj and in there it is possible to see the following:

     

     <Target Name="CreateFileSystem"

       ...

        <!-- Call these steps if initobj.tmp was updated by fmerge.-->
        <Exec Command="txt2ucde $(_FlatReleaseDir)\initobj.tmp $(_FlatReleaseDir)\initobj.dat"  Condition="$(ObjFileUpdated) == 'true'" />
        <Message Text="MAKEIMG: BUILDMSG: Calling $(_FlatReleaseDir)\PostFmergeObj.bat" Condition="Exists('$(_FlatReleaseDir)\PostFmergeObj.bat') AND $(ObjFileUpdated) == 'true'" />
        <Exec Command="$(_FlatReleaseDir)\PostFmergeObj.bat" Condition="Exists('$(_FlatReleaseDir)\PostFmergeObj.bat') AND $(ObjFileUpdated) == 'true'" />
        <OnError ExecuteTargets="MakeImgErrorTarget" />
     </Target>

    The problem I had was solved by moving the exec command 'txt2ucde' to be executed first after the PostFmergObj.bat execution. 

    I will probably just continue from this point but it would be good know if this change is acceptable?

    Wednesday, September 26, 2012 8:57 AM
  • IMHO changing anything in code from the PUBLIC, PRIVATE or PLATFORM trees that is not yours is unacceptable.

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.

    Wednesday, September 26, 2012 9:02 AM
    Moderator
  • Thx for that advice, that's good to know.

    Hmmm.... so that means I'm still missing something here to make it work the right way...

    Wednesday, September 26, 2012 10:42 AM
  • You could modify that to run as premakeimg.bat and remove the LNK files from the seperate DAT files instead.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com

    • Marked as answer by Frank Grundin Wednesday, September 26, 2012 11:53 AM
    Wednesday, September 26, 2012 11:07 AM
    Moderator
  • Thx, that makes sense for me.

    Before I read your answer I tried to add 'txt2ucde' command at the end of PostFmergeObj.bat, this to avoid modify the PUBLIC tree.

    ...

    findstr /I /L /V /G:PostFmergeObj.txt initobj.org > initobj.tmp
    txt2ucde initobj.tmp initobj.dat
    popd

    ...

    That did also work, the backside is that the txt2ucde is called twice, but that goes as minor for me :-)

    Thx for the help.

    Wednesday, September 26, 2012 11:59 AM
  • Hello, 

    Frank Grundins workaround seems to operate. But maybe stupit question: how can i copy "postfmergeobj.*" files to release directory while "make runtime image"? This mechanisms has changed since WCE6 (Folder "<osdesingn>\...\WCEx\...\Files" does not exist any more).

    Thanx Christian.

    PS: i wan't modify premakeimg.bat.

    Friday, October 26, 2012 7:06 AM