<?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>8136</bug_id>
          
          <creation_ts>2015-08-10 14:27:33 +0000</creation_ts>
          <short_desc>Extensible SDK: ability to generate target packages in SDK</short_desc>
          <delta_ts>2015-10-14 15:15:34 +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>devtools / tool chain</component>
          <version>1.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.9 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Kanevskiy">alexander.kanevskiy</reporter>
          <assigned_to name="Brendan Le Foll">brendan.le.foll</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>markus.lehtonen</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="Costin">costin.c.constantin</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>52948</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Kanevskiy">alexander.kanevskiy</who>
    <bug_when>2015-08-10 14:27:33 +0000</bug_when>
    <thetext>For developer story, by using SDK environment, developer should be able to produce binary package suitable to be published into binary package feed or installed on device.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54627</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-09-24 15:13:32 +0000</bug_when>
    <thetext>This was implemented in master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7b1f670ca385c33db3687f07d305e3a1510cf181</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55302</commentid>
    <comment_count>2</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-10-14 15:15:34 +0000</bug_when>
    <thetext>Hello,

Tested on master with d302c98822efe2cb78a63b620aed1b94b4ed4a68 on Ubuntu 15.04 os.

Steps performed:
1) bitbake -c populate_sdk_ext core-image-minimal
2) cd tmp/deploy/sdk/   and run the sdk generating script:
e.g. ./poky-glibc-x86_64-core-image-minimal-core2-64-toolchain-ext-2.0.sh
3) cd to resulting SDK directory and export the environment:
cd /home/cosscat/poky_sdk
. ./environment-setup-core2-64-poky-linux
4) create a directory with source code in it and use devtool to create a recipe:
cosscat@ubnt:~/poky_sdk/software$ ls
hellofunc.c  hellomake.c  hellomake.h  makefile
devtool add test ./software/
5) edit the resulting recipe:
cosscat@ubnt:~/poky_sdk/workspace/recipes/test$ pwd
/home/cosscat/poky_sdk/workspace/recipes/test
vi test.bb
...
do_compile () {
        # Specify compilation commands here
        make
}
do_install() {
    install -d ${D}/${bindir}
    install -m 0755 hello ${D}/${bindir}
}
...
6) perform the packaging with devtool:
devtool package test
7) verify the results:
cosscat@ubnt:~/poky_sdk/tmp/deploy/rpm/core2_64$ ls test*
test-1.0-r0.core2_64.rpm  test-dbg-1.0-r0.core2_64.rpm  test-dev-1.0-r0.core2_64.rpm
cosscat@ubnt:~/poky_sdk/tmp/deploy/rpm/core2_64$ rpm -qlp test-1.0-r0.core2_64.rpm
/usr
/usr/bin
/usr/bin/hellomake


Marking as verified</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>