on a custom kernel: bitbake linux-yocto-custom -c menuconfig NOTE: Started PRServer with DBfile: /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/poky-custom-rocko-multi-v7-core-image-minimal/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 33313, PID: 27012 Loading cache: 100% |###########################################################################################################################| Time: 0:00:00 Loaded 1278 entries from dependency cache. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.35.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "imx6q-phytec-mira-rdk-nand-bsp" DISTRO = "poky" DISTRO_VERSION = "2.4" TUNE_FEATURES = "arm armv7a vfp neon" TARGET_FPU = "softfp" meta meta-poky meta-yocto-bsp = "2017-10-02-rocko-2.4-pre-release:e632745c4e7a39f5461a23a99e72036281c56917" imx6q-phytec-mira-rdk-nand-bsp = "master:0e7bbb3e6e35e0388864e9c8bce1dda22da30872" Initialising tasks: 100% |######################################################################################################################| Time: 0:00:00 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: linux-yocto-custom-4.9.44+gitAUTOINC+a97a16f18c-r0 do_kernel_metadata: Could not locate BSP definition for imx6q-phytec-mira-rdk-nand-bsp/standard and no defconfig was provided NOTE: Tasks Summary: Attempted 344 tasks of which 334 didn't need to be rerun and all succeeded. Summary: There was 1 ERROR message shown, returning a non-zero exit code. Error was ignored?
I suspect some cases of bb.error() need to be bb.fatal() in the bbclasses.
Created attachment 4125 [details] sample kernel recipe This also happens after the 2.4 release and the point is it's right. There is no defconfig and there are also no kernel metadata since I want to use an in tree kernel config.
I thought those lines would do the trick: # Let's try an in-tree defconfig: KERNEL_DEFCONFIG_imx6q-phytec-mira-rdk-nand-bsp ?= "multi_v7_defconfig" KBUILD_DEFCONFIG_imx6q-phytec-mira-rdk-nand-bsp ?= "multi_v7_defconfig" KCONFIG_MODE="--alldefconfig"
Robert, is it possible you have a "defconfig" file on the $WORKDIR that matches the KCONFIG_DEFCONFIG setting? I think I found part of the problem is that the $sccs is not set if the KCONFIG_DEFCONFIG == $WORKDIR/defconfig and we should really be setting $sccs in both cases. We might also want to change the bberror to bbfatal in this case.
Hi, I don't quite understand what defconfig that should be. Just a dummy file, or the real thing? I want to use multi_v7_defconfig like[1] and apply config fragments on top of it. Like this I can move back and forth between kernel versions quite easily. Just need to change the commit id like here[2] [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/arch/arm/configs/multi_v7_defconfig?h=v4.14.2 [2] https://github.com/RobertBerger/meta-mainline/tree/rocko-training-v4.9.x/multi-v7-ml/recipes-kernel/linux If you like I can try to add to my kernel recipe something which copies the multi_v7_defconfig wherever you would like to find it and rename it to defconfig. Is this what you want? multi_v7_defconfig to $WORKDIR/defconfig?
Merged http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f727f04248868c7e3ae45f261401f10662680a1d and http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=adb9d45f5d5dc418ab85dc659326f3c7350ef446