I cloned the 960 kernel from “kernel/hikey-linaro - Git at Google” but encounter the build break on branch “android-hikey-linaro-4.19” by following the steps from the website.
Steps:
git clone https://android.googlesource.com/kernel/hikey-linaro
cd hikey-linaro
git checkout -b android-hikey-linaro-4.19 origin/android-hikey-linaro-4.19
make ARCH=arm64 hikey960_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24
The error log is showing as below and does anyone have an idea for how to fix it? Thanks.
In file included from ././include/linux/compiler_types.h:64:0,
from <command-line>:0:
./arch/arm64/include/asm/jump_label.h: In function 'br_nf_post_routing':
./include/linux/compiler-gcc.h:164:38: warning: asm operand 0 probably doesn't match constraints
#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
^
./arch/arm64/include/asm/jump_label.h:31:2: note: in expansion of macro 'asm_volatile_goto'
asm_volatile_goto("1: nop\n\t"
^
./include/linux/compiler-gcc.h:164:38: error: impossible constraint in 'asm'
#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
^
./arch/arm64/include/asm/jump_label.h:31:2: note: in expansion of macro 'asm_volatile_goto'
asm_volatile_goto("1: nop\n\t"
^
scripts/Makefile.build:333: recipe for target 'net/bridge/br_netfilter_hooks.o' failed
make[2]: *** [net/bridge/br_netfilter_hooks.o] Error 1
scripts/Makefile.build:638: recipe for target 'net/bridge' failed
make[1]: *** [net/bridge] Error 2
Makefile:1113: recipe for target 'net' failed
make: *** [net] Error 2
#### failed to build some targets (05:31 (mm:ss)) ####