Build fail when modify SRC_URI to refer to local directory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build fail when modify SRC_URI to refer to local directory

987 Views
edwardbong
Contributor II

Hi

The BSP is for iMX8MQ ga release.

I modify  /sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2017.03.bb  to refer to the local directory instead of from git.

The affected changes are:

#LICENSE = "GPLv2+"
#LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""

#UBOOT_SRC ?= "git://source.codeaurora.org/external/imx/uboot-imx.git;protocol=https"
UBOOT_SRC ?= "file://u-boot-imx/"
SRCBRANCH = "imx_v2017.03_4.9.51_imx8m_ga"
#SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}"
SRC_URI = "file://u-boot-imx/"

The Error encountered is 

ERROR: u-boot-imx-2017.03-r0 do_compile: Function failed: do_compile (log file is located at /home/imx8-ppi-001/build-001/tmp/work/imx8mq_ppi-poky-linux/u-boot-imx/2017.03-r0/temp/log.do_compile.8095)

ERROR: Logfile of failure stored in: /home/imx8-ppi-001/build-001/tmp/work/imx8mq_ppi-poky-linux/u-boot-imx/2017.03-r0/temp/log.do_compile.8095

Log data follows:

| DEBUG: Executing shell function do_compile

| WARNING: exit code 128 from a shell command.

| ERROR: Function failed: do_compile (log file is located at /home/et/imx8-pci-001/build-001/tmp/work/imx8mq_pci-poky-linux/u-boot-imx/2017.03-r0/temp/log.do_compile.8095)

ERROR: Task (/home/imx8-ppi-001/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2017.03.bb:do_compile) failed with exit code '1'

regards,  Edward

Tags (2)
0 Kudos
2 Replies

780 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Edward,

That errors mean that uboot is not find, you migth fix the issue putting in yocto your uboot not in root.

0 Kudos

780 Views
edwardbong
Contributor II

Hi Bio_TICFSL

I am quite new to Yocto development. 

Care to show me how it is done ?

I placed the u-boot-imx codes inside /home/imx8-ppi-001/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx/

regards, Edward

0 Kudos