Skip to contentSkip to conversation

Question on the U-Boot recipe

DISCUSSION x 1 participant 1 message Nov 18, 2017

lore
Share & tools
lore

x

author
#0 lore raw

Hello

I use the rocko branch to compile a rootfs for my allwinner A20 board. When build u-boot, it needs to compile a libfdt Python module, which shows as below:

*** binman needs the Python libfdt library.
*** Either install it on your system, or try:
***
*** sudo apt-get install swig libpython-dev
***
*** to have U-Boot build its own version.

So I add 'DEPENDS += "swig-native"' to the recipe. After that, it show that:

unable to execute 'x86_64-linux-gnu-gcc': No such file or directory

It look like that libfdt should be compiled as a native library.
So I make a soft link named x86_64-linux-gnu-gcc to /usr/bin/gcc, and then it's OK to build u-boot.

How to correct this problem in a good manner?

Best regards
cddatemp