<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12162</bug_id>
          
          <creation_ts>2017-10-03 13:26:59 +0000</creation_ts>
          <short_desc>ERROR: do_kernel_metadata: Could not locate BSP definition</short_desc>
          <delta_ts>2017-12-11 00:59:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77302</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-10-03 13:26:59 +0000</bug_when>
    <thetext>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        = &quot;1.35.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;imx6q-phytec-mira-rdk-nand-bsp&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.4&quot;
TUNE_FEATURES     = &quot;arm armv7a vfp neon&quot;
TARGET_FPU        = &quot;softfp&quot;
meta
meta-poky
meta-yocto-bsp    = &quot;2017-10-02-rocko-2.4-pre-release:e632745c4e7a39f5461a23a99e72036281c56917&quot;
imx6q-phytec-mira-rdk-nand-bsp = &quot;master:0e7bbb3e6e35e0388864e9c8bce1dda22da30872&quot;

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&apos;t need to be rerun and all succeeded.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.


Error was ignored?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77384</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-10-05 15:01:01 +0000</bug_when>
    <thetext>I suspect some cases of bb.error() need to be bb.fatal() in the bbclasses.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78215</commentid>
    <comment_count>2</comment_count>
      <attachid>4125</attachid>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-11-15 17:16:04 +0000</bug_when>
    <thetext>Created attachment 4125
sample kernel recipe

This also happens after the 2.4 release and the point is it&apos;s right.
There is no defconfig and there are also no kernel metadata since I want to use an in tree kernel config.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78216</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-11-15 17:17:16 +0000</bug_when>
    <thetext>I thought those lines would do the trick:

# Let&apos;s try an in-tree defconfig:
KERNEL_DEFCONFIG_imx6q-phytec-mira-rdk-nand-bsp ?= &quot;multi_v7_defconfig&quot;
KBUILD_DEFCONFIG_imx6q-phytec-mira-rdk-nand-bsp ?= &quot;multi_v7_defconfig&quot;
KCONFIG_MODE=&quot;--alldefconfig&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78390</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-11-29 03:16:57 +0000</bug_when>
    <thetext>Robert, is it possible you have a &quot;defconfig&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78409</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-11-29 20:51:47 +0000</bug_when>
    <thetext>Hi,

I don&apos;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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78654</commentid>
    <comment_count>6</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-12-11 00:59:04 +0000</bug_when>
    <thetext>Merged

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f727f04248868c7e3ae45f261401f10662680a1d

and
 
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=adb9d45f5d5dc418ab85dc659326f3c7350ef446</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4125</attachid>
            <date>2017-11-15 17:16:04 +0000</date>
            <delta_ts>2017-11-15 17:16:04 +0000</delta_ts>
            <desc>sample kernel recipe</desc>
            <filename>linux-yocto-custom.bb</filename>
            <type>application/octet-stream</type>
            <size>1860</size>
            <attacher name="Robert Berger">pokylinux</attacher>
            
              <data encoding="base64">IyBUaGlzIGZpbGUgd2FzIGRlcml2ZWQgZnJvbSB0aGUgbGludXgteW9jdG8tY3VzdG9tLmJiIHJl
Y2lwZSBpbgojIG9lLWNvcmUuCiMKIyBsaW51eC15b2N0by1jdXN0b20uYmI6CiMKIyAgIEEgeW9j
dG8tYnNwLWdlbmVyYXRlZCBrZXJuZWwgcmVjaXBlIHRoYXQgdXNlcyB0aGUgbGludXgteW9jdG8g
YW5kCiMgICBvZS1jb3JlIGtlcm5lbCBjbGFzc2VzIHRvIGFwcGx5IGEgc3Vic2V0IG9mIHlvY3Rv
IGtlcm5lbAojICAgbWFuYWdlbWVudCB0byBnaXQgbWFuYWdlZCBrZXJuZWwgcmVwb3NpdG9yaWVz
LgojCiMgV2FybmluZzoKIwojICAgQnVpbGRpbmcgdGhpcyBrZXJuZWwgd2l0aG91dCBwcm92aWRp
bmcgYSBkZWZjb25maWcgb3IgQlNQCiMgICBjb25maWd1cmF0aW9uIHdpbGwgcmVzdWx0IGluIGJ1
aWxkIG9yIGJvb3Q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Y2ZnIFwKICAgICAgICAgICAgZmlsZTovL2lteDZxLXBo
eXRlYy1taXJhLXJkay1uYW5kLWJzcC11c2VyLXBhdGNoZXMuc2NjIFwKICAgICAgICAgICAgZmls
ZTovL2lteDZxLXBoeXRlYy1taXJhLXJkay1uYW5kLWJzcC11c2VyLWZlYXR1cmVzLnNjYyBcCiAg
ICAgICAgICAgIgoKS0JSQU5DSCA9ICJsaW51eC00LjkueSIKCkxJTlVYX1ZFUlNJT04gPz0gIjQu
OS40NCIKTElOVVhfVkVSU0lPTl9FWFRFTlNJT04gPz0gIi1jdXN0b20tdHJhaW5pbmciCgpTUkNS
RVY9ImE5N2ExNmYxOGM0ODk1ZTQxOTUxYTQ0ZDI3YWY4YWYwYjhmMWQ4OTciCgpQViA9ICIke0xJ
TlVYX1ZFUlNJT059K2dpdCR7U1JDUFZ9IgoKIyBMZXQncyB0cnkgYW4gaW4tdHJlZSBkZWZjb25m
aWc6CktFUk5FTF9ERUZDT05GSUdfaW14NnEtcGh5dGVjLW1pcmEtcmRrLW5hbmQtYnNwID89ICJt
dWx0aV92N19kZWZjb25maWciCktCVUlMRF9ERUZDT05GSUdfaW14NnEtcGh5dGVjLW1pcmEtcmRr
LW5hbmQtYnNwID89ICJtdWx0aV92N19kZWZjb25maWciCktDT05GSUdfTU9ERT0iLS1hbGxkZWZj
b25maWciCgpDT01QQVRJQkxFX01BQ0hJTkVfaW14NnEtcGh5dGVjLW1pcmEtcmRrLW5hbmQtYnNw
ID0gImlteDZxLXBoeXRlYy1taXJhLXJkay1uYW5kLWJzcCIK
</data>

          </attachment>
      

    </bug>

</bugzilla>