<?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>4924</bug_id>
          
          <creation_ts>2013-07-26 08:23:06 +0000</creation_ts>
          <short_desc>Redundant directories and files in toolchain tarball</short_desc>
          <delta_ts>2013-07-26 19:19:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>ke.zou</cc>
    
    <cc>ning.zhang</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</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>34959</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-07-26 08:23:06 +0000</bug_when>
    <thetext>Toolchain location: http://autobuilder.yoctoproject.org/pub/nightly/20130724-2/toolchain

Git rev: master/67864ca79da08df752487a3a4e1a975546da123d

After using &quot;bitbake core-image-sato -c populate_sdk&quot; instead of &quot;bitbake meta-toolchain-gmae&quot;, I found the size of toochain tarball increased more than 100MB.

Here is the 20130724-2 build (using populate_sdk):
##################
poky-eglibc-x86_64-arm-toolchain-1.4+snapshot.sh         269M
poky-eglibc-x86_64-i586-toolchain-1.4+snapshot.sh        384M
poky-eglibc-x86_64-mips-toolchain-1.4+snapshot.sh        327M
poky-eglibc-x86_64-powerpc-toolchain-1.4+snapshot.sh     339M
poky-eglibc-x86_64-x86_64-toolchain-1.4+snapshot.sh      365M
#################

Here is the 20130717-2 build (using meta-toolchain-gmae):
#################
poky-eglibc-x86_64-arm-toolchain-gmae-1.4+snapshot-20130717.sh       155M
poky-eglibc-x86_64-i586-toolchain-gmae-1.4+snapshot-20130717.sh      212M
poky-eglibc-x86_64-mips-toolchain-gmae-1.4+snapshot-20130717.sh      155M
poky-eglibc-x86_64-powerpc-toolchain-gmae-1.4+snapshot-20130717.sh   161M
poky-eglibc-x86_64-x86_64-toolchain-gmae-1.4+snapshot-20130717.sh    164M
#################

The &quot;bitbake core-image-sato -c populate_sdk&quot; command copies the whole target rootfs to the toolchian directory:
###############
$ ls /opt/poky/1.4+snapshot/sysroots/i586-poky-linux/
bin  boot  dev  etc  home  lib  media  mnt  proc  run  sbin  sys  tmp  usr  var
###############

Most of these files are useless in host. Can we remove these redundant directories to reduce the size ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35007</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2013-07-26 19:19:49 +0000</bug_when>
    <thetext>Hi Yi,

This is meant to be this way.  If you choose to use the populate_sdk option to go with build toolchain, that means you want to have target image library files to go into your toolchain sysroot directory.  Otherwise, you can just build the toolchain and extract target image rootfs as your sysroot.  toolchain + sysroot is fundamental for cross development.  The gmae is legacy for including certain target libraries but it doesn&apos;t match your target image rootfs at all.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>