[yocto] [PATCH 2/2] u-boot-edison: expand variables inside python function

Koen Kooi koen at dominion.thruhere.net
Thu Feb 11 23:30:19 PST 2016


Thanks, applied both!

> Op 11 feb. 2016, om 12:42 heeft Rafaël Carré <funman at videolan.org> het volgende geschreven:
> 
> ---
> recipes-bsp/u-boot/u-boot-osip.inc | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/recipes-bsp/u-boot/u-boot-osip.inc b/recipes-bsp/u-boot/u-boot-osip.inc
> index d05d440..0091f28 100644
> --- a/recipes-bsp/u-boot/u-boot-osip.inc
> +++ b/recipes-bsp/u-boot/u-boot-osip.inc
> @@ -140,11 +140,11 @@ python do_osip_mkimage() {
>     '000000000000000000000000000000000055aa'
> 
>     def main():
> -        input_file = "${UBOOT_TMP_IMG}"
> -        output_file = "${UBOOT_IMG}"
> -        handoff_pointer =  ${OSIP_HANDOFF_POINTER}
> -        destination_pointer = ${OSIP_DESTINATION_POINTER}
> -        starting_lba = ${OSIP_STARTING_LBA}
> +        input_file = d.expand("${UBOOT_TMP_IMG}")
> +        output_file = d.expand("${UBOOT_IMG}")
> +        handoff_pointer =  int(d.expand("${OSIP_HANDOFF_POINTER}"))
> +        destination_pointer = int(d.expand("${OSIP_DESTINATION_POINTER}"))
> +        starting_lba = int(d.expand("${OSIP_STARTING_LBA}"))
> 
>         in_file_data = open(input_file, 'rb').read()
> 
> -- 
> 2.5.0
> 




More information about the yocto mailing list