TinkerBoard / debian_u-boot

Debian U-Boot source for Tinker Board
29 stars 18 forks source link

U-boot crosscompile OSX failed #7

Open dmitryelj opened 5 years ago

dmitryelj commented 5 years ago

Hi all,

I'm trying to build u-boot release 2.0.8 on OSX, using this manual: https://tinkerboarding.co.uk/wiki/index.php/Software#U-boot

make CROSS_COMPILE=arm-linux-gnueabihf- O=miniarm-rk3288 tinker-rk3288_defconfig all

HOSTCC scripts/basic/fixdep GEN ./Makefile HOSTCC scripts/kconfig/conf.o 10 warnings generated. SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf input in flex scanner failed make[3]: [tinker-rk3288_defconfig] Error 2 make[2]: [tinker-rk3288_defconfig] Error 2 make[1]: [__build_one_by_one] Error 2 make: [sub-make] Error 2

flex 2.6.4 is installed.

uname -a output:
16.7.0 Darwin Kernel Version 16.7.0: Wed Oct 4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64 x86_64

Any ideas? I see in the Makefile a sort of OSX support, so it should work in general.

Thanks.

jamess-huang commented 5 years ago

I am not sure if it can build from OSX directly. Our experience is that we need to install a virtual machine which runs Ubuntu on it. and use the Ubuntu environment to build the u-boot/kernel.