<?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>15313</bug_id>
          
          <creation_ts>2023-12-08 07:32:01 +0000</creation_ts>
          <short_desc>Custom recipes not working</short_desc>
          <delta_ts>2023-12-15 07:23:30 +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>OE-Core</product>
          <component>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="lucio.liu">lucio.liux</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>eddy.aubineau</cc>
    
    <cc>randy.macleod</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>97459</commentid>
    <comment_count>0</comment_count>
    <who name="lucio.liu">lucio.liux</who>
    <bug_when>2023-12-08 07:32:01 +0000</bug_when>
    <thetext>When I create my own meta layer and add it to bblayers.conf for compilation, I found that the recipes in my own meta layer are not applied to the image after successful compilation. 
Initially, I attempted to add a system user in my custom recipes without success. Later, I also tried the recipes-skeleton/hello-single from meta-skeleton (placing recipes-skeleton under meta-example), but it was not successful either. Did I miss something?


My meta layer (meta-example) structure is as follows:

-poky
  + bitbake
  - build
    - bblayers.conf
    - local.conf
    - ...
  - meta-example
    - conf
      - layer.conf
    - recipes-core
      - images
        - core-image-user.bb
  + ...


My layer.conf

# We have a conf and classes directory, add to BBPATH
BBPATH .= &quot;:${LAYERDIR}&quot;

# We have recipes-* directories, add to BBFILES
BBFILES += &quot;${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend&quot;

BBFILE_COLLECTIONS += &quot;meta-example&quot;
BBFILE_PATTERN_meta-example = &quot;^${LAYERDIR}/&quot;
BBFILE_PRIORITY_meta-example = &quot;6&quot;

LAYERDEPENDS_meta-example = &quot;core&quot;
LAYERSERIES_COMPAT_meta-example = &quot;nanbield&quot;


My core-iamge-user.bb:

SUMMARY = &quot;Root and user&quot;
DESCRIPTION = &quot;Recipe for root and user&quot;
LICENSE = &quot;MIT&quot;

inherit image
IMAGE_INSTALL = &quot;sudo&quot;

inherit extrausers
EXTRA_USERS_PARAMS += &quot;\
    useradd epiroc; \
    usermod -p &apos;$(openssl passwd -6 Epiroc24680)&apos; epiroc; \
    usermod -a -G wheel epiroc; \
    usermod -p &apos;$(openssl passwd -6 lucio13570)&apos; root \
    &quot;

update_sudoers() {
    sed -i &apos;s/# %sudo/%sudo/&apos; ${IMAGE_ROOTFS}/etc/sudoers
}

ROOTFS_POSTPROCESS_COMMAND += &quot;update_sudoers;&quot;


It&apos;s quite strange that throughout the compilation process, there were no errors, and even when intentionally modifying my custom recipes (changing &quot;inherit extausers&quot; to &quot;inherit extrauser&quot;), an error is still reported. This indicates that the .bb files have been successfully loaded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97473</commentid>
    <comment_count>1</comment_count>
    <who name="Eddy AUBINEAU">eddy.aubineau</who>
    <bug_when>2023-12-09 10:00:05 +0000</bug_when>
    <thetext>Hi Lucio,

Since you added your own layer its contents is being parsed (that&apos;s why the format / typo errors are reported), but it doesn&apos;t mean that its contents will be added to your image.

There is no custom recipe being added to your image. You can use IMAGE_INSTALL:append = &quot;custom-recipe&quot; or something similar to add it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97561</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-12-14 15:34:26 +0000</bug_when>
    <thetext>This sort of thing is best discussed on the email list until there&apos;s an indication that there is actually a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97575</commentid>
    <comment_count>3</comment_count>
    <who name="lucio.liu">lucio.liux</who>
    <bug_when>2023-12-15 07:23:30 +0000</bug_when>
    <thetext>OK</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>