]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
13 years agopackage_rpm.bbclass: Use the correct macros file to avoid empty solvedb path issues
Richard Purdie [Thu, 12 Apr 2012 07:21:38 +0000 (08:21 +0100)]
package_rpm.bbclass: Use the correct macros file to avoid empty solvedb path issues

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopackage_rpm: Fix useradd preinst ordering issues
Richard Purdie [Wed, 11 Apr 2012 21:31:20 +0000 (22:31 +0100)]
package_rpm: Fix useradd preinst ordering issues

We were already having occasional ordering issues with package_rpm.
Fixing the ldconfig postinstall issue pushed rpm over the cliff and
totally broke rpm builds with the packages getting installed in
effectively a random order and the useradd preinstalls getting executed
out of order and breaking.

The only explanation I can find for this is that rpm is special. It will
happily run a preinst for a package without any of that package's
dependencies being present regardless of whether there are any circular
dependency issues or not. I attempted various ways of solving this such
as ordering the total_solution.manifest in creative ways but the bottom
line is RPM ignores this. It takes little account of any request to
ignore /bin/sh dependencies for the purposes of constructing the final
image.

The end result is we're having to install the base-passwd, base-files
and shadow packages first (if there is a request to install them), then
install any other packages.

It this wasn't in the middle of a release I'd be rewriting this bbclass
file, its horrible.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodistro-tracking: Fix syslinux NO_UPDATE_REASON
Saul Wold [Wed, 11 Apr 2012 14:02:03 +0000 (07:02 -0700)]
distro-tracking: Fix syslinux NO_UPDATE_REASON

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoinsane.bbclass: Add missing variable bpn
Noor Ahsan [Wed, 11 Apr 2012 12:00:12 +0000 (17:00 +0500)]
insane.bbclass: Add missing variable bpn

* bpn variable was used but it was not defined. Add bpn to resolve that issue.

Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years ago"The suite of statements in a function definition executes with a local namespace
Andrei Gherzan [Wed, 11 Apr 2012 11:55:22 +0000 (12:55 +0100)]
"The suite of statements in a function definition executes with a local namespace
that is different from the global namespace. This means that all variables created
within a function are local to that function. When the suite finishes, these
working variables are discarded."

In this way the needs_ldconfig variable in linux_so never gets True in the statements
below this function. As global statement is generally discouraged, a return value
would be a clean and fast way to solve this issue.

[YOCTO #2205]

RP: Added logic to ensure the value doesn't get overwritten once set
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>---
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopython: multilib header support.
Lianhao Lu [Mon, 9 Apr 2012 05:01:07 +0000 (22:01 -0700)]
python: multilib header support.

Add intercept multilib header for pyconfig.h in python.
This is part of the bug fixing [YOCTO #2216].

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoinitrdscripts: fix init-live.sh and use unionfs
Yang Shi [Wed, 11 Apr 2012 01:33:43 +0000 (18:33 -0700)]
initrdscripts: fix init-live.sh and use unionfs

[YOCTO #1487]

When booting up with liveCD image, init scripts can't work well on read-only filesystem. Unionfs,
which is supported in Yocto kernel, allows a filesystem to appear as writeable, but without
actually allowing writes to change the filesystem.

Use unionfs to mount rootfs and make root file system can be writen when using liveCD to boot up.
Set UNION_FS variable depending on kernel config, so that it can work with kernel which doesn't
have unionfs feature.

[RP: Mark recipe as machine specific due to kernel dependency]
Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agotclibc-eglibc.inc: make locale packages dependency conditional
Nitin A Kamble [Wed, 11 Apr 2012 01:33:46 +0000 (18:33 -0700)]
tclibc-eglibc.inc: make locale packages dependency conditional

Only add locale package dependencies if the eglibc is configured
with locale support.
  This avoids dependencies issues for distros such as poky-tiny

[RP: Add PR bump]
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopython: Fix host contamination issue
Richard Purdie [Wed, 11 Apr 2012 10:53:58 +0000 (11:53 +0100)]
python: Fix host contamination issue

python-nativesdk could fail with:

| /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/x86_64-linux/usr/bin/python: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/python-nativesdk-2.7.2-r1.9/Python-2.7.2/libpython2.7.so.1.0)
| make: *** [sharedmods] Error 1

which is caused by the fact LD_LIBRARY_PATH is being set to include WORKDIR
when calling HOSTPYTHON. HOSTPYTHON is from python-native and needs no such
help so the easiest fix here is not to set crazy LD_LIBRARY_PATH values
since we should never be running anything from WORKDIR given the way we build
things.

The patch clears out the RUNSHARED variable which would contain the
LD_LIBRARY_PATH value prior to this patch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoarchiver.bbclass: Amend the problem for moving tarballs in ${DL_DIR} to ${DEPLOY_DIR...
Xiaofeng Yan [Wed, 11 Apr 2012 06:15:17 +0000 (14:15 +0800)]
archiver.bbclass: Amend the problem for moving tarballs in ${DL_DIR} to ${DEPLOY_DIR}/source when enable archiver

When running "bitbake core-imamge-minmal", the error information like the following  will appear:
ERROR: Error executing a python function in
/buildarea2/yzhao-test/poky-test/meta/recipes-core/zlib/zlib_1.2.6.bb:
IOError: [Errno 2] No such file or directory:
'/buildarea2/yzhao-test/poky-test/build-archive/downloads/zlib-1.2.6.tar.bz2'

An absolute path from variable "file" pointed to tarballs in ${DL_DIR} \
cause this problem. So return base-name of "file" for fixing this bug here.

[YOCTO #2272]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobusybox: fix options -b, -a and -P
Andreas Oberritter [Tue, 10 Apr 2012 20:25:04 +0000 (22:25 +0200)]
busybox: fix options -b, -a and -P

* busybox-udhcpc-no_deconfig.patch broke the options,
  preventing udhcpc from forking into the background
  if no lease can be obtained.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoclasses/package_deb: create .gz index instead of .bz2
Paul Eggleton [Tue, 10 Apr 2012 22:52:23 +0000 (23:52 +0100)]
classes/package_deb: create .gz index instead of .bz2

apt is looking for Packages.gz files instead of the .bz2 files we are
currently creating and failing when they cannot be found. It is not
immediately obvious how to make the current version use the .bz2
indexes; thus create .gz indexes for now which allows us to
successfully create images.

Tested on both a Fedora 14 and an Ubuntu 11.10 host machine.

Fixes [YOCTO #1858].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agotask-self-hosted: Add vte and eglibc-gconv-ibm850
Saul Wold [Wed, 11 Apr 2012 01:33:45 +0000 (18:33 -0700)]
task-self-hosted: Add vte and eglibc-gconv-ibm850

Adding vte for a more full featured terminal
adding eglibc-gconv-ibm850 for mcopy

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoboot-directdisk: remove the default setting of SYSLINUXCFG and SYSLINUXMENU
Saul Wold [Wed, 11 Apr 2012 01:33:44 +0000 (18:33 -0700)]
boot-directdisk: remove the default setting of SYSLINUXCFG and SYSLINUXMENU

These two should get setup in {S} and installed into {HDDDIR}, by
having them defined with {HDDDIR} they try to get created when the
directory does not exist yet.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoconnman: add ofono dependency.
Lianhao Lu [Wed, 11 Apr 2012 01:33:42 +0000 (18:33 -0700)]
connman: add ofono dependency.

Added dependency to ofono because we always enable ofono plug-in.

We did this because the 1.2 release cycle is coming to an end. We should
use PACKAGECONFIG in 1.3.

This is part of the 1.2 bug fixing [YOCTO #2216].

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohello-mod: Move hello-mod from meta to meta-skeleton
Darren Hart [Mon, 9 Apr 2012 22:19:00 +0000 (15:19 -0700)]
hello-mod: Move hello-mod from meta to meta-skeleton

Fixes [YOCTO #1501]

hello-mod is an example kernel module, and does not provide any real
functionality. As such, it would be better placed under meta-skeleton than
meta.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
13 years agosyslinux: Update distro-tracking fields
Darren Hart [Mon, 9 Apr 2012 21:43:44 +0000 (14:43 -0700)]
syslinux: Update distro-tracking fields

Add reason for not updating syslinux this release.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
13 years agoat: Fix origin location of install pam.conf from from ${P} -> ${BP}
Saul Wold [Mon, 9 Apr 2012 22:06:53 +0000 (15:06 -0700)]
at: Fix origin location of install pam.conf from from ${P} -> ${BP}

This patch changes P to BP to address where a file is installed
from when building with PAM enabled and using multi-lib.

[YOCTO #2224]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agogdb: add --with-libexpat-prefix
Martin Jansa [Sun, 8 Apr 2012 21:36:49 +0000 (23:36 +0200)]
gdb: add --with-libexpat-prefix

* otherwise it sometimes finds host's expat

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agoopkg: Add the condition for the content of arch.conf when enable multilib
Xiaofeng Yan [Mon, 9 Apr 2012 07:16:32 +0000 (15:16 +0800)]
opkg: Add the condition for the content of arch.conf when enable multilib

After successfully installed some lib32 multilib packages into the
x86-64 image, we just found that the file content of /var/lib/opkg/status in
rootfs changed after the very 1st boot, many lib32 related packages information
are missing in that file.

The missing arch "x86" in arch.conf cause the above problem. Adding the
condition for the content of arch.conf when enable multilib. If build
multilib image, "ALL_MULTILIB_PACKAGE_ARCHS" will be used instead of
"PACKAGE_ARCHS".

[YOCTO #1522]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
13 years agoadt-installer: Fixed ppc kernel naming.
Lianhao Lu [Mon, 9 Apr 2012 10:32:02 +0000 (18:32 +0800)]
adt-installer: Fixed ppc kernel naming.

1. Fixed the ppc kernel naming.
2. Disabled opkg shared library to avoid runtime opkg-cl launching
error.
3. Adjusted the variable sequence in adt-installer.conf

Fixed bug [YOCTO #2233]

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
13 years agometa-toolchain: runqemu falied on FC16/Opensuse12.1 x86_64
Robert Yang [Mon, 9 Apr 2012 08:20:36 +0000 (16:20 +0800)]
meta-toolchain: runqemu falied on FC16/Opensuse12.1 x86_64

runqemu can't launch a target image on Fedora 16 64bit or Opensuse 12.1
64bit, this is because runqemu needs the host's libGL.so, which requires
GLIBC_2.14 which is defined in libc.so.6, but our default libc.so.6 is
version 2.13, here is the message from Richard:

The easiest solution would be to change the nativesdk libc to 2.15. I don't
think we plan to do this for the target libc for 1.2 but we could change
nativesdk's version if its well tested

[YOCTO #1968]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
13 years agogit 1.7.7: remove perl.mak before compile
Robert Yang [Mon, 9 Apr 2012 08:37:12 +0000 (16:37 +0800)]
git 1.7.7: remove perl.mak before compile

The git may fail to rebuild when perl's Config.pm or config.h changes,
this is because Makefile detects that perl/perl.mak is out of date.
Remove perl.mak to let Makefile regenerate it would fix the error.
Both git and git-native have this problem.

To reproduce the error: (On x86_64 host)

$ bitbake git-native
$ touch tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.14.2/Config.pm
$ bitbake git-native -ccompile -f

[YOCTO #2156]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
13 years agogrub-efi: Include GPT partition EXT FS support
Darren Hart [Fri, 6 Apr 2012 19:04:52 +0000 (12:04 -0700)]
grub-efi: Include GPT partition EXT FS support

Fixes [YOCTO 2257]

GPT partitions are common for EFI systems. Add support for them by
including the part_gpt partition module in the grub-efi image. In
order to allow for loading a Linux kernel from an EXT* filesystem,
include the ext2 module as well.

With this fix applied, I was able to boot from a USB key using a
GPT partition table with the following layout:

  $ sudo gdisk -l /dev/sdc
  GPT fdisk (gdisk) version 0.8.2

  Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present

  Found valid GPT with protective MBR; using GPT.
  Disk /dev/sdc: 7669824 sectors, 3.7 GiB
  Logical sector size: 512 bytes
  Disk identifier (GUID): 68FA7CD4-E0C3-4A8E-82B5-1331C9B17A3C
  Partition table holds up to 128 entries
  First usable sector is 34, last usable sector is 7669790
  Partitions will be aligned on 2-sector boundaries
  Total free space is 7428816 sectors (3.5 GiB)

  Number  Start (sector)    End (sector)  Size       Code  Name
     1              34           32801   16.0 MiB    0700      # FAT16
     2           32802          240974   101.6 MiB   0700      # EXT3

From within GRUB, booted as bootia32.efi from the BOOT partition, I
booted the OS with the following commands:

  grub> linux (hd0,gpt2)/vmlinuz rootwait root=/dev/sda2 console=ttyS0,115200
  grub> boot

This change will enable BSP developers to use the grub-efi image in
their own images as well as enable upcoming changes to the installer
to support EFI.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Kishore Bodke <kishore.k.bodke@intel.com>
CC: Rahul Saxena <rahul.saxena@intel.com>
13 years agoqemu: Fix gl failure from 64b target on 32b host
Zhai Edwin [Fri, 6 Apr 2012 06:39:39 +0000 (14:39 +0800)]
qemu: Fix gl failure from 64b target on 32b host

Data from 64b target is truncated by 32b host. This patch makes type of data
buf in host same as target.

[YOCTO #2221] got fixed.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
[Bumped PR - sgw]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoshadow-native: disable logging to syslog
Scott Garman [Thu, 5 Apr 2012 17:14:28 +0000 (10:14 -0700)]
shadow-native: disable logging to syslog

Disable use of syslog to prevent sysroot user and group additions
from writing entries to the host's syslog.

This fixes [YOCTO #2012]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13 years agomesa-common: package gl.pc in libgl-dev
Joshua Lock [Fri, 6 Apr 2012 00:31:55 +0000 (17:31 -0700)]
mesa-common: package gl.pc in libgl-dev

gl.pc should be packaged in libgl-dev not the mesa-dev package

Fixes [YOCTO #2059]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
13 years agocreate-pull-request: Assume remote branch from local branch
Darren Hart [Thu, 5 Apr 2012 21:24:43 +0000 (14:24 -0700)]
create-pull-request: Assume remote branch from local branch

It is common to use the same remote branch name as the local branch
name. In this case, it would be nice not to have to specify the
remote branch name.

Make the -b argument optional and assume the remote branch is the same
name as the local branch. Print a NOTE to this effect so as not to
catch the user by surprise:

NOTE: Assuming remote branch 'notthere', use -b to override.

If the remote branch doesn't exist, a WARNING is displayed just as if
the user had used -b to specify a non-existent branch:

WARNING: Branch 'notthere' was not found on the contrib git tree.
         Please check your remote and branch parameter before sending.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
13 years agorunqemu-internal: Add console=tty for qemuppc and NFS
Saul Wold [Thu, 5 Apr 2012 20:14:06 +0000 (13:14 -0700)]
runqemu-internal: Add console=tty for qemuppc and NFS

Adding this to the nfs to match the ext3 kernelcmdline, this re-enables
keyboard input on the qemuppc.

[YOCTO #2058]

Thanks to Yi Zhao <yi.zhao@windriver.com> for the initial patch suggestion

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoself-hosted-image: use Clearlooks theme
Paul Eggleton [Thu, 5 Apr 2012 11:36:08 +0000 (12:36 +0100)]
self-hosted-image: use Clearlooks theme

Use a nicer theme (Clearlooks) to improve Hob's appearance in the self
hosted image and fix the progress bar not changing colour when the build
fails.

Fixes [YOCTO #2208]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
13 years agoself-hosted-image: decrease reserved space to 0.5%
Paul Eggleton [Wed, 4 Apr 2012 15:07:31 +0000 (16:07 +0100)]
self-hosted-image: decrease reserved space to 0.5%

The default amount of reserved space for ext2/3 is 5% - this amounts to
about 2GB of a 40GB filesystem that the builder user can't make use of.
We don't need this much reserved so peg it back to 0.5% which should be
more than enough.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
13 years agoself-hosted-image: use the correct location of the file sudoers
Dexuan Cui [Thu, 5 Apr 2012 04:00:05 +0000 (12:00 +0800)]
self-hosted-image: use the correct location of the file sudoers

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agoconnman: Fixed multilib support.
Lianhao Lu [Thu, 5 Apr 2012 11:43:28 +0000 (19:43 +0800)]
connman: Fixed multilib support.

1. Corrected the package content of connman-test.

This is part of the bug fixing [YOCTO #2216].

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Removed ofono addtion - sgw

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agopackage_ipk.bbclass: fixing muttilib prefix extracting.
Lianhao Lu [Thu, 5 Apr 2012 11:41:47 +0000 (19:41 +0800)]
package_ipk.bbclass: fixing muttilib prefix extracting.

Fixed an error in multilib prefix extracting.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
13 years agou-boot: add machine name to spl image name
Stefan Herbrechtsmeier [Thu, 5 Apr 2012 11:48:27 +0000 (13:48 +0200)]
u-boot: add machine name to spl image name

Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
13 years agolinux-firmware: keep version string in libertas firmware
Stefan Herbrechtsmeier [Thu, 5 Apr 2012 10:36:58 +0000 (12:36 +0200)]
linux-firmware: keep version string in libertas firmware

Recent Linux kernel tries to load the libertas firmware with the version
string in its name first. This results in a delayed firmware load on
system boot. Keep the default libertas firmware name and add a link for
older driver versions.

Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
13 years agopackage_ipk: don't generate Packages.filelist
Martin Jansa [Thu, 5 Apr 2012 09:21:14 +0000 (11:21 +0200)]
package_ipk: don't generate Packages.filelist

* it works only with 'new' packages and with fixed opkg-utils it will unpack
  *all* packages, because filelist doesn't support 'cache' like Packages does

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
13 years agoHob: Modify Image Descriptions
Elizabeth Flanagan [Thu, 5 Apr 2012 07:50:55 +0000 (00:50 -0700)]
Hob: Modify Image Descriptions

Fixes [YOCTO #2227]

I've updated the image descriptions per the bug description.

Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
13 years agogst-plugins-base: fix build of subparse plugin
Andreas Oberritter [Wed, 4 Apr 2012 22:28:36 +0000 (00:28 +0200)]
gst-plugins-base: fix build of subparse plugin

* Fixes the following configure error by prefixing
  PKG_CONFIG_SYSROOT_DIR:

| grep: /usr/include/gstreamer-0.10/gst/gstconfig.h: No such file or directory

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agosyslinux: Avoid using linux.ext2_fs.h if possible
Darren Hart [Wed, 4 Apr 2012 14:54:00 +0000 (07:54 -0700)]
syslinux: Avoid using linux.ext2_fs.h if possible

Fixes [YOCTO 2236]

With recent Linux kernel headers, such as 3.3 in Fedora 16, the linux/ext2_fs.h
header has been removed. This causes compile failures for syslinux-native.
Backport a fix to address this from syslinux-4.06-pre3.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Ross Burton <ross.burton@intel.com>
CC: Joshua Lock <josh@linux.intel.com>
13 years agogdbm: Activate -enable-libgdbm-compat and add symlinks to headers in include/gdbm
Andrei Gherzan [Fri, 23 Mar 2012 15:56:29 +0000 (17:56 +0200)]
gdbm: Activate -enable-libgdbm-compat and add symlinks to headers in include/gdbm

ndbm.h is needed by python for dbm module. This is why -enable-libgdbm-compat was added
to configure.
The second change is because python is looking for the gdbm headers in include/gdbm.
The easiest way to solve this issue is to add symlinks in include/gdbm.

[YOCTO #1937]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
13 years agoself-hosted-image: Increase space for build and allow builder user sudo access
Saul Wold [Wed, 4 Apr 2012 00:33:42 +0000 (17:33 -0700)]
self-hosted-image: Increase space for build and allow builder user sudo access

We need to have about 40G to do a full sato build even with rm_work enabled
Add sudo priveleges inorder to allow the builder user to setup the tap/tun
devices needed by runqemu

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoconf/machine/include: Update SH tunings to match README
Mark Hatle [Fri, 30 Mar 2012 19:34:14 +0000 (14:34 -0500)]
conf/machine/include: Update SH tunings to match README

Update the experimental SH tunings to match the tunings README.

These tunings have not been tested, and are experimental!

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agoconf/machine/include: Cleanup ARM tunings to match README
Mark Hatle [Fri, 30 Mar 2012 19:36:44 +0000 (14:36 -0500)]
conf/machine/include: Cleanup ARM tunings to match README

Cleanup the ARM tunings to match the new tunings README file.

The ARM tunings define TUNE_PKGARCH in a way that only one main
arm architecture, i.e. armv6, may be defined at the same time.  We
may have to revise these settings in the future, as well as figure
out a way to better differentiate various optimize tunings in the
package arch.  (This was not done, to preserve existing behavior!)

Fix a number of minor issues w/ the armv5 tunings where DSP variants
were referenced but not defined.

Fix incorrect armv7 entries in armv7a.

Fix PACKAGE_EXTRA_ARCHS definitions inside of tune-cortexm3 and tune-cortexr4.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agoconf/machine/include: Cleanup PowerPC tunings to match README
Mark Hatle [Fri, 30 Mar 2012 19:31:20 +0000 (14:31 -0500)]
conf/machine/include: Cleanup PowerPC tunings to match README

Cleanup the PowerPC tunings to match the new tuning README file.

Default PowerPC to using TUNE_PKGARCH = ${TUNE_PKGARCH_tune-<tune>}

Fix AVAILTUNE settings in ppc603e, and ppce500mc to be addative.

Correct potentially overlapping "spe" definitions in ppce500 and ppce500v2.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agoconf/machine/include: Cleanup MIPS tunings to match README
Mark Hatle [Fri, 30 Mar 2012 19:29:25 +0000 (14:29 -0500)]
conf/machine/include: Cleanup MIPS tunings to match README

Cleanup the MIPS tunings to match the new tuning README file.  Also
add a MIPS specific README file to explain the MIPS specifical
architectural issues.

Finally correct the variant configurations within the tune-mips32.inc.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agoconf/machine/include: Cleanup IA tunings to match README
Mark Hatle [Fri, 30 Mar 2012 19:27:58 +0000 (14:27 -0500)]
conf/machine/include: Cleanup IA tunings to match README

We perform a basic cleanup of the IA32 architecture and related
tunings in order to match the rules and descriptions within the
new tuning README file.

A number of small issues were corrected in the "c3" tuning to
bring it inline with the README.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agoconf/machine/include/README: Add readme to explain cpu tunings
Mark Hatle [Fri, 30 Mar 2012 19:27:05 +0000 (14:27 -0500)]
conf/machine/include/README: Add readme to explain cpu tunings

Add a new README that covers the basic items used with various cpu
tunings.  The goal is to better help people understand the various
settings and where things should or should not be defined.

Corresponding architecture README files will also be generated to
explain the particulars of architectural tunings.

Also remove the default TUNE_PKGARCH setting in bitbake.conf.  This
was done to ensure an error occurs if an invalid tuning is defined.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agoarchive-patched-source.bbclass: Archive patched source
Xiaofeng Yan [Mon, 26 Mar 2012 10:27:40 +0000 (18:27 +0800)]
archive-patched-source.bbclass: Archive patched source

This bbclass inherits archiver.bbclass to archive patched source

[YOCTO #1977]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
13 years agoRemove redundant reference to "task-self-hosted" from self-hosted-image.bb
Robert P. J. Day [Thu, 29 Mar 2012 22:42:47 +0000 (18:42 -0400)]
Remove redundant reference to "task-self-hosted" from self-hosted-image.bb

This recipe already includes "task-self-hosted" in the IMAGE_INSTALL
line:

IMAGE_INSTALL = "task-core-boot task-core-apps-console task-core-ssh-openssh task-self-hosted"

so there's no apparent need to include it again further down.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
13 years agoqt-4.7.4: Fix build with gcc 4.7
Khem Raj [Sat, 31 Mar 2012 00:27:41 +0000 (17:27 -0700)]
qt-4.7.4: Fix build with gcc 4.7

g++ 4.7 is detecting inheritence problems
which we solve by explictly specifying
elements in constructors

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agoqt-mobility: Fix build with gcc 4.7
Khem Raj [Sat, 31 Mar 2012 17:34:48 +0000 (10:34 -0700)]
qt-mobility: Fix build with gcc 4.7

C getpid needs unistd.h for getting
its signature

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agowebkit: Fix build with gcc-4.7
Khem Raj [Fri, 30 Mar 2012 19:21:30 +0000 (12:21 -0700)]
webkit: Fix build with gcc-4.7

Include unistd.h for all linux and not
just for android.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agoarchiver.bbclass: enhance code readability
Xiaofeng Yan [Sun, 1 Apr 2012 08:25:50 +0000 (16:25 +0800)]
archiver.bbclass: enhance code readability

The modification is as follow:

- Modify some codes with more preferable readability and vague description.
- Use existed functions instead of custom functions.

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
13 years agoeglibc packaging: locale packaging configuration
Nitin A Kamble [Fri, 30 Mar 2012 20:59:18 +0000 (13:59 -0700)]
eglibc packaging: locale packaging configuration

The PACKAGE_NO_GCONV var manipulations ware happening in the
eglibc-options.inc file, and the eglibc-locale recipe do not
see it. Moving that into the libc-package.bbclass which is
common to eglibc & eglibc-locale recipes.

This fixes bug: [YOCTO #2089]

This avoids this error for poky-tiny
NOTE: package eglibc-locale-2.13-r19: task do_populate_sysroot: Started
ERROR: Error executing a python function in
/opt/poky.git/meta/recipes-core/eglibc/eglibc-locale_2.13.bb:
OSError: [Errno 2] No such file or directory:
'/home/rchatre/concordia/dev/ccd-distro-work/tmp/work/core2-poky-linux/eglibc-locale-2.13-r19/package/usr/lib/gconv'

ERROR: The stack trace of python calls that resulted in this exception/failure
was:
ERROR:   File "package_do_split_gconvs", line 264, in <module>
ERROR:·
ERROR:   File "package_do_split_gconvs", line 45, in package_do_split_gconvs
ERROR:·
ERROR:   File "package.bbclass", line 30, in do_split_packages
ERROR:·
ERROR: The code that was being executed was:
ERROR:      0260:»------»-------bb.note("generation of binary locales disabled.
this may break i18n!")
ERROR:      0261:
ERROR:      0262:
ERROR:      0263:
ERROR:  *** 0264:package_do_split_gconvs(d)
ERROR:      0265:
ERROR: (file: 'package_do_split_gconvs', lineno: 264, function: <module>)
ERROR:      0041:»------»-------»-------d.setVar('RPROVIDES_%s' % pkg,
pkg.replace(bpn, 'glibc'))
ERROR:      0042:
ERROR:      0043:»------do_split_packages(d, gconv_libdir,
file_regex='^(.*)\.so$', output_pattern=bpn+'-gconv-%s', \
ERROR:      0044:»------»-------description='gconv module for character set
%s', hook=calc_gconv_deps, \
ERROR:  *** 0045:»------»-------extra_depends=bpn+'-gconv')
ERROR:      0046:
ERROR:      0047:»------def calc_charmap_deps(fn, pkg, file_regex,
output_pattern, group):
ERROR:      0048:»------»-------deps = []
ERROR:      0049:»------»-------f = open(fn, "r")
ERROR: (file: 'package_do_split_gconvs', lineno: 45, function:
package_do_split_gconvs)
ERROR: Function failed: package_do_split_gconvs
ERROR: Logfile of failure stored in:
/home/rchatre/concordia/dev/ccd-distro-work/tmp/work/core2-poky-linux/eglibc-locale-2.13-r19/temp/log.do_package.31042
NOTE: package eglibc-locale-2.13-r19: task do_package: Failed
ERROR: Task 552 (/opt/poky.git/meta/recipes-core/eglibc/eglibc-locale_2.13.bb,
do_package) failed with exit code '1'

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agogcc-cross-intermediate: fix do_install for x32
Nitin A Kamble [Tue, 3 Apr 2012 19:35:03 +0000 (12:35 -0700)]
gcc-cross-intermediate: fix do_install for x32

This Fixes [Ycoto #2223] bug.

The gcc osdir is obtained in the do_install by invocation of
command "gcc -print-multi-os-directory". For x32 it returns gcc
osdir for the default abi which is x86_64. Fix this by adding
target abi parameter to the gcc command line to get correct gcc
osdir with invocation of command "gcc -mx32 -print-multi-os-directory"

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agopackage_{deb,ipk,rpm}: apply umask to files generated in do_package_write_{deb,ipk...
Andreas Oberritter [Sat, 10 Mar 2012 02:11:57 +0000 (03:11 +0100)]
package_{deb,ipk,rpm}: apply umask to files generated in do_package_write_{deb,ipk,rpm}

* Explicitly set umask to 022. Otherwise the build system's
  umask may leak into the image.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agocopyleft_compliance: also print the reason for including a package
Eric Bénard [Mon, 2 Apr 2012 20:37:10 +0000 (22:37 +0200)]
copyleft_compliance: also print the reason for including a package

Signed-off-by: Eric Bénard <eric@eukrea.com>
13 years agolicense.py: fix behaviour of copyleft_compliance
Eric Bénard [Mon, 2 Apr 2012 20:37:09 +0000 (22:37 +0200)]
license.py: fix behaviour of copyleft_compliance

actually if a package has a license in its LICENSE variable
which is not in the whitelist nor in the blacklist and even
if an other license in this variable is in the whitelist,
the package gets excluded and is not taken in account in the
copyleft_compliance.
This patch solves this by excluding a recipe _only_ if the
LICENSE variable includes a pattern from the blacklist and
including a recipe only if it includes a variable from the
whitelist _and_ none from the blacklist.

Example in busybox which has LICENSE="GPLv2 & BSD-4-Clause",
with the actual behaviour (where he blacklist contains only
CLOSED Proprietary) we get :
DEBUG: copyleft: busybox-1.19.4 is excluded: recipe has excluded licenses: BSD-4-Clause
which is not sane because busybox is covered by a copyleft license
which is GPLv2 and should match the default whitelist which is
GPL* LGPL*.

Signed-off-by: Eric Bénard <eric@eukrea.com>
13 years agolicense.bbclass: Check if copyfile succeeded with isfile
Andrei Gherzan [Tue, 3 Apr 2012 11:05:48 +0000 (14:05 +0300)]
license.bbclass: Check if copyfile succeeded with isfile

A cleaner way to check if copyfile suceeded is to use os.path.isfile.
In this way we can omit warns in some python versions where copyfile
return the same non-0 value even is this action is successfull.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
13 years agobinutils: Inform binutils that armv5e really is valid!
Mark Hatle [Tue, 3 Apr 2012 18:39:07 +0000 (13:39 -0500)]
binutils: Inform binutils that armv5e really is valid!

A comment in the binutils sources indicate that it should support all of the
-march= parameters that gcc supports.  The tune validations noted that
gas failed on -march=armv5e.

It is not yet clear to me if this patch belongs upstream or not.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agoelfutils: disable lzma (and bzip2 for native)
Paul Eggleton [Tue, 3 Apr 2012 13:44:40 +0000 (14:44 +0100)]
elfutils: disable lzma (and bzip2 for native)

Fix some library dependency issues:
* Disable lzma as xz-native is unstated in DEPENDS
* Disable bzip2 for native as it is in ASSUME_PROVIDED and thus isn't
  available when elfutils-native is normally built, but if it gets
  rebuilt the link will be made; plus we don't need it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogdb: build with expat, add missing RRECOMMENDS_gdbserver
Andreas Oberritter [Mon, 2 Apr 2012 22:23:55 +0000 (00:23 +0200)]
gdb: build with expat, add missing RRECOMMENDS_gdbserver

* Fixes communication between gdbserver and gdb-cross
  by using the same expat settings for both recipes.
* Adds missing build dependencies for expat/expat-native.
* Adds missing glibc-thread-db runtime recommendation
  to gdbserver, which was set only for gdb.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoeglibc: SDK_GLIBC_ADDONS for eglibc-nativesdk.
Lianhao Lu [Tue, 3 Apr 2012 00:13:51 +0000 (08:13 +0800)]
eglibc: SDK_GLIBC_ADDONS for eglibc-nativesdk.

Use SDK_GLIBC_ADDONS for eglibc-nativesdk so that it is not
dependant on the target eglibc's GLIBC_ADDONS settings.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogettext: Fix sysroot conflict over owner of macros
Richard Purdie [Mon, 2 Apr 2012 11:52:12 +0000 (12:52 +0100)]
gettext: Fix sysroot conflict over owner of macros

gettext-minimal-native andgettext-native are trampling over each other's files. This can
be reproduced with:

bitbake gettext-minimal-native
bitbake gettext-native
bitbake gettext-native -c clean
bitbake shadow-native

which will fail since the aclocal gettext macros will have disappeared. This patch
fixes the problem by giving ownership of them to gettext-minimal-native and ensuring
there is a correct dependency on this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogst-ffmpeg: Fix build failures from sstate relocation
Richard Purdie [Mon, 2 Apr 2012 11:43:29 +0000 (12:43 +0100)]
gst-ffmpeg: Fix build failures from sstate relocation

This is a similar situation to:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3c96a5386355969428163ddb60216cc989e00b3d

Builds were failing with a failure in configure:

| checking for i586-poky-linux-gcc... ccache  i586-poky-linux-gcc  -m32   -march=i586 -L/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86/usr/lib
| checking whether the C compiler works... no
| configure: error: in `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/gst-ffmpeg-0.10.13-r2/gst-ffmpeg-0.10.13':
| configure: error: C compiler cannot create executables
| See `config.log' for more details

config.log shows:

configure:3976: ccache  i586-poky-linux-gcc  -m32   -march=i586 -L/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86/usr/lib -O2 -pipe -g -feliminate-unused-debug-types  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c  >&5
/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find crt1.o: No such file or directory
/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find crti.o: No such file or directory
/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find crtbegin.o: No such file or directory
/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find -lgcc
/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status

The reason being the --sysroot option is missing from the gcc commandline and
its looking in nightly-x86, not nightly-world in this case.

There is no reason to add extra -L options to the compiler, the sysroot already
takes care of this. We can therefore simply remove this incorrect CC line.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogst-ffmpeg: Fix build with gcc 4.7
Khem Raj [Fri, 30 Mar 2012 19:07:39 +0000 (12:07 -0700)]
gst-ffmpeg: Fix build with gcc 4.7

A cmp instruction with two constants is invalid, therefore 'g' constraint
is not correct but must be "rm" instead.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoapt: Fix a latent bug exposed by gcc 4.7
Khem Raj [Fri, 30 Mar 2012 19:07:38 +0000 (12:07 -0700)]
apt: Fix a latent bug exposed by gcc 4.7

Further Details are in patch itself

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agotiny: Update linux-yocto-tiny to 3.2
Darren Hart [Sun, 1 Apr 2012 07:19:58 +0000 (00:19 -0700)]
tiny: Update linux-yocto-tiny to 3.2

Migrate linux-yocto-tiny from 3.0 to 3.2. The 3.0 recipe was
based entirely on recipe-space fragments and was only a proof of concept.
The 3.2 linux-yocto meta-data now has a proper tiny KTYPE defined.

By default this recipe supports only the qemux86 machine, which builds the
common-pc support (including networking, sound, USB, VGA and serial consoles,
etc.). New machines can be added and will use the tiny KTYPE, but will need to
add any desired hardware support as the base config is very minimal.

No filesystems are supported by default, only the initramfs.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolinux-yocto: update tiny meta and configuration for kernel 3.2
Bruce Ashfield [Sun, 1 Apr 2012 03:54:41 +0000 (23:54 -0400)]
linux-yocto: update tiny meta and configuration for kernel 3.2

Updating the META SRCREV to pickup these commits:

  59f350e meta: Add common-pc-tiny.scc
  0996ca9 tiny: Minimize the tiny config
  d6b57bb meta: common-pc add dependencies to cfg

Which update the configuration for the tiny profile of the kernel
for the 3.2 release.

cc: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoself-hosted-image: fix indentation: 8 spaces --> Tab
Dexuan Cui [Sun, 1 Apr 2012 14:11:16 +0000 (22:11 +0800)]
self-hosted-image: fix indentation: 8 spaces --> Tab

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agobuilder: uncomment the settings for BB_NUMBER_THREADS and PARALLEL_MAKE
Dexuan Cui [Sun, 1 Apr 2012 13:46:02 +0000 (21:46 +0800)]
builder: uncomment the settings for BB_NUMBER_THREADS and PARALLEL_MAKE

We use sed to enable the 2 settingis in conf/local.conf.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agoself-hosted-image: renew the poky src's SRCREV that's installed into the target
Dexuan Cui [Sun, 1 Apr 2012 09:35:39 +0000 (17:35 +0800)]
self-hosted-image: renew the poky src's SRCREV that's installed into the target

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agoself-hosted-image: improve do_populate_poky_src
Dexuan Cui [Fri, 30 Mar 2012 09:31:39 +0000 (17:31 +0800)]
self-hosted-image: improve do_populate_poky_src

1) remove the assumption ${DL_DIR} ends with downloads/.
Thanks Paul Eggleton for pointing this out.

2) remove downloads/git2_* tarballs to speed up the rootfs creation.
This is ok since we still have the git2/.
Thanks Richard Purdie for suggesting this.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agogenext2fs: support large files and filesystems without using large amounts of memory
Dexuan Cui [Wed, 28 Mar 2012 16:35:09 +0000 (00:35 +0800)]
genext2fs: support large files and  filesystems without using large amounts of memory

update_to_1.95.patch was generated by making a diff bewteen the 1.4.1 release
and the latest 1.9.5 version in the cvs repo:
http://genext2fs.cvs.sourceforge.net/viewvc/genext2fs/genext2fs/genext2fs.c?revision=1.95

The patches 0001-0019 come from mailing list of genext2fs-devel
http://sourceforge.net/mailarchive/forum.php?forum_name=genext2fs-devel&max_rows=100&style=flat&viewmonth=201106

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agoqemugl: Fix GL apps failure on Ubuntu 11 host with nVidia GLX driver
Zhai Edwin [Sun, 1 Apr 2012 02:24:28 +0000 (10:24 +0800)]
qemugl: Fix GL apps failure on Ubuntu 11 host with nVidia GLX driver

Previous version of nVidia GLX driver in Ubuntu 10 cause qemu segfault, so we
fall back to Mesa GLX driver if detecting nVidia driver installed. From Ubuntu
11, nVidia GLX driver works well, while previous work around cause GL apps
failure. So this work around is limited in Ubuntu 10 only, and will be removed
in future.

[YOCTO #1886] got fixed.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobuildhistory: make seperate commits for every changed top level entry in the buildhis...
Koen Kooi [Sat, 31 Mar 2012 22:06:44 +0000 (00:06 +0200)]
buildhistory: make seperate commits for every changed top level entry in the buildhistory dir

This seperates out image changes from package changes making the image diffs a lot easier to read.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobuildhistory: record all builds
Koen Kooi [Sat, 31 Mar 2012 22:06:43 +0000 (00:06 +0200)]
buildhistory: record all builds

When nothing has changed an empty commit prefixed with "No changes" will get generated so that the commit log of the buildhistory repo provides a complete log of all builds performed, not just those that resulted in changes.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobuildhistory: remove duplicate entries from dot graph
Koen Kooi [Sat, 31 Mar 2012 22:06:42 +0000 (00:06 +0200)]
buildhistory: remove duplicate entries from dot graph

There are various conditions that lead to duplicate entries in the dot graph which need to get fixed, but this patch is a catchall. A previous attempt to address this only works on rpm which gives a \n seperated output, opkg doesn't.

Another benefit is that the sort order is now know, leading to less spurious diffs in buildhistory commits.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agocross-canadian.bbclass: fix rpath for sdk executables
Nitin A Kamble [Fri, 30 Mar 2012 22:28:23 +0000 (15:28 -0700)]
cross-canadian.bbclass: fix rpath for sdk executables

This makes the libraries located in places like this findable:
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib

Which avoids linking cross canadian sdk executables with host libraries like this:

$ ldd /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gdb
        linux-vdso.so.1 =>  (0x00007fffb7fff000)
        libreadline.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/x86_64-oe-linux/../libreadline.so.6 (0x00007fbfb5511000)
        libdl.so.2 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libdl.so.2 (0x00007fbfb530c000)
        libncurses.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libncurses.so.5 (0x00007fbfb50e9000)
        libtinfo.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libtinfo.so.5 (0x00007fbfb4ec2000)
        libz.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/x86_64-oe-linux/../libz.so.1 (0x00007fbfb4cac000)
        libm.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libm.so.6 (0x00007fbfb4a2a000)
        libpthread.so.0 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libpthread.so.0 (0x00007fbfb480d000)
        libutil.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libutil.so.1 (0x00007fbfb4609000)
        libexpat.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/x86_64-oe-linux/../libexpat.so.1 (0x00007fbfb43e0000)
        libc.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6 (0x00007fbfb4059000)
        /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000003f05000000)

[RP: Whitespace tweaks]
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agotune-cortexa8/9: fix PACKAGE tunes being all armv7at even for non-Thumb ones
Denys Dmytriyenko [Fri, 30 Mar 2012 23:31:42 +0000 (19:31 -0400)]
tune-cortexa8/9: fix PACKAGE tunes being all armv7at even for non-Thumb ones

All PACKAGE_EXTRA_ARCHS for cortexa8, cortexa8t and cortexa8-neon have typo in
referencing tune-armv7at even for non-Thumb modes. Probably a copy/paste error.
That's not the case for recently-added hard-fp tunes.

Same for cortexa9.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoscripts/bitbake: add/fix some comments
Paul Eggleton [Mon, 26 Mar 2012 12:56:26 +0000 (13:56 +0100)]
scripts/bitbake: add/fix some comments

Add some comments explaining what this script does, fix one grammatical
error in a comment and make the tar-replacement-native comment give the
full reason why it is needed.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
13 years agoscripts/bitbake: allow switching between build directories
Paul Eggleton [Mon, 26 Mar 2012 14:22:01 +0000 (15:22 +0100)]
scripts/bitbake: allow switching between build directories

The recent addition of the check to ensure the user was in their build
directory disabled the ability to switch between build directories
without re-running the build environment setup script. We can rely
upon checking for conf/bblayers.conf instead, so use this check.

This does allow BUILDDIR (which is normally set by the environment
script) to be unset; however if it is set then it is assumed to be the
correct build directory and will be used in the error message that is
shown when we can't find conf/bblayers.conf.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
13 years agoscripts/bitbake: try harder to check if pseudo exists
Paul Eggleton [Mon, 26 Mar 2012 12:44:28 +0000 (13:44 +0100)]
scripts/bitbake: try harder to check if pseudo exists

If pseudodone doesn't exist, we can get STAGING_BINDIR_NATIVE by calling
bitbake -e and use that as the path to check for pseudo before we give
up and try to build it explicitly first.

This is useful for people who share TMPDIR between multiple build
directories.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
13 years agonasm: fix issue with repeat configure
Nitin A Kamble [Fri, 30 Mar 2012 22:52:04 +0000 (15:52 -0700)]
nasm: fix issue with repeat configure

This Fixes bug: [YOCTO #2176]

This fixes the following issue as mentioned in the bug:
If nasm-native has to be rebuilt (due to a signature change) it will fail:

| checking for a BSD-compatible install... /usr/bin/install -c
| /media/large/tmp/work/x86_64-linux/nasm-native-2.07-r1/nasm-2.07/configure:
line 4261: syntax error near unexpected token `-W'
| /media/large/tmp/work/x86_64-linux/nasm-native-2.07-r1/nasm-2.07/configure:
line 4261: `PA_ADD_CFLAGS(-W)'
| ERROR: oe_runconf failed
NOTE: package nasm-native-2.07-r1: task do_configure: Failed

The failure appears to be caused by do_patch_fixaclocal being run a second time

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopkgconfig.bbclass: corrected dependency for -nativesdk.
Lianhao Lu [Sat, 31 Mar 2012 06:49:25 +0000 (14:49 +0800)]
pkgconfig.bbclass: corrected dependency for -nativesdk.

For -nativesdk, the dependency should be pkgconfig-nativesdk instead of
pkgconfig.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoautotools.bbclass: Drop -nativesdk dependency to lib-cross.
Lianhao Lu [Sat, 31 Mar 2012 06:49:23 +0000 (14:49 +0800)]
autotools.bbclass: Drop -nativesdk dependency to lib-cross.

-nativesdk recipes should not have dependency to lib-cross, which is
never used. This unnecessary dependency would result different task hash
values in sstate for different MACHINE settings.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agocrosssdk.bbclass: Set TUNE_PKGARCH to SDK_PKGARCH.
Lianhao Lu [Sat, 31 Mar 2012 06:49:22 +0000 (14:49 +0800)]
crosssdk.bbclass: Set TUNE_PKGARCH to SDK_PKGARCH.

The TUNE_PKGARCH of crosssdk should be set to SDK_ARCH, not the one
from target machine's configuration.

Fixed bug [YOCTO #2206]

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agonativesdk.bbclass: Set PACKAGE_ARCHS to SDK_PACKAGE_ARCHS.
Lianhao Lu [Sat, 31 Mar 2012 06:49:21 +0000 (14:49 +0800)]
nativesdk.bbclass: Set PACKAGE_ARCHS to SDK_PACKAGE_ARCHS.

This patch fixed the issue of reading incorrect pkgdata files. Previous
appending '-nativesdk' suffix to PACKAGE_ARCHS would result the
i686-nativesdk recipes reading in x86_64-nativesdk pkgdata files if the
MACHINE is set to qemux86-64.

Fixed bug [YOCTO #2203].

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodocbook-utils-native: fix syntax problem in jw.in
Steffen Sledz [Fri, 30 Mar 2012 09:45:47 +0000 (11:45 +0200)]
docbook-utils-native: fix syntax problem in jw.in

Fix runtime error occurred e.g. with docbook-to-man calls:

  grep: character class syntax is [[:space:]], not [:space:]
  grep: character class syntax is [[:space:]], not [:space:]
  jw: There is no frontend called "/docbook/utils-0.6.14/frontends/docbook".

See also:

   <https://qa.mandriva.com/show_bug.cgi?id=61127>

Signed-off-by: Steffen Sledz <sledz@dresearch-fe.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agovirtual/libgl: use mesa-xlib for qemuarm/qemumips/qemuppc
Zhai Edwin [Fri, 30 Mar 2012 03:43:10 +0000 (11:43 +0800)]
virtual/libgl: use mesa-xlib for qemuarm/qemumips/qemuppc

Still need mesa-xlib for emulation of GLX interface on qemuarm/mips/ppc, where
mesa-dri doesn't work for pure qemu emulator.

[YOCTO #2066] fixed.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoadt-installer: Adapted environment file name for powerpc.
Lianhao Lu [Fri, 30 Mar 2012 06:06:11 +0000 (14:06 +0800)]
adt-installer: Adapted environment file name for powerpc.

Adpated to the new environment file name for powerpc, due to the oe-core
commit c2d96179.

Fixed bug [YOCTO #2055].

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoarch-armv7a.inc: fix PACKAGE_EXTRA_ARCHS after armv7.inc was removed
Martin Jansa [Fri, 30 Mar 2012 13:26:27 +0000 (15:26 +0200)]
arch-armv7a.inc: fix PACKAGE_EXTRA_ARCHS after armv7.inc was removed

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogdk-pixbuf: Fix checksum warning issue
Richard Purdie [Fri, 30 Mar 2012 13:19:07 +0000 (14:19 +0100)]
gdk-pixbuf: Fix checksum warning issue

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agosstate-cache-management.sh: fixes and enhancement
Robert Yang [Fri, 30 Mar 2012 06:44:31 +0000 (14:44 +0800)]
sstate-cache-management.sh: fixes and enhancement

Fix a few problems and enhance its functions, it shoud be more useful
than before.

* Search in meta and meta-* for archs, and grep AVAILTUNES for archs,
  (only search meta, and grep DEFAULTTUNE before), add the host arch.
  and also can search in extra layers with --extra-layer.

* Reduce the analyzing time when remove duplicated files. It would cost
  more than 10 minutes to analyze 11,000 files before, now only needs
  about 50 seconds.

* Check the access time rather than create time.

* Need the user's confirm before really remove the file, or use --yes to
  assume yes.

* Add --stamps-dir to keep sstate files which are used by the build
  directory, and remove others this can make the sstate cache dir clean,
  it is faster and should be useful than the --remove-duplicated.

* Add --verbose to explain what is being done.

* Add "-d" which is short for --remove-duplicated

[YOCTO #2198]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agorootfs_ipk: don't echo opkg-cl output to log.do_rootfs
Martin Jansa [Fri, 30 Mar 2012 10:55:39 +0000 (12:55 +0200)]
rootfs_ipk: don't echo opkg-cl output to log.do_rootfs

* log_check can find some files with ERR or Fail substring e.g. in "Source: " field

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolibc-packgae.bbclass: Add i686 support in locale_arch_options
Noor Ahsan [Thu, 29 Mar 2012 06:48:35 +0000 (11:48 +0500)]
libc-packgae.bbclass: Add i686 support in locale_arch_options

* While building for i686 architecture an error was coming that
locale_arch_options does not have support for i686. Add missing support.
* Verified on intel architecture.

Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobc: use update-alternatives to make dc play nice with busybox
Denys Dmytriyenko [Wed, 28 Mar 2012 23:52:50 +0000 (19:52 -0400)]
bc: use update-alternatives to make dc play nice with busybox

busybox' default configuration enables dc app, which bc also provides,
setup update-alternatives to resolve the conflict.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogstreamer: Provide easy way to enable runtime debugging
Gary Thomas [Thu, 29 Mar 2012 14:40:04 +0000 (08:40 -0600)]
gstreamer: Provide easy way to enable runtime debugging

The gstreamer framework has a very useful debugging setup which is
essential for debugging pipelines and plugins.  This patch makes
it simple to enable this (disabled by default).  To enable debugging,
just add this line to local.conf
  GSTREAMER_DEBUG = "--enable-debug"

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agorunqemu: set console=ttyS0 when running with nographic option
Scott Garman [Thu, 29 Mar 2012 15:57:37 +0000 (08:57 -0700)]
runqemu: set console=ttyS0 when running with nographic option

When passing the nograhic option to the runqemu script, set
console=ttyS0 in the kernel options so the user can view
the kernel boot messages.

This fixes [YOCTO #1475]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>