<?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>10656</bug_id>
          
          <creation_ts>2016-11-14 23:11:51 +0000</creation_ts>
          <short_desc>Support for out-of-tree development of Zephyr images</short_desc>
          <delta_ts>2017-01-17 14:04:38 +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>Other YP Layers</product>
          <component>meta-zephyr</component>
          <version>2.3</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>enhancement</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          <dependson>10655</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</reporter>
          <assigned_to name="Juro Bystricky">juro.bystricky</assigned_to>
          <cc>jose.perez.carranza</cc>
          
          <qa_contact name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68298</commentid>
    <comment_count>0</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-11-14 23:11:51 +0000</bug_when>
    <thetext>Provide a way to build a Zephyr image using out-of-tree source code layout.
Basically, support a very common use case when user source repo is different and independent from the Zephyr kernel source repo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69139</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-12-14 21:02:23 +0000</bug_when>
    <thetext>meta-zephyr with all recipes is here:
https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=juro/meta-zephyr

I created a recipe that build out-of-tree Zephyr image:
https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=juro/meta-zephyr&amp;id=bd9f93c322370fca2eebe0062d91e2d6572e35bd

&quot;zephyr-getchar_git.bb&quot;

It DEPENDS on another package, created by &quot;zephyr-kernel-src&quot;.

https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=juro/meta-zephyr&amp;id=708cb54f812817b1471163b78cffd6119cd296ab

To build the image:
download meta-zephyr and add to conf/bblayers.conf
local.conf: DISTRO=&quot;zephyr&quot;

$ MACHINE=qemuarm bitbake zephyr-getchar

It is possible to run the created Zephyr image in qemu:
./tmp/sysroots/x86_64-linux/usr/bin/qemu-system-arm -kernel ./tmp/deploy/images/qemuarm/zephyr-getchar.elf -cpu cortex-m3 -machine lm3s6965evb -nographic -vga none

The image prints out hex number of a key pressed:
char: [0x00000062] b
char: [0x0000006f] o
char: [0x0000007a] z
char: [0x0000006f] o
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69496</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-01-04 19:49:41 +0000</bug_when>
    <thetext>zephyr-getchar_git: sample program

located in 
git@git.yoctoproject.org/meta-zephyr</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>