Linux内核编译问题记录

主机:Ubuntu18.04

内核版本:linux 3.0.15

交叉编译器:arm-2014.05

1、Error: selected processor does not support ARM mode 'smc 0' 解决方法

vim arch/arm/mach-exynos/include/mach/smc.h,共有两处修改

__asm__ volatile (
    ".arch_extension sec\n"        //添加该行
    "smc 0\n"
    : "+r"(reg0), "+r"(reg1),  "+r"(reg2),  "+r"(reg0)
)

vim arch/arm/mach-exynos/sleep-exynos4.S,43行上面添加


#ifdef   CONFIG_ARM_TRUSTZONE
    .arch_extension sec
#endif

vim arch/arm/mach-exynos/idle-exynos4.S,43行上面添加


#ifdef   CONFIG_ARM_TRUSTZONE
    .arch_extension sec
#endif

2、Can't use 'defined(@array)'

if (!defined(@val)) {

改为:

if (!(@val)) {

3、error:inlining failed in call to always_inline 'get_fimd_global': function body not avaibale ...

删除 drivers/video/samsung/s3cfb.h 中217行的关键字inline

 

 

你可能感兴趣的:(Linux)