]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
14 years agodistro tracking: minor fix to mc lastest version
Saul Wold [Mon, 14 Feb 2011 07:57:00 +0000 (23:57 -0800)]
distro tracking: minor fix to mc lastest version

Signed-off-by: Saul Wold <sgw@linux.intel.com>
14 years agodbus: change owner and mode for dbus-daemon-launch-helper in postinst
Dongxiao Xu [Fri, 11 Feb 2011 09:05:06 +0000 (17:05 +0800)]
dbus: change owner and mode for dbus-daemon-launch-helper in postinst

Add code in dbus postinst to change owner and mode for
dbus-daemon-launch-helper.

[BUGID #603]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
14 years agowpa-supplicant: change dbus interface
Dongxiao Xu [Fri, 11 Feb 2011 09:03:55 +0000 (17:03 +0800)]
wpa-supplicant: change dbus interface

The new interface "fi.w1.wpa_supplicant1" is used in latest connman,
thus add it in the wpa_supplicant default configuration.

Besides, enable netlink support with libnl 2.0 mode.

[BUGID #603]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
14 years agobitbake/fetch2: Revert part of the unpack change until the issues with it are resolved
Richard Purdie [Sun, 13 Feb 2011 00:05:06 +0000 (00:05 +0000)]
bitbake/fetch2: Revert part of the unpack change until the issues with it are resolved

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agorecipes: pre/post actions
Mark Hatle [Thu, 10 Feb 2011 00:13:50 +0000 (18:13 -0600)]
recipes: pre/post actions

A number of the recipes did not properly label their pre and post
actions, causing the actions to occur in all split packages.  This
was corrected by defaulting to _${PN} in most cases.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
14 years agopackage.bbclass: Breakout the strip from the populate_packages
Mark Hatle [Tue, 8 Feb 2011 22:07:47 +0000 (16:07 -0600)]
package.bbclass: Breakout the strip from the populate_packages

Break out the file split/strip from the populate_packages.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
14 years agobusybox: Rework busybox to fix limitations in initscripts
Mark Hatle [Fri, 11 Feb 2011 20:18:16 +0000 (14:18 -0600)]
busybox: Rework busybox to fix limitations in initscripts

A recent busybox change added a "second" initscript to the main busybox
package.  This however is not supported by the update-rc.d.bbclass.
Instead we split the package so that each initscript gets it's own split.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
14 years agofetch2: unpack revision
Mark Hatle [Fri, 11 Feb 2011 17:43:54 +0000 (11:43 -0600)]
fetch2: unpack revision

Revise the unpack function to have a way to disable the unpack.  This is
based on the work from "Andreas Oberritter <obi@opendreambox.org>", see
http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=2bdfe8519eda8067845019a699acdf19a21ba380

In addition, the to_boolean function comes from the work of
"Chris Larson <chris_larson@mentor.com>", see
http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=900cc29b603691eb3a077cb660545ead3715ed54

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
14 years agoopenjade: fix build issues
Scott Garman [Thu, 10 Feb 2011 00:00:08 +0000 (16:00 -0800)]
openjade: fix build issues

* Recipe is now -native only
* Fix install failure due to missing install path
* Removed recipe cruft that was not needed, simplifying it
* Removed unnecessary patches
* Improved patch comment for makefile.patch

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
14 years agomirrors.bbclass: Ensure we don't overwrite any existing MIRRORS variable
Richard Purdie [Fri, 11 Feb 2011 23:50:46 +0000 (23:50 +0000)]
mirrors.bbclass: Ensure we don't overwrite any existing MIRRORS variable

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: Add explict network access exception and handling to give users usabl...
Richard Purdie [Fri, 11 Feb 2011 22:08:21 +0000 (22:08 +0000)]
bitbake/fetch2: Add explict network access exception and handling to give users usable error messages

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: Fix message about md5 checksums when sha256 is incorrect
Richard Purdie [Fri, 11 Feb 2011 21:59:23 +0000 (21:59 +0000)]
bitbake/fetch2: Fix message about md5 checksums when sha256 is incorrect

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agolttng-control: Fix SRC_URL to point at lttng.org
Saul Wold [Fri, 11 Feb 2011 15:57:36 +0000 (07:57 -0800)]
lttng-control: Fix SRC_URL to point at lttng.org

Signed-off-by: Saul Wold <sgw@linux.intel.com>
14 years agopuzzles: Update to r9084
Saul Wold [Fri, 11 Feb 2011 15:51:57 +0000 (07:51 -0800)]
puzzles: Update to r9084

Signed-off-by: Saul Wold <sgw@linux.intel.com>
14 years agobitbake/fetch2: Fix patch merge error
Richard Purdie [Fri, 11 Feb 2011 16:24:26 +0000 (16:24 +0000)]
bitbake/fetch2: Fix patch merge error

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: Add some debug output so its clear when PREMIRRORS, upstream and...
Richard Purdie [Fri, 11 Feb 2011 16:16:51 +0000 (16:16 +0000)]
bitbake/fetch2: Add some debug output so its clear when PREMIRRORS, upstream and MIRRORS are being used

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: Ensure network access status is reset for each loop iteration in...
Richard Purdie [Fri, 11 Feb 2011 16:15:36 +0000 (16:15 +0000)]
bitbake/fetch2: Ensure network access status is reset for each loop iteration in download()

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agosstate: Fix bugs after new fetcher
Zhai Edwin [Fri, 11 Feb 2011 13:55:07 +0000 (21:55 +0800)]
sstate: Fix bugs after new fetcher

Current sstate's fetch code doesn't reflect latest fetcher changes, so old
fetch style cause exception and fail silently.

[BUGID #708] got fixed.

Another issue is "import xxx" in python function from sstate.bbclass can only
sit in the head of the function, else have UnboundLocalError: "local variable
XXX referenced before assignment".

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
14 years agobitbake/fetch2/wget: Fix missing string parameter reference
Richard Purdie [Fri, 11 Feb 2011 12:16:44 +0000 (12:16 +0000)]
bitbake/fetch2/wget: Fix missing string parameter reference

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: Ensure failed fetch attempts are logged in the debug logs
Richard Purdie [Fri, 11 Feb 2011 12:14:20 +0000 (12:14 +0000)]
bitbake/fetch2: Ensure failed fetch attempts are logged in the debug logs

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: Correctly handle git mirror tarball fetching
Richard Purdie [Fri, 11 Feb 2011 12:06:44 +0000 (12:06 +0000)]
bitbake/fetch2: Correctly handle git mirror tarball fetching

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: Pass over malformatted (empty) mirror url lines
Richard Purdie [Fri, 11 Feb 2011 12:04:59 +0000 (12:04 +0000)]
bitbake/fetch2: Pass over malformatted (empty) mirror url lines

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agometa: Update mirror urls to new format and update yocto project urls
Richard Purdie [Fri, 11 Feb 2011 12:04:12 +0000 (12:04 +0000)]
meta: Update mirror urls to new format and update yocto project urls

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agolinux-dtb.inc: Fix package name to match PACKAGES
Richard Purdie [Fri, 11 Feb 2011 10:27:22 +0000 (10:27 +0000)]
linux-dtb.inc: Fix package name to match PACKAGES

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake: Remove bad commit hunk from old cvs fetcher
Richard Purdie [Thu, 10 Feb 2011 23:51:59 +0000 (23:51 +0000)]
bitbake: Remove bad commit hunk from old cvs fetcher

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agofetch2: Correct the clean() mechanism for the fetcher2 code
Saul Wold [Wed, 9 Feb 2011 22:30:29 +0000 (14:30 -0800)]
fetch2: Correct the clean() mechanism for the fetcher2 code

This create a clean() method in each of the fetcher modules
and correctly cleans the .done stamp file and lock files

Signed-off-by: Saul Wold <sgw@linux.intel.com>
14 years agoExport KRB5CCNAME variable
Javier Martin [Mon, 31 Jan 2011 11:27:54 +0000 (12:27 +0100)]
Export KRB5CCNAME variable

This allows fetching git repositories using Kerberos authentication.

(Bitbake rev: d761cf98284b02eb3d3a1f879782c501c284b698)

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agoFix comparison with SRCREVINACTION constant
Javier Martin [Thu, 27 Jan 2011 08:38:21 +0000 (09:38 +0100)]
Fix comparison with SRCREVINACTION constant

Use '==' instead of 'is', otherwise it will always return
true since 'rev' and "SRCREVINACTION" are not the same object.

(Bitbake rev: f30b3af975a071d1584817054a2996f08a3aba4f)

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agopersist_data: kill unreachable break line
Chris Larson [Tue, 8 Feb 2011 20:42:46 +0000 (13:42 -0700)]
persist_data: kill unreachable break line

(Bitbake rev: 7486b38603f2766adaf976a9f95e9276c83abe31)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake-layers: fix bug with env vars leaking in
Chris Larson [Mon, 7 Feb 2011 17:58:40 +0000 (10:58 -0700)]
bitbake-layers: fix bug with env vars leaking in

I forgot that bin/bitbake is what does the environment filtering based upon
BB_ENV_WHITELIST, etc.

(Bitbake rev: 2cc6b6951bd17832866ec710029d119d2df31ba4)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agocache: fix docstring usage
Chris Larson [Thu, 20 Jan 2011 21:32:16 +0000 (14:32 -0700)]
cache: fix docstring usage

Use comments instead of docstrings where appropriate in CacheData.

(Bitbake rev: 088d516e02bb2b4ce8a50bbaa967e944c46e620b)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agoAdd initial bitbake-layers script
Chris Larson [Mon, 7 Feb 2011 17:50:27 +0000 (10:50 -0700)]
Add initial bitbake-layers script

This script has subcommands which operate against your bitbake layers, either
displaying useful information, or acting against them.  Currently, it only
provides a show_appends command, which shows you what bbappends are in effect,
and warns you if you have appends which are not being utilized.

Currently, a bug exists when using this due to the DataContext stuff, but I'm
not certain as to the root cause, it appears to be the bb package relying
implicitly on the way the bitbake script does things.  A fix for that issue
will be forthcoming, as will further subcommands.

(Bitbake rev: 78b6d4cb26cec3321f8eec9889205a6b93b2ee18)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agopersist_data: loop on database lock for table creation
Chris Larson [Tue, 8 Feb 2011 17:41:58 +0000 (10:41 -0700)]
persist_data: loop on database lock for table creation

(Bitbake rev: d93fcbd64ab5d806288424170f55323b4297e7d6)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agoxkeyboard-config: make depend on intltool-native
Darren Hart [Thu, 10 Feb 2011 04:35:47 +0000 (20:35 -0800)]
xkeyboard-config: make depend on intltool-native

The xkeyboard-config listed intltool as a dependency, when in fact
it requires intltool-native in order to complete the do_configure
task.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Saul Wold <sgw@linux.intel.com>
14 years agolocal.conf.sample: Drop some comments about things that either no longer apply or...
Richard Purdie [Thu, 10 Feb 2011 15:36:48 +0000 (15:36 +0000)]
local.conf.sample: Drop some comments about things that either no longer apply or are obsoleted (now we have -dbg packages)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agoqemuimagetest: Rename test scenario file from poky-image-sdk to poky-image-sato-sdk
Jiajun Xu [Thu, 10 Feb 2011 14:50:14 +0000 (22:50 +0800)]
qemuimagetest: Rename test scenario file from poky-image-sdk to poky-image-sato-sdk

Signed-off-by Jiajun Xu <jiajun.xu@intel.com>

14 years agomesa-dri-7.10: add missing dependency makedepend
Yu Ke [Thu, 10 Feb 2011 13:12:34 +0000 (21:12 +0800)]
mesa-dri-7.10: add missing dependency makedepend

mesa 7.10 has dependency on makedepend-native, so add it
to resolve the configure failure

Signed-off-by: Yu Ke <ke.yu@intel.com>
14 years agomesa-xlib-7.10: add missing dependency makedepend
Yu Ke [Thu, 10 Feb 2011 10:15:38 +0000 (18:15 +0800)]
mesa-xlib-7.10: add missing dependency makedepend

mesa 7.10 has dependency on makedepend-native, so add it
to resolve the configure failure

Signed-off-by: Yu Ke <ke.yu@intel.com>
14 years agobitbake/fetch2/git: Write mirror tarballs if enabled and they don't exist, also set...
Richard Purdie [Thu, 10 Feb 2011 15:14:49 +0000 (15:14 +0000)]
bitbake/fetch2/git: Write mirror tarballs if enabled and they don't exist, also set a default value for mirror tarball generation

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agorm_work.bbclass: Fix typo for package task directory preservation
Richard Purdie [Thu, 10 Feb 2011 12:20:57 +0000 (12:20 +0000)]
rm_work.bbclass: Fix typo for package task directory preservation

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agotask-poky-apps-x11-pimlico: Webkit is huge and the compile time means it doesn't...
Richard Purdie [Thu, 10 Feb 2011 10:40:50 +0000 (10:40 +0000)]
task-poky-apps-x11-pimlico: Webkit is huge and the compile time means it doesn't make sense in our demo sato image

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agoutil-linux: Correctly prepend to PACKAGES and stop corrupting linux-util-native PACKA...
Richard Purdie [Thu, 10 Feb 2011 10:39:17 +0000 (10:39 +0000)]
util-linux: Correctly prepend to PACKAGES and stop corrupting linux-util-native PACKAGES variable

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agoncurses: Apply unifdef-native dependency to the task that uses it, not globally
Richard Purdie [Thu, 10 Feb 2011 10:38:27 +0000 (10:38 +0000)]
ncurses: Apply unifdef-native dependency to the task that uses it, not globally

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agopackage.bbclass: Only set recrdeptask for do_build if packaging is enabled for the...
Richard Purdie [Thu, 10 Feb 2011 10:37:49 +0000 (10:37 +0000)]
package.bbclass: Only set recrdeptask for do_build if packaging is enabled for the recipe

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agodebian.bbclass: Only set rdeptask for do_package if packaging is enabled
Richard Purdie [Thu, 10 Feb 2011 10:36:43 +0000 (10:36 +0000)]
debian.bbclass: Only set rdeptask for do_package if packaging is enabled

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agopseudo: Add and use the 1.0 release version
Richard Purdie [Thu, 10 Feb 2011 10:34:40 +0000 (10:34 +0000)]
pseudo: Add and use the 1.0 release version

Not using the git version has the advantage of removing several early bootstrap
dependencies such as git-native (which pulls in perl and openssl).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agolttng-ust: fix ppc build by removing ppc specific time reading function
Dexuan Cui [Thu, 10 Feb 2011 06:49:36 +0000 (14:49 +0800)]
lttng-ust: fix ppc build by removing ppc specific time reading function

Here I introduced a patch from lttng mailing list to fix ppc build.
See the patch for more details.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
14 years agoimage-swab: Convert to attach strace to the process to obtain the required swabber...
Richard Purdie [Thu, 10 Feb 2011 11:50:16 +0000 (11:50 +0000)]
image-swab: Convert to attach strace to the process to obtain the required swabber data

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agoMisc hard link fixes
Mark Hatle [Wed, 9 Feb 2011 04:16:41 +0000 (22:16 -0600)]
Misc hard link fixes

I searched the various classes and looked for copies that should attempt to
preserve hardlinks.  This fixes the majority of this copies by switching to
using tar as the copy method.  It also has the side effect of preserving sparse
files.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
14 years agopackage.bbclass: Preserve hard links!
Mark Hatle [Wed, 9 Feb 2011 03:49:36 +0000 (21:49 -0600)]
package.bbclass: Preserve hard links!

Hard links were not being preserved in the move from the install image
-> package copy.  Again they were being discarded in the package ->
packages-split copy as well.

By preserving the hard links we have the potential to save a ton of rootfs
space.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
14 years agolib.oe.path: Update copytree function to call shell commands since its twice as fast
Richard Purdie [Wed, 9 Feb 2011 13:01:23 +0000 (13:01 +0000)]
lib.oe.path: Update copytree function to call shell commands since its twice as fast

As an added bonus, hardlinks between files in the tree will be preserved too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agotalloc: remove talloc recipe
Yu Ke [Wed, 9 Feb 2011 12:08:37 +0000 (20:08 +0800)]
talloc: remove talloc recipe

mesa no long need talloc, so remove it

Signed-off-by: Yu Ke <ke.yu@intel.com>
14 years agomesa-xlib: upgrade to 7.10
Yu Ke [Wed, 9 Feb 2011 11:25:38 +0000 (19:25 +0800)]
mesa-xlib: upgrade to 7.10

- add patch to replace GPLv3 talloc with ralloc
- add SRC_URI checksum

Signed-off-by: Yu Ke <ke.yu@intel.com>
14 years agomesa-7.10: set mesa 7.10 as default instead of 7.8.2
Yu Ke [Wed, 9 Feb 2011 11:15:52 +0000 (19:15 +0800)]
mesa-7.10: set mesa 7.10 as default instead of 7.8.2

originally mesa 7.8.2 is set as default because 7.10
has depency of GPLv3 talloc. since mesa 7.10 has resolved
the GPLv3 talloc dependency issue, it is safe to set 7.10
as default

Signed-off-by: Yu Ke <ke.yu@intel.com>
14 years agomesa-dri-7.10: replace GPLv3 talloc with MIT-x licensed ralloc
Yu Ke [Wed, 9 Feb 2011 10:54:47 +0000 (18:54 +0800)]
mesa-dri-7.10: replace GPLv3 talloc with MIT-x licensed ralloc

mesa 7.10.1 devel branch has the patch to replace talloc with ralloc.
so add a patch to sync with 7.10.1 devel branch.

Signed-off-by: Yu Ke <ke.yu@intel.com>
14 years agoimage-mklibs.bbclass: add the library optimization functionality
Nitin A Kamble [Tue, 25 Jan 2011 16:43:10 +0000 (08:43 -0800)]
image-mklibs.bbclass: add the library optimization functionality

If you want to enable the mklibs library size optimization for your image
then, edit the MKLIBS_OPTIMIZED_IMAGES line in the local.conf like this:

  MKLIBS_OPTIMIZED_IMAGES ?= "poky-image-minimal your-own-image"

Also this will enable the mklibs library size optimization for all images.

  MKLIBS_OPTIMIZED_IMAGES ?= "all"

on qemux86 machine this reduced the rootfs size of poky image-minimal
image from 7.9MB to 7.2MB. That is around 11% image foot print reduction.
That image had 38 elf executables. Generally the size optimization by
mklibs is reversely proportional to the number of elf executables in the
rootfs. So bigger images will see less optimization, and smaller images
will see large image size reductions.

Thanks to mark hatle for his help in implementation of this.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
14 years agomakedepend: remove # from the beginning of DESCRIPTION lines
Saul Wold [Tue, 8 Feb 2011 22:36:57 +0000 (14:36 -0800)]
makedepend: remove # from the beginning of DESCRIPTION lines

Signed-off-by: Saul Wold <sgw@linux.intel.com>
14 years agoxserver-kdrive.inc: add openssl to DEPENDS
Scott Garman [Mon, 7 Feb 2011 22:14:00 +0000 (14:14 -0800)]
xserver-kdrive.inc: add openssl to DEPENDS

This fixes the following configure error:
No suitable SHA1 implementation found

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
14 years agoprelink: add transfig-native to DEPENDS
Scott Garman [Mon, 7 Feb 2011 04:47:37 +0000 (20:47 -0800)]
prelink: add transfig-native to DEPENDS

Building prelink's documentaiton requires fig2dev, which is
provided by transfig-native.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
14 years agotransfig: new recipe v3.2.5d
Scott Garman [Mon, 7 Feb 2011 04:46:42 +0000 (20:46 -0800)]
transfig: new recipe v3.2.5d

Transfig provides fig2dev, which is used when building
documentation for many packages.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
14 years agoimake: add native support to recipe and update DEPENDS
Scott Garman [Mon, 7 Feb 2011 04:44:23 +0000 (20:44 -0800)]
imake: add native support to recipe and update DEPENDS

xorg-cf-files includes configuration files used by imake-based
recipes. Also add native support to the recipe.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
14 years agolibxpm: add native support to recipe
Scott Garman [Mon, 7 Feb 2011 04:42:12 +0000 (20:42 -0800)]
libxpm: add native support to recipe

The native recipe is needed by the transfig-native dependency chain.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
14 years agolibxext: add native support to recipe
Scott Garman [Mon, 7 Feb 2011 04:40:33 +0000 (20:40 -0800)]
libxext: add native support to recipe

The native recipe is needed by the transfig-native dependency chain.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
14 years agoxorg-cf-files: new recipe v1.0.4
Scott Garman [Mon, 7 Feb 2011 04:38:50 +0000 (20:38 -0800)]
xorg-cf-files: new recipe v1.0.4

This package includes configuration files needed for old x11
imake-based packages - transfig in particular.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
14 years agouboot: move license data into recipe with SRC_URI
Darren Hart [Wed, 9 Feb 2011 21:38:53 +0000 (13:38 -0800)]
uboot: move license data into recipe with SRC_URI

The LIC_CHKSUM_FILES are specific to the source determined by SRC_URI. As such,
keep all the license information together with the SRC_URI. This also avoids
confusion from having these defined in both the .inc and the .bb files. The
CHKSUM got out of date in u-boot_git.bb, so update it while we're at it.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Ilya Yanok <yanok@emcraft.com>
CC: Gary Thomas <gary@mlbassoc.com>
CC: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agouboot: build with -O2 on all architectures
Darren Hart [Wed, 9 Feb 2011 21:26:46 +0000 (13:26 -0800)]
uboot: build with -O2 on all architectures

The -Os option was disabled due to a bug in gcc building bad binaries for ARM
in an earlier commit:

f2dc7fadd8c6b180c3f985873261216d53f47f0d

This caused problems for powerpc which was resolved by replacing -Os with
-O2 for that architecture:

d0eb6794d964aa5ac938533a222c39bef09fd945

Using -O2 also works for ARM, so there is no need to condition using -O2 on
powerpc. Remove the condition and use -O2 on all architectures.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Ilya Yanok <yanok@emcraft.com>
CC: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agokernel.bbclass: use defconfig if it exists
Darren Hart [Tue, 8 Feb 2011 22:31:23 +0000 (14:31 -0800)]
kernel.bbclass: use defconfig if it exists

It is common enough to want to apply a defconfig if the inheriting
recipe provides it. If the file exists in the $WORKDIR, copy it
over to ${S}/.config provided the target does not already exist.

This allows for recipes derived from kernel.bbclass to manage the
.config on their own, such as linux.inc.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
14 years agolinux.inc: don't overwrite an existing uImage
Darren Hart [Tue, 8 Feb 2011 22:00:52 +0000 (14:00 -0800)]
linux.inc: don't overwrite an existing uImage

If a valid uImage exists, don't overwrite it with Image.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
14 years agou-boot: compile with -O2 on PowerPC
Ilya Yanok [Tue, 8 Feb 2011 20:26:38 +0000 (21:26 +0100)]
u-boot: compile with -O2 on PowerPC

gcc on PowerPC is currently compiled with -Os optimization disabled so
we have to use -O2 on PowerPC instead.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agou-boot: add LIC_FILES_CHKSUM
Ilya Yanok [Tue, 8 Feb 2011 20:26:37 +0000 (21:26 +0100)]
u-boot: add LIC_FILES_CHKSUM

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agolinux/u-boot: Update LICENSE fields to specify GPL version
Richard Purdie [Wed, 9 Feb 2011 11:23:51 +0000 (11:23 +0000)]
linux/u-boot: Update LICENSE fields to specify GPL version

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agolinux: add LIC_FILES_CHKSUM
Ilya Yanok [Tue, 8 Feb 2011 20:26:36 +0000 (21:26 +0100)]
linux: add LIC_FILES_CHKSUM

Linux is licensed under GPL so add appropriate LIC_FILES_CHKSUM to
linux.inc file.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agoMerge branch 'jzhang/i686' of ssh://git.pokylinux.org/poky-contrib
Richard Purdie [Wed, 9 Feb 2011 11:18:28 +0000 (11:18 +0000)]
Merge branch 'jzhang/i686' of ssh://git.pokylinux.org/poky-contrib

14 years agoMerge branch 'jzhang/adt-repo' of ssh://git.pokylinux.org/poky-contrib
Richard Purdie [Wed, 9 Feb 2011 11:18:13 +0000 (11:18 +0000)]
Merge branch 'jzhang/adt-repo' of ssh://git.pokylinux.org/poky-contrib

14 years agompc8315-rdb: add dtb generation configuration
Bruce Ashfield [Wed, 9 Feb 2011 06:03:28 +0000 (01:03 -0500)]
mpc8315-rdb: add dtb generation configuration

Fixes [BUGID #610]

dtb files were not being built for the mpc8315e-rdb, since they
weren't being configured into the machine. With this and the
related dtc fixes, we now get a dtb in the deployment directories.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
14 years agodtc: add LIC_FILES_CHKSUM to dtc-native
Bruce Ashfield [Wed, 9 Feb 2011 06:00:12 +0000 (01:00 -0500)]
dtc: add LIC_FILES_CHKSUM to dtc-native

The new license processing rules error if dtc-native itself
doesn't have license information. Previously only the .inc
files contained this information, so we make a copy and leave
the existing license info to be removed pending further review.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
14 years agolinux: factor dts/dtc/dtb handling into a specific include
Bruce Ashfield [Wed, 9 Feb 2011 05:45:23 +0000 (00:45 -0500)]
linux: factor dts/dtc/dtb handling into a specific include

Fixes [BUGID #610]

The powerpc linux-yocto kernels were not creating dtb images
in the deploy directories. This was due to two problems:

  - the dtb generation rules were not being configured
  - the boards were not specifying a device tree in their config

This change addresses the first point by factoring out the
dtb generation routines into a new include that can be used by
multiple recipes.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
14 years agolinux-yocto: streamline BSP bootstrapping
Bruce Ashfield [Wed, 9 Feb 2011 02:46:45 +0000 (21:46 -0500)]
linux-yocto: streamline BSP bootstrapping

In order to build BSPs that were not already integrated into
the upstream linux yocto kernel AND keep the git fetcher happy,
some fairly complex anonymous python sections were required.

These sections cause problems with variable expansion and SRCREV
processing.

With the updated git fetcher code, we can streamline the BSP
boostrapping process and drop 99% of the anonymous python code.

This commit has the following changes to support BSP boot strapping
and simplication for existing BSPs.

   - KMETA is set per-recipe rather than in python code
   - undefined machines are no longer used, but instead common
     branch names are set per-recipe
   - fallback machine SRCREVs are present in the default revisions
     file
   - A new variable YOCTO_KERNEL_EXTERNAL_BRANCH should be set in
     the local.conf for new BSPs instead of being programatically
     determined in the anonymous python.
   - No more explicity KMACHINE variable expansion and manipulation,
     since the tools and build phases no longer require it due
     to the per-recipe fallbacks.

Integrated/merged BSPs are unaffected by the changes and have been
regression tested.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
foo

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
14 years agolinux-yocto: streamline BSP bootstrapping
Bruce Ashfield [Wed, 9 Feb 2011 02:46:45 +0000 (21:46 -0500)]
linux-yocto: streamline BSP bootstrapping

In order to build BSPs that were not already integrated into
the upstream linux yocto kernel AND keep the git fetcher happy,
some fairly complex anonymous python sections were required.

These sections cause problems with variable expansion and SRCREV
processing.

With the updated git fetcher code, we can streamline the BSP
boostrapping process and drop 99% of the anonymous python code.

This commit has the following changes to support BSP boot strapping
and simplication for existing BSPs.

   - KMETA is set per-recipe rather than in python code
   - undefined machines are no longer used, but instead common
     branch names are set per-recipe
   - fallback machine SRCREVs are present in the default revisions
     file
   - A new variable YOCTO_KERNEL_EXTERNAL_BRANCH should be set in
     the local.conf for new BSPs instead of being programatically
     determined in the anonymous python.
   - No more explicity KMACHINE variable expansion and manipulation,
     since the tools and build phases no longer require it due
     to the per-recipe fallbacks.

Integrated/merged BSPs are unaffected by the changes and have been
regression tested.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
foo

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
14 years agobinutils-cross-canadian.inc: disable -werror like -cross does
Koen Kooi [Wed, 9 Feb 2011 10:35:49 +0000 (11:35 +0100)]
binutils-cross-canadian.inc: disable -werror like -cross does

The error this works around is:

cc1: warnings being treated as errors
gas/config/tc-arm.c: In function 'parse_operands':
gas/config/tc-arm.c:1876:27: error: 'firsttype$defined' may be used uninitialized in this function
gas/config/tc-arm.c:1876:27: error: 'firsttype$index' may be used uninitialized in this function

Ideally it should get fixed properly, but let's mimic binutils-cross for now

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake.conf: fix SDK_NAME
Koen Kooi [Wed, 9 Feb 2011 10:58:02 +0000 (11:58 +0100)]
bitbake.conf: fix SDK_NAME

It was using a '/' in a name variable, subtly breaking things like this:

populate_sdk.bbclass:
   mkdir -p ${SDK_DEPLOY}
   cd ${SDK_OUTPUT}
   tar --owner=root --group=root -cj --file=${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 .

Tar will error out since SDK_DEPLOY/DISTRO/ doesn't exist. Change the default to be more like the one from poky.conf, without the poky specific POKYLIBC.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agoadt-installer: change to adopt the adt public repo directory layout
Jessica Zhang [Wed, 9 Feb 2011 06:30:25 +0000 (22:30 -0800)]
adt-installer: change to adopt the adt public repo directory layout

Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
14 years agobitbake/fetch2: Fix negated if check for BB_FETCH_PREMIRRORONLY
Richard Purdie [Wed, 9 Feb 2011 01:23:56 +0000 (01:23 +0000)]
bitbake/fetch2: Fix negated if check for BB_FETCH_PREMIRRORONLY

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agolocal.conf: change i586 to i686 for 32bit SDK
Jessica Zhang [Tue, 8 Feb 2011 19:48:20 +0000 (11:48 -0800)]
local.conf: change i586 to i686 for 32bit SDK

Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
14 years agofetch2: Add SRPM knowledge
Mark Hatle [Tue, 8 Feb 2011 00:18:18 +0000 (18:18 -0600)]
fetch2: Add SRPM knowledge

Enable the fetcher to be able to unpack and SRPM.  By default the system will
unpack the contents of the SRPM into the WORKDIR.

A new syntax "unpack=file" was developed for the SRC_URI, to allow for a
recipe to extract a specific file within an SRPM.  An unpack operation will
then be executed on the extracted file.

In order to apply extracted patches (or unpack files not specified with
unpack), you must specify the path using WORKDIR, i.e.:

file://${WORKDIR}/mypatch.patch

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
14 years agoinsane.bbclass: Fix config.log error message
Mark Hatle [Tue, 8 Feb 2011 16:05:46 +0000 (10:05 -0600)]
insane.bbclass: Fix config.log error message

[BUG #702]

The previous error message was confusing.  It was looking for both library and
include host contamination, but the message only indicated include files.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
14 years agobitbake/utils.py: add glob name matching to remove
Saul Wold [Tue, 8 Feb 2011 17:24:12 +0000 (09:24 -0800)]
bitbake/utils.py: add glob name matching to remove

Signed-off-by: Saul Wold <sgw@linux.intel.com>
14 years agobitbake/fetch2: Ignore UnboundLocalError in exception handler in try_mirror
Richard Purdie [Tue, 8 Feb 2011 17:30:45 +0000 (17:30 +0000)]
bitbake/fetch2: Ignore UnboundLocalError in exception handler in try_mirror

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: Move symlink handling into try_mirror where is belongs instead of...
Richard Purdie [Tue, 8 Feb 2011 12:46:25 +0000 (12:46 +0000)]
bitbake/fetch2: Move symlink handling into try_mirror where is belongs instead of the main download function

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: When using BB_FETCH_PREMIRRORONLY, set BB_NO_NETWORK after premirrors...
Richard Purdie [Tue, 8 Feb 2011 12:44:06 +0000 (12:44 +0000)]
bitbake/fetch2: When using BB_FETCH_PREMIRRORONLY, set BB_NO_NETWORK after premirrors as there could be data processing needed by the real fetcher

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: Ensure we only remove files, not directories when fetch failures...
Richard Purdie [Tue, 8 Feb 2011 12:42:24 +0000 (12:42 +0000)]
bitbake/fetch2: Ensure we only remove files, not directories when fetch failures occur

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2: Ensure original ud is preserved in try_mirror
Richard Purdie [Tue, 8 Feb 2011 12:40:40 +0000 (12:40 +0000)]
bitbake/fetch2: Ensure original ud is preserved in try_mirror

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agolinux-yocto-stable: Fix meta branch name
Richard Purdie [Tue, 8 Feb 2011 11:56:23 +0000 (11:56 +0000)]
linux-yocto-stable: Fix meta branch name

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agokernel-yocto: Ensure python code has awlays run before SRCPV is expanded
Richard Purdie [Tue, 8 Feb 2011 10:35:53 +0000 (10:35 +0000)]
kernel-yocto: Ensure python code has awlays run before SRCPV is expanded

The python code in this class file needs to run before SRCPV is expanded
and calls into the fetcher are made. To so this we create a python function
and prepend a call to it before SRCPV's get_srcrev() call.

Ugly, ugly, ugly but the ordering is guaranteed.

If this doesn't happen, the fetcher can end up in two different states and
there may be caching implications of this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agokernel-yocto/poky-default-revisions: Ensure SRCREV_machine is set for the kernels
Richard Purdie [Tue, 8 Feb 2011 10:09:25 +0000 (10:09 +0000)]
kernel-yocto/poky-default-revisions: Ensure SRCREV_machine is set for the kernels

If we don't do this and try to bring up a new machine we can trigger network
access to resolve the branch name to a revision which is undesireable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2/git: Fix broken variable reference
Richard Purdie [Tue, 8 Feb 2011 09:33:52 +0000 (09:33 +0000)]
bitbake/fetch2/git: Fix broken variable reference

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agobitbake/fetch2/git: Ensure unresolved branches are translated into revisions
Richard Purdie [Tue, 8 Feb 2011 09:27:59 +0000 (09:27 +0000)]
bitbake/fetch2/git: Ensure unresolved branches are translated into revisions

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 years agofetch2: add try/finally to ensure lockfile is unlocked on failure
Saul Wold [Tue, 8 Feb 2011 01:29:46 +0000 (17:29 -0800)]
fetch2: add try/finally to ensure lockfile is unlocked on failure

Signed-off-by: Saul Wold <sgw@linux.intel.com>
14 years agofetch2: add runfetchcmd to import for fetchers
Saul Wold [Mon, 7 Feb 2011 23:42:45 +0000 (15:42 -0800)]
fetch2: add runfetchcmd to import for fetchers

Signed-off-by: Saul Wold <sgw@linux.intel.com>
14 years agoinit-live.sh: add 'coldplug' udev trigger
Tom Zanussi [Mon, 7 Feb 2011 19:45:45 +0000 (13:45 -0600)]
init-live.sh: add 'coldplug' udev trigger

Fixes [BUGID #693]

The init-live.sh script starts udevd in init-live.sh:early_setup(),
but doesn't account for the possibility that the root device may have
already been registered by the kernel before udevd starts up.

If the device is detected after udevd starts up, everything's fine -
udevd gets the 'add' uevent for the device, the root image shows up at
e.g. /media/sda/rootfs.img, and the boot continues.

If however the device is detected before udevd starts up, udevd misses
the 'add' uevent and the root image never shows up, causing it to stay
in the 'waiting for removable media' loop forever.

The 'udevadm trigger' command is meant to be used to avoid this
situation, but init-live.sh doesn't use it.  Furthermore, since the
default was changed in udev 152 from 'add' to 'change', the command
needs to explicity name 'add' as the action.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>