Symbian developer community

 

Forums

Reply
 
Thread Tools Display Modes
  #1  
Old 2009-11-26, 12:13
william_roberts's Avatar
william_roberts william_roberts is offline
Staff
 
Join Date: 2009 Mar
Posts: 888
Default Exporting to emulated Z drive

There is BLD.inf syntax for exporting to the emulated Z drive, e.g.

Code:
PRJ_EXPORTS
../data/AppPolicy.ini           z:/private/1234fedc/AppPolicy.ini
I thought it would be useful to explain exactly how the special export syntax works, why you should use it, and to quash a few myths about it.

How it works
The build tools will first treat that line as a conventional export, replacing "z:" with "epoc32/data/z"
Code:
../data/AppPolicy.ini           epoc32/data/z/private/1234fedc/AppPolicy.ini
The file will be copied at the "export" stage of the build.
The extra magic comes in the "resource" stage of the build. If the build targets include an emulator (WINS or WINSCW), then the resource step will have additional copies into the appropriate emulated drive location, e.g.
Code:
copy epoc32/data/z/private/1234fedc/AppPolicy.ini epoc32/release/winscw/urel/z/private/1234fedc/AppPolicy.ini
copy epoc32/data/z/private/1234fedc/AppPolicy.ini epoc32/release/winscw/udeb/z/private/1234fedc/AppPolicy.ini
These copies are done inside the generated makefiles with appropriate dependencies etc, but the end result is the same as specifying the direct exports explicitly in the original bld.inf file.

The same syntax works for exporting to the emulated C drive, but in that case there is only one copy because the emulated C drive is shared between UDEB and UREL emulators.

Why bother?
The exports to the emulated Z drive only happens if the emulator build targets are requested. I mentioned WINS above, which is an obsolete EKA1 emulator target - using the z: syntax avoided the need to get rid of explicit epoc32/release/wins/... export lines in the bld.inf files.
Using the syntax puts a clean copy of the file into the epoc32\data part of the tree, which should be used for building ROM images in preference to the epoc32\release\winscw copies.

The current WINSCW emulator will die off in the next year, because it can't properly support Qt. Having the z: syntax used in bld.inf files means less maintenance and tider build outputs when we stop doing WINSCW builds.

Myths
  • "But this only works with sbsv2" - not so. It was introduced long before sbsv2 was created, and is fully supported by the sbsv1 tools (abld, bldmake).
  • "I'm not allowed to use drive letters in exports" - I'm not sure where this rumour came from, but this syntax is fully supported and widely used.
  • "The coding standards demand the use of a macro for the destination directory" - that part of the coding standards is about header files, not data files intended for use on the device.
Reply With Quote
  #2  
Old 2009-12-02, 20:42
iain's Avatar
iain iain is offline
Symbian Foundation Community Member
 
Join Date: 2009 Jun
Posts: 407
Default

Quote:
Originally Posted by william_roberts View Post
The current WINSCW emulator will die off in the next year, because it can't properly support Qt.
Whilst we're myth-quashing, let's kill that one too. There is a patch for the emulator being tested at the moment that allows it to support the same DLL with WSD being loaded in multiple emulator "processes". So that's not the reason for the emulator dying.
Reply With Quote
  #3  
Old 2010-07-27, 06:59
washington11's Avatar
washington11 washington11 is offline
Symbian Foundation Community Member
 
Join Date: 2010 Jul
Posts: 1
Default

Sorry I don't have an idea about this.Hope some one help you the best...



eu export controls
Reply With Quote
  #4  
Old 2010-07-27, 11:06
mattd's Avatar
mattd mattd is offline
Symbian Foundation Community Member.
 
Join Date: 2009 Jul
Posts: 352
Default

Quote:
Originally Posted by washington11 View Post
Sorry I don't have an idea about this.Hope some one help you the best...



eu export controls
I think you're thinking of a different type of exporting. This thread is about moving files in the source tree during a build, not about shipping things from one country to another.
Reply With Quote
  #5  
Old 2010-08-16, 17:52
william_roberts's Avatar
william_roberts william_roberts is offline
Staff
 
Join Date: 2009 Mar
Posts: 888
Default

Quote:
Originally Posted by mattd View Post
This thread is about moving files in the source tree during a build, not about shipping things from one country to another.
Could be some exciting syntax though...

Code:
PRJ_EXPORTS

../data/privatekey.der     {EU_AND_SEVEN_FRIENDLIES?}z:\system\data\privatekey.der{:}sorry not permitted{;}
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads.
You may not post replies.
You may not post attachments.
You may not edit your posts.

BB code is On.
Smilies are On.
[IMG] code is On.
HTML code is Off.


Forum Jump

Powered by vBulletin · Copyright © 2010 vBulletin Solutions, Inc.