]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
13 years agocore-image-rt-*.bb: require munges DESCRIPTION
Beth Flanagan [Mon, 16 Apr 2012 20:10:31 +0000 (13:10 -0700)]
core-image-rt-*.bb: require munges DESCRIPTION

The require of core-image-minimal overrides the description.
The best fix for this would be conditional setting of DESCRIPTION
in the required images for all image descriptions, but that opens
a potential can of worms. Moving the require fixes this.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoautogen-native: Fix sstate relocation issue when reusing libguile
Richard Purdie [Mon, 16 Apr 2012 21:08:18 +0000 (22:08 +0100)]
autogen-native: Fix sstate relocation issue when reusing libguile

This was found to cause issues on the Yocto autobuilders and fixes do_compile
failures when guile-native has been relocated.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobitbake.conf: Include abi_version.conf in a early stage
Dongxiao Xu [Mon, 16 Apr 2012 07:52:01 +0000 (15:52 +0800)]
bitbake.conf: Include abi_version.conf in a early stage

We may define new OELAYOUT_ABI variable in ${DISTRO}.conf, therefore we
need to move the abi_version.conf before that.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoMultilib: Fix RDEPENDS in libc-package.bbclass, useradd.bbclass...
Zhai Edwin [Mon, 16 Apr 2012 06:50:00 +0000 (14:50 +0800)]
Multilib: Fix RDEPENDS in libc-package.bbclass, useradd.bbclass...

MLPREFIX is needed in RDEPENDS for multilib build

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoopkg-config-base/poky-feed-config-opkg: Always use ALL_MULTILIB_PACKAGE_ARCHS to...
Richard Purdie [Mon, 16 Apr 2012 11:31:45 +0000 (11:31 +0000)]
opkg-config-base/poky-feed-config-opkg: Always use ALL_MULTILIB_PACKAGE_ARCHS to build arch list

We need consistent configuration files for opkg so we might as well always use
the full list. This is equal to PACKAGE_ARCHS in the non-multilib case.

This fixes various multilib failures with ipk multilibs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodropbear: Allow tasks to be safely re-executed
Richard Purdie [Mon, 16 Apr 2012 10:32:46 +0000 (11:32 +0100)]
dropbear: Allow tasks to be safely re-executed

Re-running the debug_patch task would cause the build to fail. This patch
moves the extra patch handling directly into SRC_URI and removes the need
for the separate task, allowing safe re-execution of each task.

[YOCTO #2194]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodocbook-utils-native: Fix re-execution of the unpack task
Richard Purdie [Mon, 16 Apr 2012 10:05:02 +0000 (11:05 +0100)]
docbook-utils-native: Fix re-execution of the unpack task

If the do_unpack task is re-executed, the sed_done stamp was not removed, the
sed commands wouldn't re-run and the build would fail in do_compile. This
patch ensures the stamp is in ${S} and that we clean that directory
when unpack runs so it is a build from sctatch at that point.

[YOCTO #2194]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agosgml-common: Fix re-execution of the compile task
Richard Purdie [Mon, 16 Apr 2012 09:49:45 +0000 (10:49 +0100)]
sgml-common: Fix re-execution of the compile task

The sed command run during do_compile isn't idempotent. This change fixes it
so that it is and the compile task can be re-executed.

[YOCTO #2194]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agowget: Fix re-execution issue
Richard Purdie [Mon, 16 Apr 2012 09:48:35 +0000 (10:48 +0100)]
wget: Fix re-execution issue

The patch in this recipe patches both configure and configure.in which leads
to build failures once configure has executed and regenerated configure.

The fix to make patch re-executable is not to patch configure and
only patch configure.in.

[YOCTO #2194]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopython: Fix re-execution problem due to patching configure and configure.in
Richard Purdie [Mon, 16 Apr 2012 09:47:56 +0000 (10:47 +0100)]
python: Fix re-execution problem due to patching configure and configure.in

There was a patch patching both configure and configure.in. Since the recipes
all autoreconf, this is pointless and means subsequent patch tasks fail.

The fix is to only patch configure.in.

[YOCTO #2194]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogcc-configure-common.inc: Stop gcc looking at build system paths
Richard Purdie [Sun, 15 Apr 2012 17:05:53 +0000 (18:05 +0100)]
gcc-configure-common.inc: Stop gcc looking at build system paths

There were puzzling failures when you make a force recompile of any gcc
component. The error was in do_configure with cross-compilation badness
being detected in config.log files.

gcc is different in that many of the config.log files are generated during
the do_compile phase. This means this host contamination issue has always
been present but only shows up on a rebuild.

The fix is to force the appropriate configuration variable to "none required"
then gcc won't look in the bad locations.

[YOCTO #2279]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogst-plugins-bad: add curl as build dependency
Dongxiao Xu [Sat, 14 Apr 2012 10:44:14 +0000 (18:44 +0800)]
gst-plugins-bad: add curl as build dependency

gst-plugins-bad needs curl.h to finish its build, so add curl as its
dependency.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agonet-tools: Fix do_patch to be re-executable
Richard Purdie [Sun, 15 Apr 2012 16:06:47 +0000 (17:06 +0100)]
net-tools: Fix do_patch to be re-executable

This recipe's do_patch was not able to be re-executed due to its custom
patching functions. This fixes things so that it can be re-executed.

It also fixes the unpack task re-execution by ensuring ${S} is clean
before the unpack starts.

[YOCTO #2194]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoman-pages: Fix to allow re-execution of tasks
Richard Purdie [Sun, 15 Apr 2012 15:32:29 +0000 (16:32 +0100)]
man-pages: Fix to allow re-execution of tasks

The all target in the makefile triggers "screen" and "remove" targets,
neither of which do anything useful/sane for our usecases. The simplest
way to get the makefile to behave is to only use the install target.

Clean up the recipe a bit whilst making these changes and simplify things.

[YOCTO #2194]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopseudo: Ensure the correct libraries are used at runtime
Richard Purdie [Sun, 15 Apr 2012 15:00:42 +0000 (16:00 +0100)]
pseudo: Ensure the correct libraries are used at runtime

There can be a conflict between the nativesdk libc and the host system's
libc. It is assumed the nativesdk version is of an equal or higher version.
This is a particular issue for pseudo if its loading a system binary
since the system's libc might be used of an older verison which would
then confuse libpseudo.so when loaded as a preload.

To avoid this, set LD_LIBRARY_PATH so the nativesdk libc is always
used.

Since we now use --without-rpath, we can remove the MAKEOPTS RPATH workaround.

[YOCTO #2299]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agounfs-server: Fix do_configure so it can be re-executed safely
Richard Purdie [Sun, 15 Apr 2012 13:02:02 +0000 (14:02 +0100)]
unfs-server: Fix do_configure so it can be re-executed safely

[YOCTO #2194]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoguile: Fix binary relocation issue for precompiled guile objects
Richard Purdie [Sun, 15 Apr 2012 11:02:18 +0000 (12:02 +0100)]
guile: Fix binary relocation issue for precompiled guile objects

When guile-native was relocated, there were messages like:

;;; note: source file /srv/home/pokybuild/yocto-autobuilder/yocto-slave/emenlow/build/build/tmp/sysroots/x86_64-linux/usr/share/guile/2.0/ice-9/eval.scm
;;;       newer than compiled /srv/home/pokybuild/yocto-autobuilder/yocto-slave/fri2/build/build/tmp/sysroots/x86_64-linux/usr/lib/guile/2.0/ccache/ice-9/eval.go

and this confuses things like the autogen-native "guile --version"
check. This patch ensures the wrapper script sets the necessary
variables correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoconnman-gnome: connman 0.79 API fixes
Paul Eggleton [Sun, 15 Apr 2012 02:01:57 +0000 (03:01 +0100)]
connman-gnome: connman 0.79 API fixes

Fix connman-gnome to work with connman 0.79, which made a number of
fairly serious DBus API changes. Also switch over to the newly
repopulated git repo on kernel.org in which the two previous patches
have been merged.

Fixes [YOCTO #2202].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogrub: Add missing dependency on autogen-native to avoid build failures
Richard Purdie [Sat, 14 Apr 2012 22:42:16 +0000 (23:42 +0100)]
grub: Add missing dependency on autogen-native to avoid build failures

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodistro_tracking: add entries for several new recipes
Scott Garman [Sat, 14 Apr 2012 17:38:01 +0000 (10:38 -0700)]
distro_tracking: add entries for several new recipes

Added distro tracking fileds for the following recipes:

qt-mobility-x11
gst-plugin-bluetooth
alsa-state
ocf-linux
avahi-ui
libjson
systemtap-uprobes
xf86-video-fbdev
u-boot-fw-utils
qt4-graphics-system
qt-mobility-embedded
lttng-tools
shadow-securetty

Also fixed a few minor typos in others (spelling of bluetooth and months)

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodistro_tracking: add some additional DISTRO_ALIASES
Saul Wold [Sat, 14 Apr 2012 17:38:00 +0000 (10:38 -0700)]
distro_tracking: add some additional DISTRO_ALIASES

ltp
rgb
libksba
stat
directfb-example
libfakekey
builder
core-gtk-directfb
task-core-tools-*
task-self-hosted
sato-screenshot
libxxf86misc
qmmp
portmap

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agomulitlib.bbclass: Ensure correct value of ALL_MULTILIB_PACKAGE_ARCHS is preserved
Richard Purdie [Sat, 14 Apr 2012 21:46:17 +0000 (22:46 +0100)]
mulitlib.bbclass: Ensure correct value of ALL_MULTILIB_PACKAGE_ARCHS is preserved

The value of ALL_MULTILIB_PACKAGE_ARCHS needs to be consistent both
in multilib extended recipes and in normal context. If this isn't the
case it can lead to inconsistent configuration files at a minimum.

This patch ensures the value is preserved during the class extension code
since computing it after that point is hard.

[YOCTO #2290]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoupdate-alternatives: Fix for compatibility with multilib recipes
Richard Purdie [Sat, 14 Apr 2012 17:31:24 +0000 (18:31 +0100)]
update-alternatives: Fix for compatibility with multilib recipes

The PN == BPN test was designed to exclude native/nativesdk but also unfortunately
excludes multilib unintentionally. This change fixes this and allows multilib images
with alternatives to funciton correctly.

[YOCTO #2214]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoexternal-poky-toolchain: This is broken and confusing now, remove it
Richard Purdie [Sat, 14 Apr 2012 17:30:42 +0000 (18:30 +0100)]
external-poky-toolchain: This is broken and confusing now, remove it

This avoids a number of bogus preferred providers warnings too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agosystemtap: Ensure FILESPATH is set so systemtap-uprobes can find patches
Richard Purdie [Sat, 14 Apr 2012 13:30:34 +0000 (14:30 +0100)]
systemtap: Ensure FILESPATH is set so systemtap-uprobes can find patches

This allows systemtap-uprobes to build again after the recently
added patch broke the builds.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoeglibc: fix builds on fedora 17 alpha
Nitin A Kamble [Sat, 14 Apr 2012 08:59:05 +0000 (01:59 -0700)]
eglibc: fix builds on fedora 17 alpha

Generally distros keep perl at /sur/bin/perl
Fedora 17 alpha also has /bin/perl

this causes eglibc build on such distros to put perl interpreter path in
the perl scripts as /bin/perl

But we set perl location for target as /usr/bin/perl

This mismatch of perl path causes failure of rootfs image creation
like this:

| error: Failed dependencies:
|       /bin/perl is needed by eglibc-utils-2.13-r23+svnr15508.i586
NOTE: package core-image-sato-1.0-r0: task do_rootfs: Failed
ERROR: Task 8
(/home/nitin/prj/poky.git/meta/recipes-sato/images/core-image-sato.bb,
do_rootfs) failed with exit code '1'

This Fixes bug : [YOCTO #2286]

RP: Updated to better account for -nativesdk
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogrub-1.99: fix configure error
Nitin A Kamble [Sat, 14 Apr 2012 08:59:08 +0000 (01:59 -0700)]
grub-1.99: fix configure error

This commit deals with this configure error.

configure:20306: checking whether `ccache i586-poky-linux-gcc  -m32
-march=core2 -msse3 -mtune=generic -mfpmath=sse
--sysroot=/builddisk/build/build0/tmp/sysroots/emenlow' generates calls
to `__enable_execute_stack()'
configure:20320: ccache i586-poky-linux-gcc  -m32    -march=core2 -msse3
-mtune=generic -mfpmath=sse
--sysroot=/builddisk/build/build0/tmp/sysroots/emenlow -O2 -pipe -g
-feliminate-unused-debug-types -Wall -W -Wshadow -Wpointer-arith
-Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1
-falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2
-mno-3dnow -mfpmath=387 -fno-dwarf2-cfi-asm -m32 -fno-stack-protector
-mno-stack-arg-probe -Werror -Wno-trampolines -falign-loops=1 -S
conftest.c
conftest.c:308:6: error: no previous prototype for 'g'
[-Werror=missing-prototypes]
cc1: all warnings being treated as errors
configure:20323: $? = 1
configure:20327: error: ccache i586-poky-linux-gcc  -m32    -march=core2
-msse3 -mtune=generic -mfpmath=sse
--sysroot=/builddisk/build/build0/tmp/sysroots/emenlow failed to produce
assembly code

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogrub-efi-native, grub: fix build with gcc 4.7
Nitin A Kamble [Sat, 14 Apr 2012 08:59:07 +0000 (01:59 -0700)]
grub-efi-native, grub: fix build with gcc 4.7

This fixes bug [YOCTO #2293]

These build failure caused by gcc4.7 is fixed with a backport of a
grub-1.99 patch from fedora 17 alpha plus two more new patches

| gcc -DHAVE_CONFIG_H -I. -I..  -Wall -W -I../include -I../include
-DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=I386_EFI -nostdinc -isystem
/usr/lib/gcc/x86_64-redhat-linux/4.7.0/include
-DGRUB_FILE=\"commands/efi/acpi.c\" -I. -I. -I.. -I.. -I../include
-I../include
-isystem/home/nitin/builds/build0/tmp/sysroots/x86_64-linux/usr/include
-O2 -pipe -g -feliminate-unused-debug-types -Wall -W -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g
-falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse
-mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector
-mno-stack-arg-probe -Werror -Wno-trampolines          -ffreestanding
-isystem/home/nitin/builds/build0/tmp/sysroots/x86_64-linux/usr/include
-O2 -pipe -c -o commands/efi/acpi_module-acpi.o `test -f
'commands/efi/acpi.c' || echo './'`commands/efi/acpi.c
| gcc: error: unrecognized command line option '-melf_i386'
| make[3]: *** [trig.module] Error 1

| make[3]: Entering directory
`/home/nitin/builds/build0/tmp/work/x86_64-linux/grub-efi-i586-native-1.99-r7/grub-1.99/grub-core'
| gcc -DHAVE_CONFIG_H -I. -I..  -Wall -W -I../include -I../include
-DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=I386_EFI -nostdinc -isystem
/usr/lib/gcc/x86_64-redhat-linux/4.7.0/include
-DGRUB_FILE=\"fs/btrfs.c\" -I.
-I. -I.. -I.. -I../include -I../include
-isystem/home/nitin/builds/build0/tmp/sysroots/x86_64-linux/usr/include
-O2
-pipe -g -feliminate-unused-debug-types -Wall -W -Wshadow
-Wpointer-arith
-Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1
-falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2
-mno-3dnow
-fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe
-Werror
-Wno-trampolines          -ffreestanding
-isystem/home/nitin/builds/build0/tmp/sysroots/x86_64-linux/usr/include
-O2
-pipe -c -o fs/btrfs_module-btrfs.o `test -f 'fs/btrfs.c' || echo
'./'`fs/btrfs.c
| fs/btrfs.c: In function 'grub_btrfs_read_logical':
| fs/btrfs.c:791:5: error: 'err' may be used uninitialized in this
function
[-Werror=maybe-uninitialized]
| fs/btrfs.c:592:18: note: 'err' was declared here
| cc1: all warnings being treated as errors
| make[3]: *** [fs/btrfs_module-btrfs.o] Error 1

| gcc -DHAVE_CONFIG_H -I. -I..  -Wall -W -I../include -I../include
-DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=I386_EFI -nostdinc -isystem
/usr/lib/gcc/x86_64-redhat-linux/4.7.0/include
-DGRUB_FILE=\"fs/zfs/zfs.c\" -I. -I. -I.. -I.. -I../include -I../include
-isystem/home/nitin/builds/build0/tmp/sysroots/x86_64-linux/usr/include
-O2 -pipe -g -feliminate-unused-debug-types -Wall -W -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g
-falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse
-mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector
-mno-stack-arg-probe -Werror -Wno-trampolines          -ffreestanding
-isystem/home/nitin/builds/build0/tmp/sysroots/x86_64-linux/usr/include
-O2 -pipe -c -o fs/zfs/zfs_module-zfs.o `test -f 'fs/zfs/zfs.c' || echo
'./'`fs/zfs/zfs.c
| fs/zfs/zfs.c: In function 'get_filesystem_dnode':
| fs/zfs/zfs.c:1449:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:1449:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c: In function 'make_mdn':
| fs/zfs/zfs.c:1478:3: error: dereferencing type-punned pointer will
break strict-alERROR: Function failed: do_compile (see
/home/nitin/builds/build0/tmp/work/x86_64-linux/grub-efi-i586-native-1.99-r7/temp/log.do_compile.9293
for further information)
| iasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c: In function 'dnode_get_fullpath':
| fs/zfs/zfs.c:1554:3: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:1554:3: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:1571:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:1571:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c: In function 'grub_zfs_open':
| fs/zfs/zfs.c:2234:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:2234:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c: In function 'fill_fs_info':
| fs/zfs/zfs.c:2362:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:2362:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:2395:3: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:2395:3: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c: In function 'iterate_zap':
| fs/zfs/zfs.c:2420:5: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:2420:5: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c: In function 'grub_zfs_dir':
| fs/zfs/zfs.c:2483:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:2483:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:2484:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:2484:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:2502:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| fs/zfs/zfs.c:2502:7: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
| cc1: all warnings being treated as errors
| make[3]: *** [fs/zfs/zfs_module-zfs.o] Error 1

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogrub-1.99: use gcc-cross for building the target binaries
Nitin A Kamble [Sat, 14 Apr 2012 08:59:06 +0000 (01:59 -0700)]
grub-1.99: use gcc-cross for building the target binaries

It was using distro gcc to build binaries for target. This got detected
on fedora 17 alpha, on which it hit an gcc-4.7 issue.

This Fixes Bug: [Yocto #2291]

More information in the patch header

Thanks to Saul Wold for suggesting to remove the --target parameter from
EXTRA_OECONF var.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agonspr: fix package spliting
Dexuan Cui [Fri, 13 Apr 2012 10:04:09 +0000 (18:04 +0800)]
nspr: fix package spliting

Here /usr/lib/lib*.so files are binaries rather than symbol links.
We should package them into ${PN} rather than ${PN}-dev, or else,
when a package, that rdepends on nspr, is packaged, we get a
"non-dev package rdepends on nspr-dev" ERROR.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agosystemtap: disable document generation by default
Tom Zanussi [Fri, 13 Apr 2012 19:56:03 +0000 (14:56 -0500)]
systemtap: disable document generation by default

Building the systemtap documentation adds significantly to the build
time, so disable it by default.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agosystemtap: fix docproc build error
Tom Zanussi [Fri, 13 Apr 2012 19:56:02 +0000 (14:56 -0500)]
systemtap: fix docproc build error

When building docs in systemtap, docproc is used to generate the
tapset documentation, but it gets built for the target, while it needs
to be build for the host instead.  This change causes that to happen.

Fixes [YOCTO #2193].

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolinux-yocto: allow .cfg, .scc, .patch and defconfigs to be processed in order
Bruce Ashfield [Fri, 13 Apr 2012 20:55:44 +0000 (16:55 -0400)]
linux-yocto: allow .cfg, .scc, .patch and defconfigs to be processed in order

During testing/extension of the linux-yocto-tiny kernel it was found that
defconfigs were not always properly applied. This was due to two issues:

  - not being able to fully control the order of objects applied to the
    git tree on the SRC_URI
  - defconfigs triggering --allnoconfig before being applied

To fix this, the recipe space code that previously detected and generated
automatic features moves back to the kernel tools (where it was before) and
is updated to also process .cfg and defconfigs. Moving this back to the
tools allow other recipes to automatically benefit from the additional
support.

The second issue is addressed by allowing configme to take --alldefconfig
when a recipe wishes to pass a defconfig and override the default
behaviour.

Fixes [YOCTO: 2250]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolinux-yocto/3.2: add igb support to romley
Bruce Ashfield [Fri, 13 Apr 2012 20:55:43 +0000 (16:55 -0400)]
linux-yocto/3.2: add igb support to romley

Updating the 3.2 recipe SRCREVs to pickup the following meta change:

[
    meta: Add igb.scc to Romley

    Romley machine has 82580 Giga bit Ethernet Controller.
    Add the relavent Nic driver to it.

Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoRevert "eglibc: fix perl path in target scripts on fedora 17 alpha"
Richard Purdie [Fri, 13 Apr 2012 21:38:14 +0000 (22:38 +0100)]
Revert "eglibc: fix perl path in target scripts on fedora 17 alpha"

This reverts commit 7c95d554c431451f975e1e5d0336d1fb7d0ce7ae.

eglibc uses the PERL to execute things as well as encoding the path
in target scripts. We will therefore have to resort to sed on the scripts
at do_install time to fix the problems originally reported. This patch
causes various weird build failures and needs to be removed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agorpm-native: Compile python rpm module (with-python)
Andrei Gherzan [Wed, 11 Apr 2012 14:26:17 +0000 (17:26 +0300)]
rpm-native: Compile python rpm module (with-python)

This module is needed by python scripts from createrepo native package.

[YOCTO #2134]

RP: Add missing DEPENDS on python-native
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopackage-index: Force NATIVE python to use modules from STAGING_DIR_NATIVE
Andrei Gherzan [Wed, 11 Apr 2012 14:26:16 +0000 (17:26 +0300)]
package-index: Force NATIVE python to use modules from STAGING_DIR_NATIVE

Export PYTHONHOME to ${STAGING_DIR_NATIVE}/usr. In this way python will search
for modules in native sysroot.

[YOCTO #2134]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agocreaterepo: Python scripts should use the python interpreter from env
Andrei Gherzan [Wed, 11 Apr 2012 14:26:15 +0000 (17:26 +0300)]
createrepo: Python scripts should use the python interpreter from env

Added path to modify the hardcoded path of python interpreter from python
scripts.
The python interpreter should be the one from native sysroot and not the
one from host machine.

[YOCTO #2134]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoeglibc: fix perl path in target scripts on fedora 17 alpha
Nitin A Kamble [Fri, 13 Apr 2012 04:43:44 +0000 (21:43 -0700)]
eglibc: fix perl path in target scripts on fedora 17 alpha

fedora 17 has /usr/bin/perl as well as /bin/perl, which results in
 the perl path set in thetarget  perl scripts as /bin/perl
While we install perl on target at ${bindir}/perl i.e. /usr/bin/perl
Hence the target perl scripts are broken when build is done on fedora 17.
Work around the issue by providing cached value of perl path to eglibc

This fixes bug [YOCTO #2286]

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoeglibc: fix re-execution of task
Venkata ramana gollamudi [Fri, 13 Apr 2012 11:44:49 +0000 (11:44 +0000)]
eglibc: fix re-execution of task

Task do_patch_append calling do_fix_ia_headers is removing files using "rm" not "rm -f".
So first time execution of patch task is success, while re-execution of patch task
fails as it tries to remove the files already removed.

So changed "rm" to "rm -f".

[Yocto #2194]

Signed-off-by: Venkata Ramana Gollamudi <ramana.gollamudi@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoboost: fix re-execution of task
Venkata ramana gollamudi [Fri, 13 Apr 2012 11:42:46 +0000 (11:42 +0000)]
boost: fix re-execution of task

After building boost package, re-execution of boostconfig task followed by
re-execution of compile task is giving following error
"error: duplicate initialization of gcc with the following parameters" during compilation
It is because multiple entries of gcc are being added during boostconfig re-execution
there by failing the compilation.

The patch fixes adding multiple "Using gcc" entries into /tools/build/v2/user-config.jam

[Yocto #2194]

Signed-off-by: Venkata Ramana Gollamudi <ramana.gollamudi@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoPR bump packages with gdbm in DEPENDS
Andrei Gherzan [Fri, 13 Apr 2012 10:34:19 +0000 (13:34 +0300)]
PR bump packages with gdbm in DEPENDS

This is done because of this change in gdbm:
"gdbm: Package compat libs in gdbm-compat"

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogdbm: Package compat libs in gdbm-compat
Andrei Gherzan [Fri, 13 Apr 2012 10:34:18 +0000 (13:34 +0300)]
gdbm: Package compat libs in gdbm-compat

In order to avoid breaking packages which depend on old package name libgdbm4 (>= 1.10),
compat libs are packaged into a separate package named gdbm-compat.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoRevert "default-distrovars: remove NO32LIBS setting"
Richard Purdie [Fri, 13 Apr 2012 14:50:00 +0000 (15:50 +0100)]
Revert "default-distrovars: remove NO32LIBS setting"

We still need this value to keep the sanity testing working. The other
part of the change is still valid.

This reverts commit cb940f46efacddc7200581edba034e4201abb94a.

13 years agoopkg-utils: Update to include a fix for version comparision issues
Richard Purdie [Fri, 13 Apr 2012 13:56:05 +0000 (14:56 +0100)]
opkg-utils: Update to include a fix for version comparision issues

This brings the version comparision within opkg-utils into sync with that
in opkg itself.

[YOCTO #2233]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogcc-4.6: Add fix for relocation problem and ccache
Richard Purdie [Fri, 13 Apr 2012 13:13:48 +0000 (14:13 +0100)]
gcc-4.6: Add fix for relocation problem and ccache

If the toolchain is reused from sstate and ccache is installed, build failures
were occuring due to gcc trying to access the original sysroot rather than the
new one, particularly if the old sysroot existed but was not readable by the
current user.

This turns out of the an issue inside gcc to do with preservation of the sysroot
option. See the gcc patch for more details. It only triggers when preprocessed
sources are used which happens when ccache is used.

The same issue occurs with c++ and c++-cpp-output so the same fix is applied there.

[YOCTO #2074]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodefault-distrovars: remove NO32LIBS setting
Paul Eggleton [Fri, 13 Apr 2012 12:40:17 +0000 (13:40 +0100)]
default-distrovars: remove NO32LIBS setting

The ??= assignment in pseudo.inc effectively nullifies this ??=
assignment here, so remove it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopseudo: default NO32LIBS to 1
Paul Eggleton [Fri, 13 Apr 2012 12:35:16 +0000 (13:35 +0100)]
pseudo: default NO32LIBS to 1

If this value is not set to 1, then systems with some 32-bit libraries
but no 32-bit version of libgcc installed will have pseudo-native fail
at do_compile. It should only really be set to 0 by those who know what
they are doing.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobase.bbclass: Fix PACKAGECONFIG issues with native and nativesdk BBCLASSEXTEND recipe...
Richard Purdie [Thu, 12 Apr 2012 13:04:18 +0000 (14:04 +0100)]
base.bbclass: Fix PACKAGECONFIG issues with native and nativesdk BBCLASSEXTEND recipes (and multilib)

This patch fixes up the issues that were being seen where BBCLASSEXTEND and
PACKAGECONFIG were interacting badly. It also ensures PACKAGECONFIG interacts
properly with multilib builds.

Ideally some of this code will be abstracted into lib/oe/classextend.py but
at this point in release more invasive changes like this are inappropriate.

This patch also removed empty strings from expressions rather than
passing them around as this was complicating the additional code
unnecessarily.

The patch was verified against the OE-Core metadata where the return values of
expandFilter() were sanity checked by hand for native/nativesdk and
multilib combinations.

[YOCTO #2225]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agomklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7
Robert Yang [Thu, 12 Apr 2012 14:49:02 +0000 (07:49 -0700)]
mklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7

Many of the standard C++ library include files have been edited to no
longer include <unistd.h> to remove namespace pollution in gcc 4.7, so
we need include <unistd.h> manually sometimes.

More information:
http://gcc.gnu.org/gcc-4.7/porting_to.html

[YOCTO #2278]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
[Updated patch header - sgw]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agorpm: Ensure that we check both providename and filepaths
Mark Hatle [Thu, 12 Apr 2012 21:21:23 +0000 (16:21 -0500)]
rpm: Ensure that we check both providename and filepaths

In lib/rpmts.c we need to make sure to look for missing dependencies,
such as /bin/sh, in both the providename and filepaths DB.  Previously
the system would key off an initial '/' and only look in the filepaths DB.

This causes problems when a package such as "bash", has a Provides: /bin/sh.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopseudo: Tell pseudo to avoid specifying an RPATH
Mark Hatle [Thu, 12 Apr 2012 21:21:22 +0000 (16:21 -0500)]
pseudo: Tell pseudo to avoid specifying an RPATH

[Yocto #2251]

Add --without-rpath to avoid embedding rpaths into the pseudo
components.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopackage_rpm.bbclass: Set tmppath for rpm to somewhere which won't conflict with the...
Richard Purdie [Thu, 12 Apr 2012 20:16:41 +0000 (20:16 +0000)]
package_rpm.bbclass: Set tmppath for rpm to somewhere which won't conflict with the rootfs

If the rootfs has a specific layout in mind for /var/tmp, it should be
free to create this. Preinst scripts trigger rpm to create its tmppath
directory which could potentially conflict with this.

We're seeing issues if the provider of the /var/tmp wants to use a symlink
and a preinst script executes before it has been installed. This change
places tmppath as used by rpm somewhere safe which is already automatically
cleaned up too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolibunistring: Fix parallel make issue
Richard Purdie [Thu, 12 Apr 2012 08:42:59 +0000 (09:42 +0100)]
libunistring: Fix parallel make issue

See patch header for the full description of the parallel make issue this resolves.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolinux-dtb: Ensure dtb files are covered by sstate
Richard Purdie [Thu, 12 Apr 2012 09:18:58 +0000 (10:18 +0100)]
linux-dtb: Ensure dtb files are covered by sstate

The dtb files were not being installed into a location compatible with sstate and
the do_deploy task. This means in builds just using sstate, the dtb files disappeared.

This patch fixes the code to use the correct location for deploy files.

[YOCTO #2190]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>