Re: [yocto] Custom FIT image: circular dependencies issue

2017-08-27 Thread Belisko Marek
Hi Yegor,

On Mon, Aug 7, 2017 at 9:00 AM, Yegor Yefremov
 wrote:
> I've switched to Yocto's master branch from Krogoth and get now
> circular dependencies for my kernel recipe:
>
> ERROR: 502 unbuildable tasks were
> found.#
>
>   | ETA:  0:00:08
> These are usually caused by circular dependencies and any circular
> dependency chains found will be printed below. Increase the debug
> level to see a list of unbuildable tasks.
>
> Identifying dependency loops (this may take a short while)...
>
> ERROR:
> Dependency loop #1 found:
>   Task 
> /home/user/MyProjects/oss/yocto/poky/meta-baltos/recipes-kernel/linux/linux-yocto-custom.bb:do_create_fitimage
> (dependent Tasks ['linux-yocto-custom.bb:do_deploy'])
>   Task 
> /home/user/MyProjects/oss/yocto/poky/meta-baltos/recipes-kernel/linux/linux-yocto-custom.bb:do_packagedata
> (dependent Tasks ['linux-yocto-custom.bb:do_package',
> 'linux-yocto-custom.bb:do_create_fitimage'])
>   Task 
> /home/user/MyProjects/oss/yocto/poky/meta-baltos/recipes-kernel/linux/linux-yocto-custom.bb:do_deploy
> (dependent Tasks ['linux-yocto-custom.bb:do_bundle_initramfs',
> 'depmodwrapper-cross_1.0.bb:do_populate_sysroot',
> 'linux-yocto-custom.bb:do_populate_sysroot',
> 'linux-yocto-custom.bb:do_packagedata'])

This is my just rough explanation why you see this error. As you have
defined task do_create_fitimage before do_packagedata after do_deploy
new circular dependency check added in commit 7821f225 is creating
error showed above. When changing to following everything seems to
works fine:
-addtask create_fitimage before do_packagedata after do_deploy
+
+addtask create_fitimage before do_install after do_compile

As you simply copy its file + create dtb you can create
do_deploy_append method and create those steps there and you don't
need separate task. Hope this helps.
>
>
> ERROR: Command execution failed: 1
>
> My kernel recipe:
>
> inherit kernel
> require recipes-kernel/linux/linux-yocto.inc
>
> python __anonymous () {
> depends = d.getVar("DEPENDS", True)
> depends = "%s u-boot-mkimage-native dtc-native" % depends
> d.setVar("DEPENDS", depends)
> }
>
> do_create_fitimage() {
> cp ${THISDIR}/linux-yocto-custom/kernel-fit.its ${DEPLOY_DIR_IMAGE}
> uboot-mkimage -f ${DEPLOY_DIR_IMAGE}/kernel-fit.its
> ${DEPLOY_DIR_IMAGE}/kernel-fit.itb
> }
>
> addtask create_fitimage before do_packagedata after do_deploy
>
> KBRANCH = "linux-3.18.y"
> KCONFIG_MODE = "--alldefconfig"
>
> SRC_URI = 
> "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;protocol=git;bareclone=1;branch=${KBRANCH}"
> SRC_URI += "file://defconfig"
> SRC_URI += "file://baltos.scc \
>"
>
> LINUX_VERSION ?= "3.18"
> LINUX_VERSION_EXTENSION ?= ""
>
> SRCREV="v3.18.32"
>
> PV = "${LINUX_VERSION}+git${SRCPV}"
>
> COMPATIBLE_MACHINE_baltos = "baltos"
>
> Any idea?
>
> Regards,
> Yegor
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

BR,

marek

-- 
as simple and primitive as possible
-
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Custom FIT image: circular dependencies issue

2017-08-07 Thread Yegor Yefremov
I've switched to Yocto's master branch from Krogoth and get now
circular dependencies for my kernel recipe:

ERROR: 502 unbuildable tasks were
found.#

  | ETA:  0:00:08
These are usually caused by circular dependencies and any circular
dependency chains found will be printed below. Increase the debug
level to see a list of unbuildable tasks.

Identifying dependency loops (this may take a short while)...

ERROR:
Dependency loop #1 found:
  Task 
/home/user/MyProjects/oss/yocto/poky/meta-baltos/recipes-kernel/linux/linux-yocto-custom.bb:do_create_fitimage
(dependent Tasks ['linux-yocto-custom.bb:do_deploy'])
  Task 
/home/user/MyProjects/oss/yocto/poky/meta-baltos/recipes-kernel/linux/linux-yocto-custom.bb:do_packagedata
(dependent Tasks ['linux-yocto-custom.bb:do_package',
'linux-yocto-custom.bb:do_create_fitimage'])
  Task 
/home/user/MyProjects/oss/yocto/poky/meta-baltos/recipes-kernel/linux/linux-yocto-custom.bb:do_deploy
(dependent Tasks ['linux-yocto-custom.bb:do_bundle_initramfs',
'depmodwrapper-cross_1.0.bb:do_populate_sysroot',
'linux-yocto-custom.bb:do_populate_sysroot',
'linux-yocto-custom.bb:do_packagedata'])


ERROR: Command execution failed: 1

My kernel recipe:

inherit kernel
require recipes-kernel/linux/linux-yocto.inc

python __anonymous () {
depends = d.getVar("DEPENDS", True)
depends = "%s u-boot-mkimage-native dtc-native" % depends
d.setVar("DEPENDS", depends)
}

do_create_fitimage() {
cp ${THISDIR}/linux-yocto-custom/kernel-fit.its ${DEPLOY_DIR_IMAGE}
uboot-mkimage -f ${DEPLOY_DIR_IMAGE}/kernel-fit.its
${DEPLOY_DIR_IMAGE}/kernel-fit.itb
}

addtask create_fitimage before do_packagedata after do_deploy

KBRANCH = "linux-3.18.y"
KCONFIG_MODE = "--alldefconfig"

SRC_URI = 
"git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;protocol=git;bareclone=1;branch=${KBRANCH}"
SRC_URI += "file://defconfig"
SRC_URI += "file://baltos.scc \
   "

LINUX_VERSION ?= "3.18"
LINUX_VERSION_EXTENSION ?= ""

SRCREV="v3.18.32"

PV = "${LINUX_VERSION}+git${SRCPV}"

COMPATIBLE_MACHINE_baltos = "baltos"

Any idea?

Regards,
Yegor
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto