]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
13 years agosite/powerpc-common: remove the incorrect dlopen default setting
Yu Ke [Mon, 30 May 2011 02:10:01 +0000 (10:10 +0800)]
site/powerpc-common: remove the incorrect dlopen default setting

These two setting for dlopen is not correct. dlopen is not available in libc,
instead it is provided by libdl. so the setting should not be "yes" by default.

This fixes [YOCTO #736] [YOCTO #737]

Thanks Richard for pointing out the root cause.

CC: Richard Purdie <richard.purdie@linuxfoundation.org>
CC: Philip Balister <philip@balister.org>
CC: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Yu Ke <ke.yu@intel.com>
13 years agopackage.bbclass,prserv.bbclass: Compare USE_PR_SERV with "1" or "0"
Khem Raj [Sat, 28 May 2011 01:27:47 +0000 (18:27 -0700)]
package.bbclass,prserv.bbclass: Compare USE_PR_SERV with "1" or "0"

Value of USE_PR_SERV is either "1" or "0" looking at
settings in bitbake.conf
USE_PR_SERV = "${@[1,0][(bb.data.getVar('PRSERV_HOST',d,1) is None) or (bb.data.getVar('PRSERV_PORT',d,1) is None)]}"
So we compare the strings

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agouclibc: Add disabled COMPILE_IN_THUMB_MODE to uClibc.machine for all ARM configurations
Khem Raj [Sat, 28 May 2011 02:39:26 +0000 (19:39 -0700)]
uclibc: Add disabled COMPILE_IN_THUMB_MODE to uClibc.machine for all ARM configurations

This entry need to exist so that it can be manipulated later
to decide if uclibc is to be compiled in thumb mode or arm mode

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agolicense.bbclass: Infinite recursion of or nodes
Beth Flanagan [Sat, 28 May 2011 23:39:35 +0000 (16:39 -0700)]
license.bbclass: Infinite recursion of or nodes

This fixes two bugs. When populate_lic was hitting | it was going
into an infinite recursion of the node.

Also, some LICENSE fields may start with "(". We want to avoid
invalid python syntax here, so we strip out the whitespace.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
13 years agolicense.bbclass: Sane Parsing of licenses
Beth Flanagan [Wed, 25 May 2011 20:58:35 +0000 (13:58 -0700)]
license.bbclass: Sane Parsing of licenses

This is a first pass at sane license parsing, using python
abstract syntax trees.

A few notes on this since ast is not generally used. I massage
the LICENSE field to be more pythonesque and then create an ast.

I then dump the ast and using a LicenseVisitor class, recurse
through the tree, looking for licenses. I then copy and link.

It's cleaner, allows for easier addition of logic and while it
takes slightly more CPU, it's also slightly faster in initial
small scale tests.

It doesn't recognize the '+' or '*' modifiers to the licenses yet
nor does it know what to do with bitors (|), since I'm not even
sure what to do with them.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
13 years agouclibc_git.bb: Fix patch path in SRC_URI
Khem Raj [Fri, 27 May 2011 17:28:08 +0000 (10:28 -0700)]
uclibc_git.bb: Fix patch path in SRC_URI

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agogupnp-tools: Add gupnp-av to DEPENDS
Saul Wold [Fri, 27 May 2011 18:26:43 +0000 (11:26 -0700)]
gupnp-tools: Add gupnp-av to DEPENDS

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoLicense Field Cleanup: Non-standard field names
Beth Flanagan [Wed, 25 May 2011 21:05:02 +0000 (14:05 -0700)]
License Field Cleanup: Non-standard field names

I've cleaned up some odd license fields, fixed some license
names and corrected some incorrect licenses. LICENSE really needs
a pass through by the maintainers as some of the licensing is
incorrect.

Also, every license with Artistic should be gone through and noted as
which version of Artistic.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
13 years agocommon-licenses: Adding new licenses and renaming
Beth Flanagan [Wed, 25 May 2011 20:47:52 +0000 (13:47 -0700)]
common-licenses: Adding new licenses and renaming

I'm adding full common licenses to the common license directory.

These licenses are taken from the SPDX project or the OSI license
repository. They conform to the SPDX naming convention and will be
used by the new license.bbclass license parser in order to maintain
some sort of internal standard for license naming.

Going forward, we should have a bigger conversation about the LICENSE
field and standardizing that to conform to this naming standard.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
13 years agoclasses/package_xxx.class: Use PKGE/PKGV/PKGR.
Lianhao Lu [Thu, 19 May 2011 02:17:43 +0000 (10:17 +0800)]
classes/package_xxx.class: Use PKGE/PKGV/PKGR.

Use PKGE/PKGV/PKGR to build various package feed in tasks of pacakge_write_xxx.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
13 years agoclasses/package(prserv).bbclass: Get PRAUTO and use PKGV/PKGR.
Lianhao Lu [Wed, 18 May 2011 13:15:01 +0000 (21:15 +0800)]
classes/package(prserv).bbclass: Get PRAUTO and use PKGV/PKGR.

1. Added package_get_auto_pr to PACKAGEFUNCS to get the auto
incremented value(PRAUTO) from remote PR service.

2. use PKGV/PKGR for pkgdata which will be used by package_write_xxx.

3. Added supporting functions in prserv.bbclass.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
13 years agoconf/bitbake.conf: Added variables for PR service.
Lianhao Lu [Fri, 27 May 2011 06:31:46 +0000 (14:31 +0800)]
conf/bitbake.conf: Added variables for PR service.

Added following variables for PR service:

USE_PR_SERV: flag of whether to use the network PR service
PRAUTOINX: search index for the network PR service
PKGE/PKGV/PKGR: epoch, version and revision used in package feed.
EXTENDPKGV: full package version string used in package relationships.

For the following recipes, replace EXTENDPV with EXTENDPKGV:

udev, xcb, xorg-proto, util-macros and linux-libc-headers

then removed the unused EXTENDPV and EXTENDPEVER variables

Users should use EXTENDPKGV instead for package feed generation.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoshared-mime-info_0.90.bb: Fix more parallel build issues
Khem Raj [Wed, 25 May 2011 22:56:27 +0000 (15:56 -0700)]
shared-mime-info_0.90.bb: Fix more parallel build issues

While building for beagleboard with -j4 I ended up failures in
generating and checking xml files. This is a backport from upstream that
fixes the issue.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agouclibc.inc: Set COMPILE_IN_THUMB_MODE in .config if ARM_INSTRUCTION_SET != arm
Khem Raj [Fri, 27 May 2011 05:36:11 +0000 (22:36 -0700)]
uclibc.inc: Set COMPILE_IN_THUMB_MODE in .config if ARM_INSTRUCTION_SET != arm

This will configure uclibc to be compiled in thumb/thumb2 mode

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agouclibc_git.bb: Fix compilation on arm when using thumb instruction set
Khem Raj [Fri, 27 May 2011 05:42:51 +0000 (22:42 -0700)]
uclibc_git.bb: Fix compilation on arm when using thumb instruction set

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agoutils.bbclass: make FILESEXTRAPATHS colon delimited
Darren Hart [Wed, 25 May 2011 23:05:17 +0000 (16:05 -0700)]
utils.bbclass: make FILESEXTRAPATHS colon delimited

Fixes [YOCTO 1102]

Path variables are typically : delimited. White space is allowed in paths, so
is not a good choice for separating paths. Currently utils.bbclass performs the
following:

    extrapaths = (bb.data.getVar("FILESEXTRAPATHS", d, True) or "").split()

This splits FILESEXTRAPATHS on whitespace. It later splits overrides on : and
reassembles them all together as : delimited.

There is only one user of FILESEXTRAPATHS in oe-core (qt4-tools-native, which
uses : anyway) and none in oe.

Change the split() in utils.bbclass to split on : instead of whitespace. When
splitting on a defined string (":") we must be careful to handle the empty
string case which returns [''] instead of [].

Tested building qt4-tools-native and core-image-minimal for surgarbay from
meta-intel with a couple extra layers with FILESEXTRAPATHS modifications added.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agou-boot: rename u-boot_git.bb to u-boot_${PV}.bb
Darren Hart [Thu, 26 May 2011 03:47:05 +0000 (20:47 -0700)]
u-boot: rename u-boot_git.bb to u-boot_${PV}.bb

In order to facilitate reuse of the oe-core u-boot recipe, there needs to be
some assurance that the oe-core version won't change without a clear indicator
to people extending it.

By renaming the recipe to include its version string instead of "git", BSP
layers can extend a specific base version of u-boot, ie.
u-boot_2011.03.bbappend. When 2011.06 becomes available, we can create that file
without instantly breaking all the BSPs depending on oe-core version of the
recipe.

As a matter of policy I would recommend we not carry more than 2 versioned
u-boot recipess at any given time. This will provide BSP layers time to migrate
to the newer version, without cluttering oe-core with numerous stale versions of
u-boot. We may decide later to resurrect u-boot_git.bb as an AUTOREV recipe to
faciliate upstream development on u-boot in the oe environment.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Koen Kooi <koen@dominion.thruhere.net>
Cc: Jason Kridner <jkridner@beagleboard.org>
13 years agou-boot: remove UBOOT_MACHINE and COMPATIBLE_MACHINES
Darren Hart [Tue, 17 May 2011 21:44:45 +0000 (14:44 -0700)]
u-boot: remove UBOOT_MACHINE and COMPATIBLE_MACHINES

oe-core does not define any machines, so it does not make sense to
add machine specific information in the oe-core u-boot recipe and
infrastructure. Also note that COMPATIBLE_MACHINES is not easily extended due to
its regex syntax: "(machine_a|machine_b)", making it difficult to extend the
u-boot recipe in bbappend files without resorting to machine specific overrides.

Remove COMPATIBLE_MACHINES and the default UBOOT_MACHINE from the recipe and
insert some anonymous python into u-boot.inc to raise SkipPackage if
UBOOT_MACHINE is not set (this ensures 'world' still works for machines that
can't build u-boot).

UBOOT_MACHINE must now be specified in each machine config that requires u-boot.
This is an improvement over requiring machine specific overrides in every BSP
layer's u-boot_git.bbappend file. For example, a beagleboard machine config
currently contains:

UBOOT_ENTRYPOINT = "0x80008000"
UBOOT_LOADADDRESS = "0x80008000"

With this change, it must now contain:

UBOOT_MACHINE = "omap3_beagle_config"
UBOOT_ENTRYPOINT = "0x80008000"
UBOOT_LOADADDRESS = "0x80008000"

So long as the SRC_URI in the base recipe can build a working u-boot for a given
machine, there is no need to create a u-boot_git.bbappend file. If additional
patches are deemed necessary, a BSP layer creates a u-boot_git.bbappend file and
extends the SRC_URI to include general or machine specific backports.

Note: I used bb.note() instead of bb.debug() to ensure the message at least
      makes it to the console. From what I could gather, bb.debug() doesn't
      go anywhere during recipe parsing.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Koen Kooi <koen@dominion.thruhere.net>
Cc: Jason Kridner <jkridner@beagleboard.org>
Cc: Chris Larson <clarson@kergoth.com>
13 years agodbus 1.4.1: create UUIDDIR in postinst
Koen Kooi [Fri, 27 May 2011 14:41:48 +0000 (16:41 +0200)]
dbus 1.4.1: create UUIDDIR in postinst

This fixes dbus usage in non-sysV init systems. Volatiles aren't needed in systemd land, since /run is tmpfs and the dbus units take care of all this.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoxorg.conf: update keyboard config with evdev
Yu Ke [Fri, 27 May 2011 07:40:59 +0000 (15:40 +0800)]
xorg.conf: update keyboard config with evdev

with xserver 1.10, the evdev driver is used by default, so update the
keyboard config entry in xorg.conf accordingly.

Fix [YOCTO #1108]

Signed-off-by: Yu Ke <ke.yu@intel.com>
13 years agorpm: fix fprint pointer issue
Qing He [Fri, 27 May 2011 09:03:18 +0000 (17:03 +0800)]
rpm: fix fprint pointer issue

[YOCTO #1030]

Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolibcap: add native BBCLASSEXTEND to fix gnutls-native after ffc32d6436bcd11bd9a431aff...
Martin Jansa [Fri, 27 May 2011 08:59:09 +0000 (10:59 +0200)]
libcap: add native BBCLASSEXTEND to fix gnutls-native after ffc32d6436bcd11bd9a431affb9d2508fdb3992e

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoavahi: enable systemd support, but package systemd files seperately
Koen Kooi [Fri, 27 May 2011 09:32:37 +0000 (11:32 +0200)]
avahi: enable systemd support, but package systemd files seperately

Systemd support in avahi only affects 'make install', so no changes for sysvinit based systems

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agotcmode-default: workaround for gcc 4.6.0 failure on beagleboard
Nitin A Kamble [Thu, 26 May 2011 23:26:16 +0000 (16:26 -0700)]
tcmode-default: workaround for gcc 4.6.0 failure on beagleboard

mesa-xlib: workaround gcc 4.6.0 ICE

Fixes this bug [YOCTO #1105]

Working around this issue withg gcc 4.6.0 for beagleboard machine (armv7)

ccache arm-poky-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon
-mfloat-abi=softfp -fno-tree-vectorize
--sysroot=/build_disk/poky_build/build0/tmp/sysroots/beagleboard -c -I.
-I../../../../src/gallium/include -I../../../../src/gallium/auxiliary
-I../../../../src/gallium/drivers
-I../../../../src/gallium/drivers/svga/include -O2 -pipe -g
-feliminate-unused-debug-types -Wall -Wmissing-prototypes -std=c99 -ffast-math
-fvisibility=hidden -fno-strict-aliasing -fPIC -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DUSE_XSHM -std=gnu99 -fvisibility=hidden -DHAVE_STDINT_H
-DHAVE_SYS_TYPES_H svga_tgsi_insn.c -o svga_tgsi_insn.o
svga_tgsi_insn.c: In function 'svga_shader_emit_instructions':
svga_tgsi_insn.c:2969:1: internal compiler error: in push_minipool_fix, at
config/arm/arm.c:12084
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [svga_tgsi_insn.o] Error 1

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agorm_work: keep all sigdata files in stamps dir
Martin Jansa [Thu, 26 May 2011 09:31:35 +0000 (11:31 +0200)]
rm_work: keep all sigdata files in stamps dir

* this makes fix for [YOCTO #1074] in bitbake 139b8a625818225c358a1b8363518d7ed6913188
  much more usefull for people using rm_work

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
13 years agoRevert "createrepo: Update to 0.9.9"
Saul Wold [Thu, 26 May 2011 19:02:30 +0000 (12:02 -0700)]
Revert "createrepo: Update to 0.9.9"

This was just the wrong update to go to, it was not fully vetted
and contains yum requirements which is not a direction we are moving
in.

This reverts commit 7576eba58cdfebf0606623c25ae969ef52774099.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agognutls: Add libcap to DEPENDS
Saul Wold [Thu, 26 May 2011 18:41:25 +0000 (11:41 -0700)]
gnutls: Add libcap to DEPENDS

Setup INC_PR for PR bumps

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agobitbake.conf: change IMAGE_ROOTFS_EXTRA_SPACE to soft (?=) default
Saul Wold [Thu, 26 May 2011 18:32:06 +0000 (11:32 -0700)]
bitbake.conf: change IMAGE_ROOTFS_EXTRA_SPACE to soft (?=) default

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoconsole-tools: use u-a also for fgconsole otherwise it collides with busybox
Martin Jansa [Thu, 26 May 2011 21:04:13 +0000 (23:04 +0200)]
console-tools: use u-a also for fgconsole otherwise it collides with busybox

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodbus: Fix commit typo, I mixed the patch versions up
Richard Purdie [Thu, 26 May 2011 23:29:25 +0000 (00:29 +0100)]
dbus: Fix commit typo, I mixed the patch versions up

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agox11-common: fix dbus-launch RDEPENDS
Koen Kooi [Thu, 26 May 2011 19:42:24 +0000 (21:42 +0200)]
x11-common: fix dbus-launch RDEPENDS

/usr/bin/dbus-launch is in the dbus-x11 packages, the dbus-launch package doesn't exist

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodbus: clean up dbus-x11 packaging
Koen Kooi [Thu, 26 May 2011 19:39:32 +0000 (21:39 +0200)]
dbus: clean up dbus-x11 packaging

Martin Jansa spotted some differences with OE dev, which this commit fixes:

 * dbus-launch is mentioned twice in FILES
 * dbus-x11 should drag in dbus-1

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodbus 1.4.1: enable systemd support, but package systemd files seperately
Koen Kooi [Thu, 26 May 2011 09:09:13 +0000 (11:09 +0200)]
dbus 1.4.1: enable systemd support, but package systemd files seperately

Systemd support in dbus only affects 'make install', so no changes for sysvinit based systems

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agox11-common 0.1: add runtime dep on dbus-x11
Koen Kooi [Thu, 26 May 2011 09:00:40 +0000 (11:00 +0200)]
x11-common 0.1: add runtime dep on dbus-x11

dbus-launch moved into the dbus-x11 packages, so we need to drag it in.

Also reorder fields to better fit with the styleguide

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoqemu-config: add runtime dep on dbus-x11
Koen Kooi [Thu, 26 May 2011 09:00:39 +0000 (11:00 +0200)]
qemu-config: add runtime dep on dbus-x11

dbus-launch moved into the dbus-x11 packages, so we need to drag it in.

Also reorder fields to better fit with the styleguide

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodbus: split X11 dependant dbus-launch into its own subpackage
Koen Kooi [Thu, 26 May 2011 09:00:38 +0000 (11:00 +0200)]
dbus: split X11 dependant dbus-launch into its own subpackage

This makes dbus usable in non-X enviroments like QT/e

>From the original commit in OE .dev:

commit 8e25448fb01b6fa6ea3a86f9327f080cd753dfbc
Author: John Lee <john_lee@openmoko.org>
Date:   Fri Sep 5 11:37:39 2008 +0000

    dbus: enable x support and put dbus-launch into new package dbus-x11
    * Enable x support only add rdepends to dbus-launch.  Make it a
      seperate package so other packages like dbus does not rdepend on
      libx11.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobinutils: Add missing dependency on zlib-native
Richard Purdie [Wed, 25 May 2011 22:51:57 +0000 (23:51 +0100)]
binutils: Add missing dependency on zlib-native

Without this, compiler errors such as:

configure:33440: i586-poky-linux-gcc -march=i586 --sysroot=/media/build2/builds/rptest/b2/tmp/sysroots/qemux86 -o conftest -D_REENTRANT  -Wl,-O1  -Wl,--as-needed conftest.c -lpthread >&5
/media/build2/builds/rptest/b2/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.0/as: /media/build2/builds/rptest/b2/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../../usr/lib/libz.so.1: no version information available (required by /media/build2/builds/rptest/b2/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.0/as)
/media/build2/builds/rptest/b2/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.0/ld: /media/build2/builds/rptest/b2/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../../usr/lib/libz.so.1: no version information available (required by /media/build2/builds/rptest/b2/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.0/ld)

can be see. This is due to the compiler being built against the system
zlib, before zlib-native is built and in the sysroot. Once that has been
built it can confuse the linker depending on the relative library versions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopython-2.6.6: py_package_preprocess should change Makefile only in PKGD not D
Martin Jansa [Wed, 25 May 2011 12:40:05 +0000 (14:40 +0200)]
python-2.6.6: py_package_preprocess should change Makefile only in PKGD not D

* PACKAGEFUNCS ?= "perform_packagecopy \
                ${PACKAGE_PREPROCESS_FUNCS} \
  our py_package_preprocess is called after perform_packagecopy which does copy D to PKGD
  so we change it to target version in D (image/) before populating sysroot (sysroot-destdir/)
  while keeping Makefile.sysroot version in PKGD which was created before calling
  py_package_preprocess, so both package for runtime and sysroot end wrong

* I haven't seen this problem on faster builder, I guess because do_package and do_populate_sysroot
  can run in paralell and I was lucky that do_populate_sysroot finished before py_package_preprocess
  was started, but if you build python step by step -c package first you should see it every time

* here is proof that with PKGD it works better:
  $ bitbake -c cleanall python
  $ bitbake -c install python
  $ grep LIBDIR= \
    ./packages-split/python-distutils/usr/lib/python2.6/config/Makefile \
    ./package/usr/lib/python2.6/config/Makefile \
    ./sysroot-destdir/usr/lib/python2.6/config/Makefile \
    ./image/usr/lib/python2.6/config/Makefile \
    ./Python-2.6.6/Makefile \
    ~/shr-core/tmp/sysroots/om-gta02/usr/lib/python2.6/config/Makefile
  grep: ./packages-split/python-distutils/usr/lib/python2.6/config/Makefile: No such file or directory
  grep: ./package/usr/lib/python2.6/config/Makefile: No such file or directory
  grep: ./sysroot-destdir/usr/lib/python2.6/config/Makefile: No such file or directory
  ./image/usr/lib/python2.6/config/Makefile:LIBDIR=               /OE/shr-core/tmp/sysroots/om-gta02/usr/lib
  ./Python-2.6.6/Makefile:LIBDIR=         /usr/lib
  /OE/shr-core/tmp/sysroots/om-gta02/usr/lib/python2.6/config/Makefile:LIBDIR=            /OE/shr-core/tmp/sysroots/om-gta02/usr/lib

  $ bitbake -c package python
  $ grep LIBDIR= \
    ./packages-split/python-distutils/usr/lib/python2.6/config/Makefile \
    ./package/usr/lib/python2.6/config/Makefile \
    ./sysroot-destdir/usr/lib/python2.6/config/Makefile \
    ./image/usr/lib/python2.6/config/Makefile \
    ./Python-2.6.6/Makefile \
    ~/shr-core/tmp/sysroots/om-gta02/usr/lib/python2.6/config/Makefile
  ./packages-split/python-distutils/usr/lib/python2.6/config/Makefile:LIBDIR=             /usr/lib
  ./package/usr/lib/python2.6/config/Makefile:LIBDIR=             /usr/lib
  grep: ./sysroot-destdir/usr/lib/python2.6/config/Makefile: No such file or directory
  ./image/usr/lib/python2.6/config/Makefile:LIBDIR=               /OE/shr-core/tmp/sysroots/om-gta02/usr/lib
  ./Python-2.6.6/Makefile:LIBDIR=         /usr/lib
  /OE/shr-core/tmp/sysroots/om-gta02/usr/lib/python2.6/config/Makefile:LIBDIR=            /OE/shr-core/tmp/sysroots/om-gta02/usr/lib

  $ bitbake -c package python
  $ grep LIBDIR= \
    ./packages-split/python-distutils/usr/lib/python2.6/config/Makefile \
    ./package/usr/lib/python2.6/config/Makefile \
    ./sysroot-destdir/usr/lib/python2.6/config/Makefile \
    ./image/usr/lib/python2.6/config/Makefile \
    ./Python-2.6.6/Makefile \
    ~/shr-core/tmp/sysroots/om-gta02/usr/lib/python2.6/config/Makefile
  ./packages-split/python-distutils/usr/lib/python2.6/config/Makefile:LIBDIR=             /usr/lib
  ./package/usr/lib/python2.6/config/Makefile:LIBDIR=             /usr/lib
  ./sysroot-destdir/usr/lib/python2.6/config/Makefile:LIBDIR=             /OE/shr-core/tmp/sysroots/om-gta02/usr/lib
  ./image/usr/lib/python2.6/config/Makefile:LIBDIR=               /OE/shr-core/tmp/sysroots/om-gta02/usr/lib
  ./Python-2.6.6/Makefile:LIBDIR=         /usr/lib
  /OE/shr-core/tmp/sysroots/om-gta02/usr/lib/python2.6/config/Makefile:LIBDIR=            /OE/shr-core/tmp/sysroots/om-gta02/usr/lib

* without this patch we have /usr/lib/ in image/sysroot-destdir and SYSROOT_LIBDIR in package/packages-split
  $ grep LIBDIR= \
    ./packages-split/python-distutils/usr/lib/python2.6/config/Makefile \
    ./package/usr/lib/python2.6/config/Makefile \
    ./sysroot-destdir/usr/lib/python2.6/config/Makefile \
    ./image/usr/lib/python2.6/config/Makefile \
    ./Python-2.6.6/Makefile \
    ~/shr-core/tmp/sysroots/om-gta02/usr/lib/python2.6/config/Makefile
  ./packages-split/python-distutils/usr/lib/python2.6/config/Makefile:LIBDIR=             /OE/shr-core/tmp/sysroots/om-gta02/usr/lib
  ./package/usr/lib/python2.6/config/Makefile:LIBDIR=             /OE/shr-core/tmp/sysroots/om-gta02/usr/lib
  ./sysroot-destdir/usr/lib/python2.6/config/Makefile:LIBDIR=             /usr/lib
  ./image/usr/lib/python2.6/config/Makefile:LIBDIR=               /usr/lib
  ./Python-2.6.6/Makefile:LIBDIR=         /usr/lib
  /OE/shr-core/tmp/sysroots/om-gta02/usr/lib/python2.6/config/Makefile:LIBDIR=            /usr/lib

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
13 years agorootfs_ipk: issue a diagnostic if rootfs is declared read-only and not all maintainer...
Phil Blundell [Tue, 24 May 2011 14:49:10 +0000 (15:49 +0100)]
rootfs_ipk: issue a diagnostic if rootfs is declared read-only and not all maintainer scripts could be applied offline

Signed-off-by: Phil Blundell <philb@gnu.org>
13 years agoimage_types: add IMAGE_ROOTFS_EXTRA_SPACE
Saul Wold [Tue, 24 May 2011 06:22:41 +0000 (23:22 -0700)]
image_types: add IMAGE_ROOTFS_EXTRA_SPACE

[YOCTO #886]

This address 2 needs after the IMAGE_ROOTFS_SIZE is cleaned up, by
removing the _ext2/3 overrides it allows for a cleaner override
using IMAGE_ROOTFS_SIZE to create a large rootfs, or by setting the
IMAGE_ROOTFS_EXTRA_SPACE, will allow for extra space allocated in Kilobytes
above the base size (determined by du of the rootfs * IMAGE_OVERHEAD_FACTOR,
default of 1.3).

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoIMAGE_ROOTFS_SIZE Cleanup
Saul Wold [Tue, 24 May 2011 06:15:30 +0000 (23:15 -0700)]
IMAGE_ROOTFS_SIZE Cleanup

This basic cleanup removes the _ext2/3 overrides from places they
no longer belong since they did not allow further overrides. In doing
this the core-image-minimal* recipes can now set a reasonably small
rootfs so that it's a realistic size for minimal.

The new default for minimal is 8M and will be adujsted upward by the
IMAGE_OVERHEAD_FACTOR (default of 1.3).

This also fixes the ROOTFS_SIZE usage in the IMAGE_CMD_<fstype> code

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoeglibc.inc: Transfer PARALLEL_MAKE to PARALLELMFLAGS
Khem Raj [Fri, 24 Sep 2010 07:09:12 +0000 (00:09 -0700)]
eglibc.inc: Transfer PARALLEL_MAKE to PARALLELMFLAGS

* Currently we are passing -jN or -j N flags to eglibc makefiles
  however eglibc uses a make variable called PARALLELMFLAGS
  to pass information about parallel build to sub-makes

* Currently make install ran without parallelism but now
  it should have parallel building flags passed to do_install
  correctly which inturn should improve build time of
  eglibc on systems using parallel build -j with values > 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agoelfutils_0.148.bb: Fix compilation on uclibc
Khem Raj [Tue, 24 May 2011 01:53:59 +0000 (18:53 -0700)]
elfutils_0.148.bb: Fix compilation on uclibc

Currently all components of elfutils dont compile with uclibc
but elfutils is one part which is needed by other recipes e.g.
gcc 4.5 to compile. we make adjustments so that when compiling
for uclibc targets it _only_ builds and packages libelf

use --enable-uclibc only when building for uclibc targets

The supporting patch is also needed for compiling with uclibc
to specify -lintl and -luargp on linker commandline

Add missing inherit on gettext

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agogst-plugins-base: Add tremor to DEPENDS
Saul Wold [Wed, 25 May 2011 00:23:31 +0000 (17:23 -0700)]
gst-plugins-base: Add tremor to DEPENDS

gst-plugins-base requires the libvorbisidec library which is part of tremor

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agodistro-tracking: update toolchain recipe fields
Nitin A Kamble [Mon, 23 May 2011 23:03:53 +0000 (16:03 -0700)]
distro-tracking: update toolchain recipe fields

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agopython-pygpbject: upgrade from 2.27 to 2.27.91
Nitin A Kamble [Mon, 23 May 2011 22:42:18 +0000 (15:42 -0700)]
python-pygpbject: upgrade from 2.27 to 2.27.91

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agobyacc: upgrade from 20101127 to 20101229
Nitin A Kamble [Mon, 23 May 2011 22:42:53 +0000 (15:42 -0700)]
byacc: upgrade from 20101127 to 20101229

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agolibpcre: upgrade from 8.10 to 8.12
Nitin A Kamble [Mon, 23 May 2011 22:41:57 +0000 (15:41 -0700)]
libpcre: upgrade from 8.10 to 8.12

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agogit: upgrade from 1.7.4.3 to 1.7.5.1
Nitin A Kamble [Mon, 23 May 2011 22:41:33 +0000 (15:41 -0700)]
git: upgrade from 1.7.4.3 to 1.7.5.1

the autotools patch is not needed anymore. The code which the patch was patching
is removed, and there is no use of the patch now.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agocreate-pull-request: generalize the repository URL parsing
Darren Hart [Mon, 23 May 2011 17:21:53 +0000 (10:21 -0700)]
create-pull-request: generalize the repository URL parsing

The existing REMOTE_URL and REMOTE_REPO parsing made assumptions regarding
the git URL format used for the known repository types. In fact, both of
these ssh URL formats are valid for all the known repositories. Specifically:

  ssh://git@server/repository/path
  git@server:repository/path

Generalize the parsing to work with each of these for all push URLs matching
*@*. Tested with the following URLs:

  ssh://git@git.pokylinux.org/poky-contrib
  ssh://git@git.pokylinux.org/poky-contrib.git
  git@git.pokylinux.org:poky-contrib
  git@git.pokylinux.org:poky-contrib.git

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
13 years agoghostscript: fix run failure on mpc8315e
Kang Kai [Fri, 20 May 2011 09:26:36 +0000 (17:26 +0800)]
ghostscript: fix run failure on mpc8315e

When run gs on mpc8315, it fails with:
GPL Ghostscript 9.02: ./psi/interp.c(291): Fatal error -20 in gs_interp_init!
It is caused by cross compile.

Accoding to the ghostscript document on:
http://pages.cs.wisc.edu/~ghost/doc/cvs/Make.htm#Cross-compiling
it needs some manual work, so import patches from WindRiver Linux.

Update to using oe way to add arch.h, thanks to Richard.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
13 years agopulseaudio: package udev rules
Koen Kooi [Mon, 23 May 2011 14:59:17 +0000 (16:59 +0200)]
pulseaudio: package udev rules

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
13 years agosyslinux: rdepends on mtools
Otavio Salvador [Sun, 22 May 2011 13:21:45 +0000 (13:21 +0000)]
syslinux: rdepends on mtools

To be able to install into a disk, mtools are required thus we add it
as rdepends of 'syslinux' package.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
13 years agosend-pull-request: drop sendemail checks
Otavio Salvador [Fri, 20 May 2011 20:36:33 +0000 (20:36 +0000)]
send-pull-request: drop sendemail checks

git send-email has the correct check on it. Basically the From is
taken from the git 'user' and 'email' config values and in case
'sendemail.smtpserver' is not provided it defaults to use local
sendmail command.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Darren Hart <dvhart@linux.intel.com>
13 years agoupdate-alternatives-dpkg: Update to dpkg base 1.15.8.7
Saul Wold [Fri, 20 May 2011 21:57:48 +0000 (14:57 -0700)]
update-alternatives-dpkg: Update to dpkg base 1.15.8.7

[YOCTO #1062]

Due to failing fetch updated recipe and SRC_URI to use .bz2,

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agogail: update gail to 1.20.2
Saul Wold [Fri, 20 May 2011 21:45:52 +0000 (14:45 -0700)]
gail: update gail to 1.20.2

[YOCTO #1042]

- Added LIC_FILES_CHKSUM
- Corrected LICENSE

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoMerge branch 'master', remote-tracking branch 'origin/master'
Richard Purdie [Mon, 23 May 2011 22:00:20 +0000 (23:00 +0100)]
Merge branch 'master', remote-tracking branch 'origin/master'

13 years agouclibc: Upgrade to 0.9.32-rc3
Khem Raj [Sun, 22 May 2011 19:02:12 +0000 (12:02 -0700)]
uclibc: Upgrade to 0.9.32-rc3

Bring in the uclibc recipes from meta-oe they have been well
tested by now.

Delete 0.9.30.1 recipes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agotest commit
Cliff Brake [Mon, 23 May 2011 14:50:04 +0000 (10:50 -0400)]
test commit

13 years agoqemu machines: drop MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "qemu-config"
Koen Kooi [Mon, 23 May 2011 11:58:14 +0000 (13:58 +0200)]
qemu machines: drop MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "qemu-config"

Things like 'distcc' and 'bash' are not essential to booting a qemu machine.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodistcc_2.18.3.bb: Fix compilation on uclibc
Khem Raj [Thu, 19 May 2011 02:17:40 +0000 (19:17 -0700)]
distcc_2.18.3.bb: Fix compilation on uclibc

We enable gtk/gnome in distcc that code uses loadavg()
a function unimplemented in uclibc. Therefore for uclibc
we disable gnome and gtk+ features in distcc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agogplv2 recipes update upstream status of patches
Nitin A Kamble [Thu, 19 May 2011 22:45:12 +0000 (15:45 -0700)]
gplv2 recipes update upstream status of patches

grep-2.5.1a: update upstream status of patches
tar-1.17: update upstream-status of patches
at-3.1.12: update upstream-status for patches
cpio-2.8: update upstream-status for patches

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agotcmode-default: switch to gcc 4.6.0 for ppc & mips also
Nitin A Kamble [Sun, 22 May 2011 16:05:56 +0000 (09:05 -0700)]
tcmode-default: switch to gcc 4.6.0 for ppc & mips also

Now the kernel issues related to gcc 4.6.0 for mips & ppc are fixed.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agotcmode-default: switch to eglibc 2.13 from 2.12
Nitin A Kamble [Thu, 19 May 2011 22:50:41 +0000 (15:50 -0700)]
tcmode-default: switch to eglibc 2.13 from 2.12

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agoopkg_svn.bb: Install rcS.d into $D instead of $IMAGE_ROOTFS
Khem Raj [Thu, 19 May 2011 23:45:03 +0000 (16:45 -0700)]
opkg_svn.bb: Install rcS.d into $D instead of $IMAGE_ROOTFS

Remove headerfix.patch, its already applied upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agopuzzles: update to r9173
Saul Wold [Fri, 20 May 2011 22:02:16 +0000 (15:02 -0700)]
puzzles: update to r9173

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agopackagedata: don't choke on empty PACKAGES
Chris Larson [Wed, 16 Mar 2011 14:46:14 +0000 (07:46 -0700)]
packagedata: don't choke on empty PACKAGES

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agoMove packagedata code into oe.packagedata (sync from OE)
Chris Larson [Sun, 10 Oct 2010 04:24:38 +0000 (21:24 -0700)]
Move packagedata code into oe.packagedata (sync from OE)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agooe.packagegroup: add code for package groups (sync from OE)
Chris Larson [Sat, 9 Oct 2010 03:05:06 +0000 (20:05 -0700)]
oe.packagegroup: add code for package groups (sync from OE)

This includes some utility functions for dealing with groups of packages
defined in the metadata.  Metadata syntax:

    PACKAGE_GROUP_<group> = "<list of packages>"

If the packages in the group are optional:

    PACKAGE_GROUP_<group>[optional] = "1"

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agobase.bbclass: use oe.data for OE_IMPORTS
Chris Larson [Wed, 18 May 2011 20:40:07 +0000 (13:40 -0700)]
base.bbclass: use oe.data for OE_IMPORTS

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agoShift oe import logic out of the event handler
Chris Larson [Mon, 7 Mar 2011 16:51:39 +0000 (09:51 -0700)]
Shift oe import logic out of the event handler

This can be useful if we need the imports from another config parsed event
handler, and can't rely upon the base one running before that one.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agobase.bbclass: switch to current OE's imports handling
Chris Larson [Wed, 9 Feb 2011 14:09:43 +0000 (07:09 -0700)]
base.bbclass: switch to current OE's imports handling

The current mechanism makes it easier for classes to add new oe modules to be
automatically imported, and thereby made available to python snippets (${@}).

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agooe.data: expand the flags
Chris Larson [Tue, 29 Mar 2011 19:53:28 +0000 (12:53 -0700)]
oe.data: expand the flags

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agoImplement variable typing (sync from OE)
Chris Larson [Tue, 9 Nov 2010 21:48:13 +0000 (14:48 -0700)]
Implement variable typing (sync from OE)

This implementation consists of two components:

- Type creation python modules, whose job it is to construct objects of the
  defined type for a given variable in the metadata
- typecheck.bbclass, which iterates over all configuration variables with a
  type defined and uses oe.types to check the validity of the values

This gives us a few benefits:

- Automatic sanity checking of all configuration variables with a defined type
- Avoid duplicating the "how do I make use of the value of this variable"
  logic between its users.  For variables like PATH, this is simply a split(),
  for boolean variables, the duplication can result in confusing, or even
  mismatched semantics (is this 0/1, empty/nonempty, what?)
- Make it easier to create a configuration UI, as the type information could
  be used to provide a better interface than a text edit box (e.g checkbox for
  'boolean', dropdown for 'choice')

This functionality is entirely opt-in right now.  To enable the configuration
variable type checking, simply INHERIT += "typecheck".  Example of a failing
type check:

BAZ = "foo"
BAZ[type] = "boolean"

$ bitbake -p
FATAL: BAZ: Invalid boolean value 'foo'
$

Examples of leveraging oe.types in a python snippet:

PACKAGES[type] = "list"

python () {
    import oe.data
    for pkg in oe.data.typed_value("PACKAGES", d):
        bb.note("package: %s" % pkg)
}

LIBTOOL_HAS_SYSROOT = "yes"
LIBTOOL_HAS_SYSROOT[type] = "boolean"

python () {
    import oe.data
    assert(oe.data.typed_value("LIBTOOL_HAS_SYSROOT", d) == True)
}

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agokernel.bbclass: pass KERNEL_VERSION through legitimize_package_name
Andreas Oberritter [Fri, 20 May 2011 16:29:47 +0000 (17:29 +0100)]
kernel.bbclass: pass KERNEL_VERSION through legitimize_package_name

- KERNEL_VERSION may contain characters unsuitable for package
  names, e.g. underscores. Use legitimize_package_name to replace
  those characters.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoRevert "u-boot: fix LIC_FILE_CHKSUM"
Richard Purdie [Fri, 20 May 2011 16:09:32 +0000 (17:09 +0100)]
Revert "u-boot: fix LIC_FILE_CHKSUM"

This reverts commit bbdd81fcd25d2d5aa730a1ea99eecf50a2111989.

Saul discovered this change was incorrect.

13 years agoed (GPLv2): remove --disable-silent-rules
Saul Wold [Thu, 19 May 2011 21:12:47 +0000 (14:12 -0700)]
ed (GPLv2): remove --disable-silent-rules

Older version of configure in ed does not like this option, so remove it from CONFIGUREOPTS

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agomodutils-cross: fix install issue
Saul Wold [Thu, 19 May 2011 03:56:29 +0000 (20:56 -0700)]
modutils-cross: fix install issue

[YOCTO #1055]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agotcmode-default: switch to gcc 4.6.0 for x86, x86-64 & arm
Nitin A Kamble [Tue, 17 May 2011 18:00:06 +0000 (11:00 -0700)]
tcmode-default: switch to gcc 4.6.0 for x86, x86-64 & arm

mips & ppc are not ready yet. Waiting for kernel issues to be fixed.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agouclibc/site_config/funcs: getloadavg is unimplemented
Khem Raj [Thu, 19 May 2011 02:19:40 +0000 (19:19 -0700)]
uclibc/site_config/funcs: getloadavg is unimplemented

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agonfs-utils_1.2.3.bb: Fix compile failure on uclibc
Khem Raj [Thu, 19 May 2011 01:37:59 +0000 (18:37 -0700)]
nfs-utils_1.2.3.bb: Fix compile failure on uclibc

libio.h is not needed even in case of eglibc but
still the patch is uclibc specific

Refreshed nfs-utils-1.0.6-uclibc.patch against
nfs-utils_1.2.3 no code change

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agoopkg-utils: Synchronise with OE
Khem Raj [Thu, 19 May 2011 20:56:00 +0000 (13:56 -0700)]
opkg-utils: Synchronise with OE

Import mtime-int.patch from OE commit
c81990aecae3bdf70a7c924699776b248ab7a006

Pass LDFLAGS to linker to avoid missing GNU_HASH QA errors

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agopackage-index.bb: add support for deb and rpm.
Dexuan Cui [Wed, 18 May 2011 04:09:01 +0000 (12:09 +0800)]
package-index.bb: add support for deb and rpm.

[YOCTO #1024]
Currently package-index.bb only supports ipk. This commit adds the support
for rpm and deb, too.

------------------------------
How to generate and use repos:

1) run "bitbake package-index" after building some target,
e.g., core-image-sato-sdk;

2) export ${DEPLOY_DIR_RPM}, ${DEPLOY_DIR_IPK} and ${DEPLOY_DIR_DEB} by a
webserver on the host, assuming the host IP is 192.168.7.1, at
http://192.168.7.1/rpm
http://192.168.7.1/ipk
http://192.168.7.1/deb

3) inside the target, according to the packaging system (rpm, ipk or deb) used
when we generate the target image, we can use different ways to manage
packages:

3.1) RPM
    run "zypper addrepo http://192.168.7.1/rpm main; zypper refresh"
    to retrieve info about the repo; next, we can use "zypper install/remove"
    to manage packages.

3.2) IPK
    add the repo info into opkg config file, i.e., in
    /etc/opkg/arch.conf, we can add something like
    "src i586 http://192.168.7.1/ipk/i586", and next, we run "opkg update" to
    make opkg update the list of available packages. And later, we can use
    "opkg install/remove" to manage packages.

3.3) DEB
    Currently in target, some important config files, like
/var/lib/dpkg/status and /etc/apt/sources.list, for deb/apt are missing. So
we can't install/remove package in target at present.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agogettext (gplv2): add virtual/gettext to PROVIDES list
Saul Wold [Thu, 19 May 2011 21:24:53 +0000 (14:24 -0700)]
gettext (gplv2): add virtual/gettext to PROVIDES list

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agou-boot: fix LIC_FILE_CHKSUM
Saul Wold [Fri, 20 May 2011 01:12:36 +0000 (18:12 -0700)]
u-boot: fix LIC_FILE_CHKSUM

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agodistro/defaultsetup.conf: Append TCLIBC to TMPDIR by default
Richard Purdie [Tue, 17 May 2011 10:48:29 +0000 (12:48 +0200)]
distro/defaultsetup.conf: Append TCLIBC to TMPDIR by default

The current solutions to share uclibc, eglibc and glibc builds in the
same tree all have various issues associated with them. Appending the
suffix to TMPDIR seems like the best solution since sstate (which
defaults to outside TMPDIR) will allow reuse of any components.

This avoids messy changes to the core with other approaches to this
problem inevitably entail, usually in code where this abstraction isn;'t
logically best placed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodefault-distrovars.inc: Do not add DISTRO_EXTRA_RDEPENDS and DISTRO_EXTRA_RRECOMMENDS
Khem Raj [Mon, 16 May 2011 06:04:17 +0000 (23:04 -0700)]
default-distrovars.inc: Do not add DISTRO_EXTRA_RDEPENDS and DISTRO_EXTRA_RRECOMMENDS

We otherwise get these added to image dependencies in distributions
and they may not want it but would like to use those variables

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years ago*pull-request: add copyright, license, and descriptions
Darren Hart [Mon, 16 May 2011 22:18:20 +0000 (15:18 -0700)]
*pull-request: add copyright, license, and descriptions

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Otavio Salvador <otavio@ossystems.com.br>
13 years agosend-pull-request: streamline git-send-email usage
Darren Hart [Mon, 16 May 2011 20:34:28 +0000 (13:34 -0700)]
send-pull-request: streamline git-send-email usage

The script was sending one patch at a time, which defeats the internal
confirmation mechanism of git-send-email (which would otherwise allow
the user to send all patches or abort immediately).

Rework the sending logic to use no more than two commands. Use two
commands when the cover letter is to be sent to all recipients with
the -a argument. Otherwise, send all patches via the same command.

The script duplicates git's send confirmation, eliminate that.

Reported-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Joshua Lock <josh@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Khem Raj <raj.khem@gmail.com>
Cc: Joshua Lock <josh@linux.intel.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
13 years agocreate-pull-request: add untested oe repository support
Darren Hart [Sat, 14 May 2011 05:36:27 +0000 (22:36 -0700)]
create-pull-request: add untested oe repository support

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Otavio Salvador <otavio@ossystems.com.br>
13 years agocreate-pull-request: add GitHub remote support
Otavio Salvador [Sat, 14 May 2011 05:33:53 +0000 (22:33 -0700)]
create-pull-request: add GitHub remote support

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
13 years agocreate-pull-request: do not check certificate
Otavio Salvador [Sat, 14 May 2011 04:16:06 +0000 (04:16 +0000)]
create-pull-request: do not check certificate

Some remotes can use HTTPS and we don't need to check the certificate
of the host so wget call is changed to avoid it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
13 years agosend-pull-request: verify git sendemail config
Darren Hart [Fri, 13 May 2011 22:42:37 +0000 (15:42 -0700)]
send-pull-request: verify git sendemail config

Perform a quick sanity check to be able to direct users to configure
git.sendemail if they haven't yet.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Otavio Salvador <otavio@ossystems.com.br>
13 years agosend-pull-request: don't send all patches to everyone even with -a
Darren Hart [Fri, 13 May 2011 20:58:36 +0000 (13:58 -0700)]
send-pull-request: don't send all patches to everyone even with -a

Rather than sending every patch to every recipient of the entire series when
-a is used, only send the cover letter to everyone and use git's
--signed-off-by-cc feature to generate an auto cc list for the individual
patches.

Add a -c option to use --signed-off-by-cc to auto cc recipeients at the
individual patch level. This is implied by -a.

Using git to harvest the Cc list means only collecting Signed-off-by and Cc
lines, rather than the more generic *-by lines previously. This is a fair
trade-off for significantly reduced complexity. If users want to add Acked-by
and Tested-by lines and want to use the -a feature, they should include those
recipients as Cc lines as well.

Now that we rely on git for auto-cc for the individual patches,
make sure the user is prompted before sending each patch by forcing
--confirm=always.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Khem Raj <raj.khem@gmail.com>
Cc: Koen Kooi <koen@dominion.thruhere.net>
Cc: Otavio Salvador <otavio@ossystems.com.br>
13 years agosend-pull-request: fix greedy auto-cc regex
Darren Hart [Fri, 13 May 2011 21:03:07 +0000 (14:03 -0700)]
send-pull-request: fix greedy auto-cc regex

A greedy regular expression caused emails to be harvested from patches
that were quoted in the commit message. Ensure only tags that start at the
beginning of the line are considered for harvesting.

NOTE: users are still responsible for verifying the recipients list and to
      ensure they do not spam people!

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Saul Wold <sgw@linux.intel.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
13 years agosend-pull-request: remove local mta support
Darren Hart [Fri, 13 May 2011 20:33:57 +0000 (13:33 -0700)]
send-pull-request: remove local mta support

There is no real value in supporting sendmail directly when git
can be configured to use it. The script used to generate the
pull request mails relies heavily on git, so doing so here does
not impose any additional dependencies and it greatly reduces the
complexity of this script.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Otavio Salvador <otavio@ossystems.com.br>
13 years agosend-pull-request: whitespace cleanup
Darren Hart [Fri, 13 May 2011 17:36:03 +0000 (10:36 -0700)]
send-pull-request: whitespace cleanup

Indent with tabs, not spaces, for consistency with other bash scripts.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Otavio Salvador <otavio@ossystems.com.br>
13 years agocreate-pull-request: provide an RFC mode via -c argument
Darren Hart [Fri, 13 May 2011 20:10:14 +0000 (13:10 -0700)]
create-pull-request: provide an RFC mode via -c argument

Currently it is difficult to know if a pull request is being sent for review
or just to be pulled.

Add a -c argument to add RFC to the subject prefix and a blurb requesting
review to the cover letter.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Joshua Lock <josh@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Saul Wold <sgw@linux.intel.com>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Joshua Lock <josh@linux.intel.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
13 years agocreate-pull-request: rewrite known private URLs to public URLs
Darren Hart [Fri, 13 May 2011 19:21:57 +0000 (12:21 -0700)]
create-pull-request: rewrite known private URLs to public URLs

Rather than requiring users to have public remotes and private remotes when
their development remotes are ssh based (and therefor unsuitable for a pull
request URL), rewrite the ones we know about from ssh://git@ to git://.

As the remote url vary from remote to remote, do the REMOTE_REPO regex per
remote.

With this infrastructure in place, future patches can augment the list of
known remotes for things like Git Hub, Gitorious, kernel.org, etc.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Joshua Lock <josh@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Tom Rini <tom_rini@mentor.com>
Cc: Tom Rini <tom_rini@mentor.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Joshua Lock <josh@linux.intel.com>
13 years agocreate-pull-request: use git request-pull and arbitrary remotes
Darren Hart [Fri, 13 May 2011 17:44:49 +0000 (10:44 -0700)]
create-pull-request: use git request-pull and arbitrary remotes

Allow for arbitrary remotes via a new -u argument. Remove the hard coded
references to the pokylinux repositories. Create the WEB_URL from known
remotes. Future patches can add additional WEB_URL mappings for remotes
like Git Hub, Gitorious, and kernel.org.

Rather than duplicating the git request-pull command ourselves, just use
the existing one.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Joshua Lock <josh@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Tom Rini <tom_rini@mentor.com>
Cc: Tom Rini <tom_rini@mentor.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Joshua Lock <josh@linux.intel.com>