打印
[技术问题解答]

我用在linux-imx_4.1.15.bb中有把本地某个项目的内核路径写进...

[复制链接]
2158|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
zhangzhe7|  楼主 | 2017-2-23 10:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
用在linux-imx_4.1.15.bb中有把本地某个项目的内核路径写进去了,可是编译bitbake linux-imx,还是会有问题。
编译出错信息是:
ERROR: linux-imx-4.1.15-r0 do_compile: oe_runmake failed
ERROR: linux-imx-4.1.15-r0 do_compile: Function failed: do_compile (log file is located at /home/zhangzhe/fsl-release-bsp-L4.1.15/build-x11/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/4.1.15-r0/temp/log.do_compile.13141)
ERROR: Logfile of failure stored in: /home/zhangzhe/fsl-release-bsp-L4.1.15/build-x11/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/4.1.15-r0/temp/log.do_compile.13141
ERROR: Task 7 (/home/zhangzhe/fsl-release-bsp-L4.1.15/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.1.15.bb, do_compile) failed with exit code '1'

其中linux-imx_4.1.15.bb脚本为:
SUMMARY = "Linux Kernel provided and supported by Freescale"
DESCRIPTION = "Linux Kernel provided and supported by Freescale with focus on \
i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."

require recipes-kernel/linux/linux-imx.inc
require recipes-kernel/linux/linux-dtb.inc

DEPENDS += "lzop-native bc-native"

SRCBRANCH = "master"
LOCALVERSION = "-2.0.0"
SRCREV = "${AUTOREV}"
#SRCREV = "b63f3f52cb393e3287352cf63f0caef31a33ab63"
KERNEL_SRC ?= "git:///home/zhangzhe/linux-imx-mel-3.10.45-591-7;protocol=file"
SRC_URI = "${KERNEL_SRC};branch=${SRCBRANCH}"
         
#SRC_URI[md5sum] = "50ecc390565b52cbae77fd1cba4e6815"
#SRC_URI[sha256sum] = "b334d66a00d054e718c03f9fff06637530570d7c2feec2c24f462dd056f32fa0"
         
DEFAULT_PREFERENCE = "1"

DO_CONFIG_V7_COPY = "no"
DO_CONFIG_V7_COPY_mx6 = "yes"
DO_CONFIG_V7_COPY_mx6ul = "yes"
DO_CONFIG_V7_COPY_mx7 = "yes"
   
addtask copy_defconfig after do_patch before do_preconfigure #do_configure
do_copy_defconfig () {
    if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then
        # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7
        mkdir -p ${B}
        cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/.config
        cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/../defconfig
    fi
}

相关帖子

沙发
韬铸88| | 2018-8-28 11:27 | 只看该作者
请问楼主,你的问题搞定了吗?我也遇到该问题,你是如何解决的呢?

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

16

帖子

0

粉丝