[Buildroot] [PATCH] boot/uboot: fix build for sunxi targets
joerg.krause at embedded.rocks
Mon Jan 16 20:04:27 UTC 2017
On Fri, 2017-01-13 at 16:11 +0100, Peter Korsgaard wrote:
> > > > > > "Jörg" == Jörg Krause <joerg.krause at embedded.rocks> writes:
> > Since version 2017.01 U-Boot needs to run the binman tool on the
> host machine
> > for building the 'u-boot-sunxi-with-spl.bin' target. The binman
> tool is written
> > in Python 2 so we need to add the python host package when
> building this
> > target, otherwise the build fails:
> > ```
> > BINMAN u-boot-sunxi-with-spl.bin
> > File "./tools/binman/binman", line 49
> > print result
> > ^
> > SyntaxError: Missing parentheses in call to 'print'
> > make: *** [Makefile:1090: u-boot-sunxi-with-spl.bin] Error 1
> > ```
> > Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
> That's not very nice :/
> We already check for python on the build machine in dependencies.sh,
> perhaps we could patch the binman sources to be compatible with
> 3 (and send the patch upstream)?
> Is that something you could look into?
I would rather not do the porting, but I can ask upstream about
supporting Python 3.
More information about the buildroot