AnsweredAssumed Answered

how to change u-boot 2018.03 source in yocto?

Question asked by 计龙 杨 on Jul 12, 2019
Latest reply on Jul 23, 2019 by gusarambula

I'm using official bsp imx-4.14.98-2.0.1_patch.

Our u-boot has been migrated from this bsp and generated .config. It works on our board.

Now we want to compile u-boot in offical bsp. Here is my .bbappend:

UBOOT_SRC = "git://ip/project/imx-uboot-sumo.git;protocol=http"
SRCBRANCH = "develop"
SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}"
SRCREV = "${AUTOREV}"

UBOOT_CONFIG = "nand"

do_configure () {
}

do_compile () {
      oe_runmake -C ${S} O=${B} ${UBOOT_MAKE_TARGET}
}

do_patch() {
}

And I got error:

| mkdir -p include/config include/generated
| test -e include/generated/autoksyms.h || \
| touch include/generated/autoksyms.h
| scripts/kconfig/conf --silentoldconfig Kconfig
| ***
| *** Configuration file ".config" not found!
| ***
| *** Please run some configurator (e.g. "make oldconfig" or
| *** "make menuconfig" or "make xconfig").

 

But in official bsp imx-4.1.15-2.0.2_ga, u-boot 2016.03 works in this way:

UBOOT_SRC = "git://ip/project/imx-uboot-sumo.git;protocol=http"
SRCBRANCH = "develop"
SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}"
SRCREV = "${AUTOREV}"
UBOOT_CONFIG = "nand"

 

do_compile () {
     oe_runmake clean
     oe_runmake

if [ -d ${S}/mx6qsabreauto_nand_config ]; then
     rm -rf ${S}/mx6qsabreauto_nand_config
fi
     mkdir ${S}/mx6qsabreauto_nand_config/
     cp ${S}/${UBOOT_BINARY} ${S}/mx6qsabreauto_nand_config/u-boot-nand.imx

}

 

do_patch() {
}

Outcomes