Firefly Open Source Community

Title: Compile Ubuntu firmware(GPT) kernek compile error [Print This Page]

Author: metind    Time: 12/13/2018 17:12
Title: Compile Ubuntu firmware(GPT) kernek compile error
Dear All,

I load and did all steps for GPT compiling and then try to compile kernel I got this error;

met@met:~/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk$ ./build.sh kernel
============Start build kernel============
TARGET_ARCH          =arm64
TARGET_KERNEL_CONFIG =firefly_linux_defconfig
TARGET_KERNEL_DTS    =rk3399-firefly
TARGET_KERNEL_JOBS    =8
==========================================
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
/bin/sh: 1: Syntax error: "(" unexpected
scripts/Makefile.build:277: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
make[2]: *** Waiting for unfinished jobs....
/bin/sh: 1: Syntax error: "(" unexpected
scripts/Makefile.build:153: recipe for target 'scripts/mod/devicetable-offsets.s' failed
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 2
scripts/Makefile.build:484: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:584: recipe for target 'scripts' failed
make: *** [scripts] Error 2
====Build kernel failed!====

What is problem?

Best regards,

Metin
Author: metind    Time: 12/13/2018 18:17
Think firstly have to define compiler tool chain so then used export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu- and try again, compiled but now same as for uboot. So for uboot which croos compile tool chain must be used and what must be the ARCH?


Author: penguin    Time: 12/17/2018 18:07
The ARCH & CROSS_COMPILE should be taken care of in the build.sh.

What's your compiling environment? We pass all builds in  64bits Ubuntu 16.04,
using ext4 or xfs filesystem.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1