Why my private binaries do not show up in the image?
Why my private binaries do not show up in the image? I've been asked this question too many times by now. Many partners when testing their private changes have to figure it out the hard way.
The reason why your updated binary doesn't show up in the image is because by default make image picks up package files from %_FLATRELEASEDIR%\prebuilt directory. All you need to do is to figure out which package your dll/exe goes to and delete that package. Here are the steps I do whenever I need to update a dll in an image.
First you need to find which package your dll goes into. There are several way to do that.
So here is what you need to do:
- Copy your binary, symbols, map into %_FLATRELEASEDIR%
- Find out what package your file is in
- Cd %_FLATRELEASEDIR%
- "findstr /i [your filename] *.bsm.xml" Ex: findstr /i nk.exe *.bsm.xml
- This should return a package's xml file, for example oemxipkernel.bsm.xml. This tells you that it's in the OS package.
- Find the prebuilt package and delete it
- cd prebuilt
- del oemxipkernel.cab.pkg
- Makeimg
Makeimg will detect the missing package and rebuild it.
Comments
Anonymous
September 28, 2007
PingBack from http://www.artofbam.com/wordpress/?p=3715Anonymous
September 28, 2007
Why my private binaries do not show up in the image? I've been asked this question too many timesAnonymous
October 04, 2007
Can the files in oemxipkernel packages be replaced?Anonymous
October 04, 2007
Yes you should be able to do that.