note
laozi
<p>This is the hash structure</p>
<code> 'image' =>
{
'linux_axp_lpae' =>
{
# Mandatory
image_name => 'uImage-axp-lpae',
code_ref => 'linux_3.2.40_13q3_uni',
linux_image =>
{
compiler => 'v7_le_sfp_latest',
defconfig => 'armada_xp_v7smp_defconfig',
modules => '1',
config =>
{
'CONFIG_ARM_LPAE' => {value => 'y'},
'CONFIG_SQUASHFS' => {value => 'y'}
},
},
'post_script' => ['cesa/openswan/ipsec_build.sh']
},
}
</code>
and this is the xml i get
<code>
<image image_name="uImage-axp-lpae"
code_ref="linux_3.2.40_13q3_uni">
<linux_image compiler="v7_le_sfp_latest"
defconfig="armada_xp_v7smp_defconfig"
modules="1">
<config image="CONFIG_ARM_LPAE"
value="y" />
<config image="CONFIG_SQUASHFS"
value="y" />
</linux_image>
<post_script>cesa/openswan/ipsec_build.sh</post_script>
</image>
</code>
as you can see "code_ref" becomes a attribute but i need it to be an element
1053199
1053222