<?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>2487</bug_id>
          
          <creation_ts>2012-05-23 23:15:49 +0000</creation_ts>
          <short_desc>linux-korg recipes do not work with tar.gz sources</short_desc>
          <delta_ts>2012-07-03 20:46:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-tooling</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.3 M1</target_milestone>
          
          <blocked>2446</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Nitin Kamble">nitin.a.kamble</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>dvhart</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21562</commentid>
    <comment_count>0</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-05-23 23:15:49 +0000</bug_when>
    <thetext>Gets this error:
NOTE: package linux-korg-3.4-r0: task do_kernel_checkout: Started
ERROR: Function failed: do_kernel_checkout (see /srv/home/nitin/builds/build-x32/tmp/work/qemux86_64-poky-linux-gnux32/linux-korg-3.4-r0/temp/log.do_kernel_checkout.5960 for further information)
ERROR: Logfile of failure stored in: /srv/home/nitin/builds/build-x32/tmp/work/qemux86_64-poky-linux-gnux32/linux-korg-3.4-r0/temp/log.do_kernel_checkout.5960
Log data follows:
| ERROR: Function failed: do_kernel_checkout (see /srv/home/nitin/builds/build-x32/tmp/work/qemux86_64-poky-linux-gnux32/linux-korg-3.4-r0/temp/log.do_kernel_checkout.5960 for further information)
| fatal: Not a git repository (or any parent up to mount parent )
| Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
| fatal: Not a git repository (or any parent up to mount parent )
| Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
| Not checking out x32, it will be created later
| fatal: Not a git repository (or any parent up to mount parent )
| Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
NOTE: package linux-korg-3.4-r0: task do_kernel_checkout: Failed



$ cat linux-korg_3.4.bb

inherit kernel
require recipes-kernel/linux/linux-yocto.inc

KMACHINE = &quot;x32&quot;
YOCTO_KERNEL_META_DATA = &quot;&quot;

KBRANCH = &quot;${KMACHINE}&quot;
KMETA = &quot;meta&quot;

SRC_URI[md5sum] = &quot;146af0160fc7a60cf9acf44aec13482b&quot;
SRC_URI[sha256sum] = &quot;a797a15d0b6228381507c14ecf4eec4a6cc5c77cfd521ba3b3e1325e85b5b16d&quot;

SRC_URI = &quot;http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.4.tar.bz2 \
           file://defconfig \
           &quot;

S = &quot;${WORKDIR}/linux-3.4&quot;

LINUX_VERSION = &quot;3.4&quot;
LOCALCOUNT = &quot;0&quot;
LINUX_VERSION_EXTENSION ?= &quot;-yoctized-${LINUX_KERNEL_TYPE}&quot;
PR = &quot;r0&quot;
PV = &quot;${LINUX_VERSION}&quot;


# Functionality flags
KERNEL_REVISION_CHECKING = &quot;&quot;

# extra tasks
addtask kernel_link_vmlinux after do_compile before do_install
addtask validate_branches before do_patch after do_kernel_checkout
addtask kernel_configcheck after do_configure before do_compile</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21600</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-25 03:07:27 +0000</bug_when>
    <thetext>Bruce, can you look at this for 1.3 M1?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21651</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-05-28 02:57:33 +0000</bug_when>
    <thetext>There&apos;s no sense looking at this for 1.3. Anything supported by the
linux-yocto recipes works on git trees .. end of story. I have supported
tgz&apos;s in the past by creating a git repository our of the tree, etc, but
it adds a LOT of code complexity and it doesn&apos;t follow the workflow
we are promoting.

Why not just use the upstream git repository ? If we are talking about
saving the time of a clone, etc, then there are other approaches to take
first, before resorting to a tgz.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22334</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-06-19 12:20:09 +0000</bug_when>
    <thetext>Bruce, I thought we&apos;d talked about being able to extend a kernel with limited functionality from the kernel tooling such as the fragement management?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22336</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-06-19 12:54:45 +0000</bug_when>
    <thetext>We did discuss the limited kernel extension, but that doesn&apos;t include a 
tgz kernel at the moment. It&apos;s any git repository, which is what the 
liunux-yocto-custom recipe handles.

To extend it to tgz means restoring a lot of complexity which has been
removed over the years, and breaking the use case of git/git manipulations
in feature descriptions. The shallow clones, or other space saving ideas
are higher in the list of TODO items before tgz&apos;s.

It&apos;s like asking for Makefile based recipes instead of bitbake recipes ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22340</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-06-19 14:56:18 +0000</bug_when>
    <thetext>I&apos;ve added a new 1.3 feature to my &apos;bubble&apos; list to address this. It should
be simple enough to create a git repo, and normalize most of the tools
on that. I&apos;ll likely introduce it via the -dev layer, and then out after that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22344</commentid>
    <comment_count>6</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-06-19 16:02:46 +0000</bug_when>
    <thetext>So guys can we change the status of the bug?

I suggest reopening it and set with a later milestone.
Thank you,
Laurentiu</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22345</commentid>
    <comment_count>7</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-06-19 16:17:04 +0000</bug_when>
    <thetext>No. This bug is not a bug .. I&apos;ll open a feature request against 1.3, but
it may not make 1.4, since tgz&apos;s based building is not something to promote.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22765</commentid>
    <comment_count>8</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-07-03 20:46:38 +0000</bug_when>
    <thetext>Verified.
Bruce opened a feature request.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>