summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* package.bbclass: Use hard link for package split instead of copyDongxiao Xu2011-02-251-12/+3
| | | | | | | | | | | When doing package split, we use hard link instead of copy, which can save about 10% disk space when building poky-image-minimal. If fail, it will fall back to the copyfile function. [Updated by Richard to use os.link and avoid an exec() call per file] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
* dropbear: add SRC_URI checksumsJoshua Lock2011-02-251-0/+3
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/codeparser: fix raising of ShellSyntaxErrorJoshua Lock2011-02-251-2/+2
| | | | | | | To raise the ShellSyntaxError we need to import it's module and reference it by namespace. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* package.bbclass: Unbreak per file dependencies and blacklist doc packagesRichard Purdie2011-02-251-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gtk+: disable build of faq and tutorial docsScott Garman2011-02-242-30/+16
| | | | | | | | | Joshua Lock noted that these problematic doc builds have been removed upstream, and they are really superfluous for embedded builds. This fixes [BUGID #741] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* Suppress useless warnings during udev startupGary Thomas2011-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have a number of platforms which have no realtime clock (i.e. no sense of what day/time it is). On these platforms, poky dutifully tries to keep somewhat sane with stored time stamps that are saved on reboot and restored early on during initialization. A fair compromise. However, before that code runs, the udev script tries to restore well known devices using tar. This will often lead to messages such as these since the kernel has no way to set the time: tar: dev/pts: implausibly old time stamp 1970-01-01 00:00:00 tar: dev/char/3:134: time stamp 1970-01-01 00:00:09 is 0.435041705 s in the future The attached patch filters these messages out as they don't convey anything useful and indeed are worrisome to more naive users. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ >From a6773d3e00dbd168817730fff1c3fc7e1b6950f5 Mon Sep 17 00:00:00 2001 From: Gary Thomas <gary@mlbassoc.com> Date: Thu, 17 Feb 2011 11:30:18 -0700 Subject: [PATCH] Suppress messages about bad time stamps during initial device setup Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* perl: import parallel build fixes from upstream git treeNitin A Kamble2011-02-246-22/+6638
| | | | | | | The parallel build issue is fixed in the upstream perl git tree differently. Replacing our fix with the upstream fix. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* poky-qemu: Update -sdk image name due to recent change to sato-sdkSaul Wold2011-02-241-5/+5
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* poky-setup-builddir: Update references to the manualRichard Purdie2011-02-241-4/+4
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/cache: bump cache version after recent changesJoshua Lock2011-02-241-1/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/progress: make progress dialog modal for parent windowJoshua Lock2011-02-241-2/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake: Add new UI hob, a prototype Gtk+ GUI for creating imagesJoshua Lock2011-02-242-0/+734
| | | | | | Hob is a first stab at implementing an interactive GUI for BitBake. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/cooker: don't drop possible_world ref countJoshua Lock2011-02-241-4/+0
| | | | | | | | We need this if we want to run the buildWorldTargetList function more than once, for example in a UI where we can change the MACHINE and DISTRO as much as we like before triggering a build. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/progress: add method to pulse the progress barJoshua Lock2011-02-241-0/+4
| | | | | | | | When we're running a long operation with indeterminate duration it's useful to use the gtk.ProgressBar's pulse method to show that something is happening but we don't know how long it will take. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/crumbs: update documentation headerJoshua Lock2011-02-241-1/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/event: fix some whitespace issuesJoshua Lock2011-02-241-3/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake: introduce crumbs.TaskListModel a gtk.ListStore subclassJoshua Lock2011-02-241-0/+346
| | | | | | | | | | | Provide a gtk.ListStore subclass which includes a function, populate(), which takes as input the data emitted by bb.event.TargetsTreeGenerated and fills the ListStore model appropriately. Furthermore convenience functions are provided by which the caller can get gtk.TreeModel subclasses which provide filtered views of the data. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/[cooker|cache]: cache summary, license and group. Add to targets treeJoshua Lock2011-02-242-0/+18
| | | | | | | | | Add summary, license and group metadata to RecipeInfo and the cache. Unfortunately this impacts parse speed but gives us a much richer set of metadata to expose through UI's which can be accessed via the generateTargetsTree command. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/cooker: reduce code duplicationJoshua Lock2011-02-241-26/+11
| | | | | | | | Move runqueua and taskdata initialisation into a new function, prepareTreeData(), so that generateDepTreeData() and generateTargetsTreeData() are not duplicating the same logic. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/cooker: add generateTargetsTree methodJoshua Lock2011-02-241-3/+64
| | | | | | | | | | The generateTargetsTree() command needs to return a model which includes more metadata than the one generated by generateDepTree(). This patch adds a new method generateTargetsTreeData() to the cooker, based on generateDepData(), and switches generateTargetsTree() to use it. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake: implement command to find configuration files for a config variableJoshua Lock2011-02-243-0/+45
| | | | | | | | | Some configuration variables (MACHINE, MACHINE-SDK and DISTRO) set which confguration files bitbake should use. The added command , findConfigFiles, enables a UI to query which files are suitable values for a specified parameter. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake: implement command to get all possible targets and their dependenciesJoshua Lock2011-02-243-0/+44
| | | | | | | | | | Add a new command generateTargetsTree() which returns a dependency tree of possible targets (tasks and recipes) as well as their dependency information. Optional parameter 'klass' also ensures any recipes which inherit the specified class path (i.e. 'classes/image.bbclass') are included in the model Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/cache: store a list of inherited files in the cacheJoshua Lock2011-02-241-0/+5
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Ensure Bash is used when spawning terminalsJoshua Lock2011-02-242-3/+3
| | | | | | | | | We rely on Bashisms when spawning a terminal so ensure that bash is used when using devshell and menuconfig. Fixes [BUGID #119] Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/server/none: fix getEvent() to return eventsPaul Eggleton2011-02-241-4/+8
| | | | | | | | | | In the none server, events don't get processed unless the idle_commands function gets called, which previously wasn't happening with getEvent(); thus UIs that use this to get events were not working. Fixes [BUGID #561] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* bitbake/server/none: remove leftover XMLRPC bits from none serverPaul Eggleton2011-02-241-11/+3
| | | | | | | Remove some comments, imports etc. to do with XMLRPC (inherited from xmlrpc.py which this file was based upon.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* poky-lsb.conf: remove OVERRIDESSaul Wold2011-02-231-2/+1
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* mtd-utils: Set the revision to use explicitly else failures occur with ↵Richard Purdie2011-02-231-1/+1
| | | | | | | | BB_NO_NETWORK [BUGID #752] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* poky.conf: Weakly set PREMIRRORSRichard Purdie2011-02-231-1/+1
| | | | | | | | We should only weakly set PREMIRRORS as users often want to override this. [BUGID #753] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* poky-lsb.conf: Add DISTROOVERRIDES variable for pokySaul Wold2011-02-231-0/+4
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* bitbake.conf: Add DISTROOVERRIDES variableSaul Wold2011-02-231-1/+2
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* xserver-nodm-init: add rootless-x supportYu Ke2011-02-233-1/+26
| | | | | | | | | | | | most rootless X work are already done in the kernel, xserver and graphics driver, this patches add the the remaining userspace setting: - create /etc/X11/Xusername to set rootless X user - add rootless X user to group video, tty to access /dev/tty[0-4] and /dev/dri/card0 - grant rootless X user access right to /dev/input/*, /var/log Signed-off-by: Yu Ke <ke.yu@intel.com>
* xf86-video-intel: add config option to support rootless XYu Ke2011-02-232-0/+7
| | | | | | | | | | | - add global config option ROOTLESS_X to control if enable rootless X for the machine. ROOTLESS_X requires graphics driver supporting KMS (kernel mode setting), so far, only atom_pc support this. so enable ROOTLESS_X for atom_pc machine - add config options for xf86-video-intel to support rootless X Signed-off-by: Yu Ke <ke.yu@intel.com>
* documentation/poky-ref-manual/faq.xml: [BUGID# 628] - Added new question for ↵Scott Rifenbark2011-02-231-0/+41
| | | | | | | | | Python 2.6 requirement. As part of the fix for #628 I added a new question to the FAQ for use of Poky when you do not have Python 2.6. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
* documentation/yocto-project-qs/yocto-project-qs.xml: [BUGID# 628] - Added ↵Scott Rifenbark2011-02-231-0/+6
| | | | | | | | | | | | note about Python 2.6 bitbake requirement Part of the fix for Bug 628 is to add a note that bitbake requires python 2.6. I added this note before the example bitbake command that builds an image. I also added a linked reference to the Poky Reference Manual and mentioned the FAQ appendix. There will be more information about the python requirement in the FAQ. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
* distrodata.bbclass: Fix some issues when checking upstream version on ↵Mei Lei2011-02-231-3/+4
| | | | | | sourceforge Signed-off-by: Mei Lei <lei.mei@intel.com>
* linux-yocto: enable audio for selected qemu targetsBruce Ashfield2011-02-233-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes [BUGID #488 #734] Enable audio for qemux86/qemux86-64 via the following kernel configuration options. CONFIG_SOUND_OSS_CORE=y CONFIG_SOUND_OSS_CORE_PRECLAIM=y CONFIG_SND_RAWMIDI=m CONFIG_SND_SEQUENCER=y CONFIG_SND_OSSEMUL=y CONFIG_SND_MIXER_OSS=y CONFIG_SND_PCM_OSS=y CONFIG_SND_PCM_OSS_PLUGINS=y CONFIG_SND_SEQUENCER_OSS=y CONFIG_SND_RAWMIDI_SEQ=m CONFIG_SND_AC97_CODEC=m CONFIG_SND_ENS1370=m CONFIG_SND_INTEL8X0=m CONFIG_AC97_BUS=m The mechanism to trigger these options is in the form of an optional kernel feature that is only appended for qemux86 and qemux86-64, but is contained within the kernel tree. This allows several things: - the options to be available/shared for all boards - the options to be in tree - to not add the options to every board, which unecessarily bloats the default configuration. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* openjade-native: run install-catalog from SSTATEPOSTINSTFUNCSScott Garman2011-02-231-5/+12
| | | | | | | Otherwise the sgml-docbook.cat catalog would not be updated when a build from sstate cache is run. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* docbook-dsssl-stylesheets-native: run install-catalog from SSTATEPOSTINSTFUNCSScott Garman2011-02-231-18/+12
| | | | | | | Otherwise the sgml-docbook.cat catalog would not be updated when a build from sstate cache is run. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* docbook-sgml-dtd-native.inc: run install-catalog from SSTATEPOSTINSTFUNCSScott Garman2011-02-231-16/+10
| | | | | | | Otherwise the sgml-docbook.cat catalog would not be updated when a build from sstate cache is run. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* sstate.bbclass: add SSTATEPOSTINSTFUNCSScott Garman2011-02-231-0/+5
| | | | | | | | | | | | | | When doing builds using sstate cache, there was no way to run the equivalent of a pkg_postinst function. This is needed by the SGML-related documentation recipes to properly update the catalog files when new DTDs and stylesheets are installed. SSTATEPOSTINSTFUNCS is a new variable you can set to function(s) in your recipe to run after install is completed from sstate. Thanks to Richard Purdie for suggesting this solution. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* bitbake/build.py: Fix TaskFailed parametersRichard Purdie2011-02-231-2/+2
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/data_smart: Improve Variable expansion error handlingRichard Purdie2011-02-231-2/+14
| | | | | | | | | | | | | | | | If expanding a variable triggers an exception the caller currently has no way to supress the error message or otherwise handle the siutation. An example of where this is a problem is "bitbake -e" showing tracebacks and errors for variables like SRCPV in OE/Poky. Secondly in a chained expansion fails, log mesages are recorded for every step of the expansion, not just the innermost error which is where the real failure occured. To fix this we introduce a new exception ExpansionError which callers can handle as appropriate. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/data_smart: Improve the way lazyassignment worksRichard Purdie2011-02-232-8/+2
| | | | | | | | | | | | | | | | | | | | Currently, if a variable has been set with ??= and the code looks it up before the data finalisation phase, no value is found. This is causes serious problems for anonymous python functions which manipulate data, or for the fetcher revision handling code where revisions can be set with ??=. There is also a significant performance implication for processing lazy assignment in finalise. Moving the check for a default value into getVarFlag addresses both the timing issue and the performace. This change gives a 7% real time performance improvement to parsing the Poky metadata. The cost of the check at this point is minimal since we have all the data flags available. This should also fix Yocto bug 752. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Ensure SRCREV_pn-PN is checked for a revision when the ↵Richard Purdie2011-02-231-1/+3
| | | | | | SRC_URI is unnamed Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/cooker: Fix parsing failure zombie problemRichard Purdie2011-02-231-0/+12
| | | | | | | | | When parsing if a SystemExit event is triggered, it causes the parsing thread to exit and the main process hangs waiting for it to finish indefintely. Add code to catch BaseExceptions and raise these with the main process gracefully instead of just hanging indefinitely with zombie processes. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/BBHandler: Improve handling of multiline comments and warn users of ↵Richard Purdie2011-02-221-2/+11
| | | | | | the change Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Remove all comments from multiline expressions (as mentioned in bug #704)Richard Purdie2011-02-2218-79/+83
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu: enable audio supportZhai Edwin2011-02-222-1/+8
| | | | | | | | | | On qemux86, export ac97 & es1370 emulated device to guest, and enable host oss&alsa driver. So end user can get sound from qemux86 guest if the sound card driver installed. [BUGID #488] got fixed. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* mklibs-native: fix the build on Ubuntu 9.04 by defining STT_GNU_IFUNCDexuan Cui2011-02-222-1/+25
| | | | | | | | | | | | mklibs-native needs elf.h (that is supplied by libc6-dev). since STAGING_INCDIR_NATIVE doesn't contain elf.h (we don't have eglibc-native), so the host's /usr/include/elf.h is used. Unluckily, the libc6-dev in Ubuntu 9.04 is so old that the elf.h doesn't define STT_GNU_IFUNC, so we have to define it ourselves. Fixes [BUGID #726] Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>