[okl4-developer] More dependency problems with 'weaver.xml'
Frank Kaiser
frank.kaiser at opensynergy.com
Tue Aug 5 00:58:17 EST 2008
Hello
I found out that the BOOTINFO processing supports the SecurityControl
feature and allows, for instance, granting PlatformControl to a program.
To test this I made a change to 'iguana/vtimer/SConscript':
# add 'platform_control' for test
weaver = env.WeaverIguanaProgramServer(server_name =
"OKL4_VTIMER_SERVER", priority = 240, device_name = "timer",
platform_control = True)
Then I did my usual build command and nothing happened, apparently
because there SCONS does not recognize a dependency of the SConscript
file to 'weaver.xml'.
Okay, I simply removed 'weaver.xml' and restarted my build command. That
is what I got:
scons: building `sam/images/weaver.xml' because it doesn't exist
[XML ] sam/images/weaver.xml
scons: `sam/images/image.elf' is up to date.
scons: `sam/images/image.sim' is up to date.
scons: `sam/images/image.boot.bin' is up to date.
scons: done building targets.
That is strange since the content of 'weaver.xml' has changed:
<program name="vtimer"
file="/home/fka/Projects/COQOS/L4/OKL4/okl4_2.1/sam/iguana/bin/vtimer"
priority="240" server="OKL4_VTIMER_SERVER" platform_control="true" >
<environment>
<entry key="TIMER_RESOURCE"
cap="/dev/timer_dev" />
</environment>
</program>
The property 'platform_control="true"' has been added, which should have
an impact of the BOOTINFO section of the image, and therefore the
content of 'image.elf' is expected to change.
Here a working example for the change of the platform-specific
'machines.py', for which I have added the dependency:
scons: rebuilding `build/images/weaver.xml' because
`platform/at91/tools/machines.py' changed
[XML ] build/images/weaver.xml
scons: rebuilding `build/images/image.elf' because
`build/images/weaver.xml' changed
[ELF ] build/images/image.elf
scons: rebuilding `build/images/image.sim' because
`build/images/image.elf' changed
[ELF ] build/images/image.sim
scons: rebuilding `build/images/image.boot' because
`build/images/image.elf' changed
[ELF ] build/images/image.boot
scons: rebuilding `build/images/image.boot.bin' because
`build/images/image.boot' changed
arm-linux-objcopy -O binary build/images/image.boot
build/images/image.boot.bin
scons: done building targets.
Apparently there is a dependency from 'weaver.xml' to 'image.elf'. Does
anyone have a clue, why it failed in the above case? Such an
unpredictable behaviour is a nightmare for any developper... L
Regards
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20080804/03f0de60/attachment.htm
More information about the Developer
mailing list