none
NMAKE : U1073: don't know how to make RRS feed

  • Question

  • I'm pretty sure I'm hitting this because of a race condition.  In my sources folder I use the output from other sources projects to build our driver. The problem is it seems as though the driver project is finishing and linking with projects still compiling.

    I'm 99.9% positive this is the problem since this only happens when we've checked off Automatically detect number of processors in 

    tools/options

    Platform Builder for CE

     

    I'm wondering where to see if there exists some sync options for compiling sources projects and where I'll find info on it. Our sources looks a bit like this

    TARGETLIBS= \

        $(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib \

        $(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib \

     

    SOURCELIBS= \

        $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\arch.lib \

        $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\gen.lib \

        $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\ldrv.lib \

        $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\osal.lib \

    Monday, November 21, 2011 6:48 PM

Answers

  • At the root of your driver create a source.inc (or an other extension that you want).

    In your sources files:

    !INCLUDE $(_TARGETPLATROOT)\Src\Drivers\mydriver\sources.inc


    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 Kevin Chaves Wednesday, December 7, 2011 3:27 PM
    Tuesday, November 22, 2011 1:17 PM
    Moderator

All replies

  • Take a look at the documentation for sources files: http://msdn.microsoft.com/en-us/library/ee478832.aspx
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Monday, November 21, 2011 6:58 PM
    Moderator
  • Is there a way to macro it up, because I have another project I want to sync but this seems like a really clunky way to add sync.  Also the sources.cmn... can i drop that in a folder with a dirs file and get all hte CEDEFINES from it?

     

     

    TARGETLIBS= \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxproj.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxdrvrfw.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxmmgr.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxvbf.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxvbfutl.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxbbm5.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxdevmgr.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxfml.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxnand.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxnndsim.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxnor.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxosserv.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxhooks.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxutil.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxdebug.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxfatfs.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxtools.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxtests.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\NandFlash_Kernel.LIB \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\edmadrvr.lib \

     

    SOURCELIBS= \

      $(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib \

      $(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib \

      $(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\ntcompat.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dcllib.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dlostools.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dlutil.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dlserv.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dlosserv.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dlperflog.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dldebug.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\fxoemn.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dlrelcmn.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dlfat.lib \

      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dlproj.lib \

    Monday, November 21, 2011 7:52 PM
  • I don't know what you are thinking when you say "macro it up".

    I also don't necesarily know what you are talking about with your question about CDEFINES.   I will take one guess at it though.   You can have one sources.cmn file in a build tree.  To be found and used it must reside in the topmost folder that contains a dirs file.

    One thing to consider is that you can "include" a common sources file from all of the sources files in a sub-tree.   This is how we handle common variables in the build tree that I think you are working on.


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

    Eurotech Inc.
    www.Eurotech.com
    Monday, November 21, 2011 10:01 PM
    Moderator
  • Ah ok right now I have a set of CDEFINES copied into each sources file because I didn't know how to add a common anything in

    ...platform\myplatform\src\drivers\mydriver

    How does one do this?

     

    What I was hoping that I could do with the macro when I say macro it up, if there was a way to say I want all the projects in this subfolder to have 

    $(mydrivername)_PROCUDES=$(projname)

    and one that has 

    $(mydrivername)_COMSUMES=everything with mydrivername

    Monday, November 21, 2011 10:50 PM
  • At the root of your driver create a source.inc (or an other extension that you want).

    In your sources files:

    !INCLUDE $(_TARGETPLATROOT)\Src\Drivers\mydriver\sources.inc


    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 Kevin Chaves Wednesday, December 7, 2011 3:27 PM
    Tuesday, November 22, 2011 1:17 PM
    Moderator
  • I am having a hard time getting these techniques to work with a really complex directory structure. The driver I'm using I basically dropped into our tree as is and it worked buidling in a single thread so I didn't think about restructuring the folders. 

    Basically I'm working with folders like A B C

    A has folders 1 2 3 as sub directories and sources projects.  

    B has 1 2 a sub dirs folders and 1 has in it maybe i. ii. iii. as sources projects

    basically they all link into a dll project in C which also has a couple of other lib projects.

    Thursday, December 8, 2011 2:23 AM