Chris Larson [Wed, 26 Aug 2009 10:59:25 +0000 (03:59 -0700)]
gitver.bbclass: add initial version.
This provides a GITVER variable which is a (fairly) sane version, for use in
${PV}, extracted from the ${S} git checkout, assuming it is one. This is most
useful in concert with srctree.bbclass.
Chris Larson [Wed, 26 Aug 2009 10:58:24 +0000 (03:58 -0700)]
srctree.bbclass: add initial version.
This enables operation inside of an existing source tree for a project, rather
than using the fetch/unpack/patch idiom.
By default, it expects that you're keeping the recipe(s) inside the
aforementioned source tree, but you could override S to point at an external
directory and place the recipes in a normal collection/overlay, if you so
chose.
It also provides some convenience python functions for assembling your
do_clean, if you want to leverage things like 'git clean' to simplify the
operation.
libmusicbrainz: Add version 3.0.2 and fix link error
With gcc 4.3 stdc++ symbols leak into the library. One way to
solve it is to use a custom linker script, another one is to
just point gcc to the c++ library. The second option is used
here right now.
kernel.bbclass: Set EXTRA_OEMAKE to null for kernel
Currently the only thing in EXTRA_OEMAKE is '-e MAKEFLAGS='. We don't
want to overide the kernel's Makefile variables from the environment.
It caused the passed -j<N> parameter from PARALLEL_MAKE to be ignored.
Jeremy Puhlman [Fri, 3 Apr 2009 22:49:06 +0000 (15:49 -0700)]
bitbake.conf: Add export for cross NM.
When not providing a cross nm, the configure for libtool-cross falls back to
the system nm. This can lead to empty "global_symbol_pipe" and
"global_symbol_to_cdeclvarble" variables in the generated libtool script.
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Holger Hans Peter Freyther <zecke@selfish.org>
Khem Raj [Mon, 24 Aug 2009 02:24:57 +0000 (19:24 -0700)]
base.bbclass: Replace os.system with subprocess call.
Often gzip is reporting broken pipe errors with do_unpack of
tar.gz files.
If you use the commands described above to extract a tar.gz file, gzip
sometimes emits a Broken pipe error message. This can safely be ignored
if tar extracted all files without any other error message.
We do not let python install its SIGPIPE handler and use subprocess call
to invoke the command.
This is based on the following python bug report.
http://bugs.python.org/issue1652
Khem Raj [Sun, 23 Aug 2009 07:28:51 +0000 (00:28 -0700)]
u-boot_git.bb: Dont reset machine SRC_URIs by using common SRC_URI.
We have this SRC_URI which forces bitbake to abandon the machine
specific SRC_URI override if it happens to be before this in
parse order. Anyway this SRC_URI is not needed too.
Michael Smith [Wed, 6 May 2009 03:38:35 +0000 (03:38 +0000)]
kernel.bbclass: stage more include files for x86 in 2.6.27+
Some packages include <linux/types.h>, which requires <asm/types.h>.
Supplement b6220af33a70d96345dea130005ce842eeadfdf5 to copy files
from arch/x86/include/asm to include/asm-x86.
Signed-off-by: Michael Smith <msmith@cbnco.com> Acked-by: Roman I Khimov <khimov@altell.ru>
Michael Smith [Wed, 12 Aug 2009 04:24:22 +0000 (00:24 -0400)]
gcc: fix libstdc/libgcc packaging on x86_64
do_install was looking under ${D}/some long cross path/*/lib;
needs to be lib64 on x86_64. On x86_64 base_libdir would be set to
/lib64, so we can go by that.
Bump INC_PR for recent gccs: 4.1.2, 4.2.[34], 4.3.[34], 4.4.1.
Jeremy Puhlman [Sun, 5 Apr 2009 14:08:51 +0000 (07:08 -0700)]
wireless-tools.inc: Change first use of SRC_URI from += to =
Since wireless-tools.inc is included at the top of the recipe it should clear
SRC_URI.
Without this, SRC_URI contains the recipe file, which in turn gets
installed in to the work area. When using BBPATH to set BBFILES,
this causes an error on subsequent parsing due to wireless-tools.inc
does not get copied with the recipe and is not found.
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Chris Larson <clarson@mvista.com>
Jeremy Puhlman [Fri, 17 Apr 2009 23:02:58 +0000 (16:02 -0700)]
gettext: Correct autoconf-lib-link code to defer to the compiler's library search paths.
Ultimately we should have --with-<lib> and --without-<lib> for everything,
however if a recipie does not the suspect code wanders through the host system
searching for a working library. OE takes great pains to set that all up, lets
let it decide the right library.
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Chris Larson <clarson@mvista.com>
Chris Larson [Thu, 28 May 2009 22:27:31 +0000 (15:27 -0700)]
src_distribute*.bbclass: cleanup, revamp parts, distribute all sources.
- Kill the big shell function with the case statement used in _local in
favor of a set of bitbake variables, with the appropriate one selected
as SRC_DISTRIBUTECOMMAND.
- Add and use SRC_DISTRIBUTE_DLONLY to toggle distribution of all sources
versus just those downloaded to DL_DIR. This variable expects to be set
to an integer, anything but 0 will enable dlonly operation. This is
disabled by default.
- Add a more sanely named distribute_sources_all, and make distsrcall
depend on it, for compatibility.
- By default, distributes the sources into
${SRC_DISTRIBUTEDIR}/${LIC}/${PN}/.
- Move some _local specific bits, like use of SRC_DISTRIBUTEDIR, out of
the main class.
- Set a "LIC" var along with the "SRC" when running SRC_DISTRIBUTECOMMAND,
to facilitate the above.
Chris Larson [Thu, 18 Jun 2009 19:41:50 +0000 (12:41 -0700)]
package_rpm: don't run against native/cross recipes, explicitly
In the past, it only avoided adding the rpm-native/fakeroot-native deps if
PACKAGES is empty, but unfortunately some native recipes have PACKAGES set to
non-empty, so let's explicitly check for native/cross.
Chris Larson [Wed, 19 Aug 2009 21:49:02 +0000 (14:49 -0700)]
collections.inc: sync with MVL6.
- Gather info on the collections into COLLECTIONSINFO.
- Store the collection info for the current file in COLLECTIONINFO.
- Add has_collection() and get_collection() utility functions.
- Make collection_unpack pass back the collection name.
- Just use != rather than symmetric_difference on the set comparision.
- Set PYTHONPATH for the bitbake re-execution.
- Make the 'Using existing' message use bb.debug.