From patchwork Sat Jun 18 12:41:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [0/6,V3] Share gcc work directories Date: Sat, 18 Jun 2011 12:41:30 -0000 From: Robert Yang X-Patchwork-Id: 6093 Message-Id: To: Changes of V3: 1) Use --with-headers to replace the: sed -i 's:^\([ ]*\)glibc_header_dir=\"${with_build_sysroot}/usr/include\": ... 2) Fix the build of gcc-cross-canadian 3) Fix gcc-crosssdk which make the source incompatible during its building. 4) Test "bitbake meta-toolchain", and also do run test for the pokysdk(unpack the toolchain to /opt, setup the env by sourcing environment-setup-armv5te-poky-linux-gnueabi, and build some pkgs out of poky, then use command file to check the binary file type. 5) Make sure that no gcc build would make the source incompatible, except gcc-cross_csl-arm-2008q1.bb, but I think this is fine, its BINV = "4.2.3", not 4.5.1 or 4.6.0. Thanks for Richard's great help. // Robert The following changes since commit 2163461ec94528ecf046a04edc5db3d2dd3a6b8b: systemtap: remove non-core COMPATIBLE_MACHINES (2011-06-16 22:14:06 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib robert/share_gcc http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/share_gcc Robert Yang (6): bitbake: share source directory Share gcc work directories gcc-4.5.1: share work directories gcc-4.6.0: share work directories gcc-crosssdk: share work directories gcc-cross-canadian: share work directories bitbake/lib/bb/build.py | 4 +- bitbake/lib/bb/cache.py | 3 + bitbake/lib/bb/runqueue.py | 10 +++ meta/recipes-devtools/gcc/gcc-4.5.1.inc | 1 + .../gcc-4.5.1/use-defaults.h-and-t-oe-in-B.patch | 57 ++++++++++++++ meta/recipes-devtools/gcc/gcc-4.6.0.inc | 1 + .../gcc-4.6.0/use-defaults.h-and-t-oe-in-B.patch | 80 ++++++++++++++++++++ meta/recipes-devtools/gcc/gcc-common.inc | 32 +++++++- meta/recipes-devtools/gcc/gcc-configure-common.inc | 33 ++++----- meta/recipes-devtools/gcc/gcc-configure-cross.inc | 4 +- meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 8 ++ meta/recipes-devtools/gcc/gcc-crosssdk.inc | 13 +++- 12 files changed, 220 insertions(+), 26 deletions(-) create mode 100644 meta/recipes-devtools/gcc/gcc-4.5.1/use-defaults.h-and-t-oe-in-B.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/use-defaults.h-and-t-oe-in-B.patch