[okl4-developer] More dependency problems with 'weaver.xml'
Geoffrey Lee
glee at ok-labs.com
Wed Aug 6 14:10:49 EST 2008
On Mon, Aug 04, 2008 at 04:58:17PM +0200, Frank Kaiser wrote:
> Hello
Hi Frank
>
>
>
> 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':
I've been told that the dependency issues that you have been seeing
should no longer be present. For the present release, the workaround
may be to simply remove the build/images directory and re run the
build command line.
-gl
>
> # 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
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
--
More information about the Developer
mailing list