用在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
} |