summaryrefslogtreecommitdiffstats
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
* kernel.bbclass: Ensure TOOLCHAIN_OPTIONS is passed to KERNEL_CC and KERNEL_LDRichard Purdie2010-12-301-2/+2
| | | | | | | | This fixes various incorrect sysroot usages observed by people with sstate. Thanks to Kevin Tian for figuring out where the problem was and Gary Thomas for confirming the fix. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* update-rc.d: Allow the primary deamon package to be specified in UPDATERCPN, ↵Richard Purdie2010-12-301-2/+4
| | | | | | update gsmd to use this Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* yocto-kernel: fix kmachine to deal with overridesBruce Ashfield2010-12-281-2/+5
| | | | | | | | | | | | | | | | BSPs are built from a particular branch of the kernel repository which is specfied via the mapping of MACHINE to KMACHINE. Unless a global branch is being forced (like libc headers), KMACHINE is an override on a per machine basis. Because KMACHINE is typically override we must first try the most specific variant KMACHINE_<machine> and if that is undefined look for a fallack default. This allows any combination of variables to work (and at the time the anonymous python executes) safely and get us a properly defined branch for the fetcher and build. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* poky-image.bbclass: Set LIC_FILES_CHKSUMRichard Purdie2010-12-241-0/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* rootfs_ipk: The most recent opkg errors upon file overwrite. Until we fix ↵Richard Purdie2010-12-241-1/+1
| | | | | | package conflicts, disable this for now Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* qemuimage-testlib: Ensure TOPDIR/BUILDDIR are setRichard Purdie2010-12-231-0/+1
| | | | | | | | | | The recent environment changes mean TOPDIR/BUILDDIR need to be exported specifcially to the enviromnent so the qemu scripts can find the correct build directory. Without this, qemu can fail to run. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* qmake2.bbclass: add space to end of DEPENDS_prependPaul Eggleton2010-12-231-1/+1
| | | | | | | There needs to be a space at the end of DEPENDS_prepend or otherwise it can collide with the contents of DEPENDS. The OE version of this file has this. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* insane.bbclass: make LIC_FILES_CHKSUM failures report errorsSaul Wold2010-12-231-4/+4
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* poky.bbclass: Move mirrors/premirrors to poky.confRichard Purdie2010-12-211-29/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: Add check for '.' in PATH and error if found (see bug #572)Richard Purdie2010-12-211-0/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* linux-yocto: remove or adjust to _ in branch namesBruce Ashfield2010-12-211-7/+5
| | | | | | | | | | | | | | | | | | | | | The existing 2.6.34 kernel tree uses _ where poky typically uses -. This is a historical artifact, since working with gnu Make and shells means avoiding - is wise. The opposite is true in Yocto. To avoid using the _ reserved character wherever possible we can simply remove it from the branch names in the new 2.6.37 kernel, but to keep the content stable in the 0.9 2.6.34 kernel, we map _ to - for the purposes of packaging. To further faciliate this switch, the branch names no longer need to be shortened in the KMACHINE mappings, but can be fully specified and the tools/processing adapt as required. This gives us the flexibility to map multiple boards to a single branch for building. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* meta-environment: Added package of meta-environment-${TARGET_ARCH} forLianhao Lu2010-12-212-0/+31
| | | | | | | | | | | | environment files. [BUGID #565] Fixing bug #565, added package of meta-environment-${TARGET_ARCH} for environment files used by cross-canadian toolchain. Also corrected the situation of empty config site file for target. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* rm_work: With the recent pseudo changes, this no longer makes senseRichard Purdie2010-12-211-4/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: Use KERNEL_IMAGE_BASE_NAME variable instead of the expanded ↵Richard Purdie2010-12-201-3/+3
| | | | | | equivalent. Fixes sstate rebuild issue Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* rootfs_rpm: Add --ignoresize option when performing DB operations on a rootfsRichard Purdie2010-12-201-3/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate.bbclass: delete sstate files when doing cleanallPaul Eggleton2010-12-201-4/+8
| | | | | | | | | | This fixes the cleanall task to actually delete the sstage cache files. This was not working correctly before due to attempting to use the current task's hash in the package file name to be deleted, which of course is the hash of the cleanall task when doing cleanall. The siginfo files are now deleted as well. Signed-off-by: Paul Eggleton <paul.eggleton@intel.com>
* base/utils.bbclass: Drop former checksum code now bitbake is handling this ↵Richard Purdie2010-12-202-112/+0
| | | | | | for us Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: add check for creation of long filenamesPaul Eggleton2010-12-201-8/+31
| | | | | | | | | Detect and fail if filesystem in use for TMPDIR or SSTATE_DIR has an unreasonably short file name length limit (eg. eCryptFS). This can cause "file name too long" errors during poky builds (e.g. when writing sstate files for packages with a git revision as the version). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* sanity.bbclass: allow minimisation of impact of more invasive sanity checksPaul Eggleton2010-12-201-1/+47
| | | | | | | | | | | Add a mechanism to avoid running more invasive checks every time bitbake is invoked. Adds a file in conf/ (i.e. under user's build directory) that tracks a new variable SANITY_VERSION (set in sanity.conf) as well as TMPDIR and SSTATE_DIR, allowing checks to be run when these are changed. Fixes [BUGID #562] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* sanity.bbclass: make indenting consistentPaul Eggleton2010-12-201-216/+216
| | | | | | Use four spaces throughout the file Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* Calculate CCACHE_DIR by calling host's ccache config.Alex deVries2010-12-171-0/+4
| | | | Signed-off-by: Alex deVries <alex.devries@windriver.com>
* Swabber's update_distro automatically updates the blob now.Alex deVries2010-12-171-5/+1
| | | | Signed-off-by: Alex deVries <alex.devries@windriver.com>
* Stop using hardcoded paths, use new Ubuntu and generic filters.Alex deVries2010-12-171-1/+1
| | | | Signed-off-by: Alex deVries <alex.devries@windriver.com>
* distrodata: fix messageSaul Wold2010-12-161-1/+1
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* distrodata: add eventhandler for checkpkg taskSaul Wold2010-12-161-9/+31
| | | | | | Change group column to Owner Column for checkpkg output Signed-off-by: Saul Wold <sgw@linux.intel.com>
* kernel.bbclass: Set vardepsexclusive for KERNEL_IMAGE_BASE_NAMEKevin Tian2010-12-161-0/+2
| | | | | | | | | Exclude the DATETIME variable from the KERNEL_IMAGE_BASE_NAME variable. This avoids the last road block linux-yocto for sstate. Signed-off-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: Rename do_deploy so the function can be overridden in recipesKevin Tian2010-12-161-1/+3
| | | | | Signed-off-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: Check if DISPLAY is set when IMAGETEST is setJiajun Xu2010-12-161-0/+4
| | | | | | | | | | Fixes [BUGID: 594] In imagetest-qemu.bbclass, we depend on DISPLAY to start qemu in a X desktop. When user wants to run qemu sanity test, we need to check if the variable is set. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* image-swab: Correct PARALLEL_MAKE typoDarren Hart2010-12-101-1/+1
| | | | | | | An investigation into undocumented variables uncovered a mispelled instance of PARALLEL_MAKE in image-swab.bbclass. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
* yocto-kernel: factor common routes, update to 2.6.37 and branch renamingBruce Ashfield2010-12-101-0/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to extend and create more kernel recipes based on the supported yocto kernel common routines need to be placed in re-usable blocks. To accomplish this meta/recipes-kernel/linux/linux-yocto_git.bb is broken into three parts: - meta/classes/kernel-yocto.bbclass: contains common routines for checking out and configuring a yocto kernel git repository. This should be inherited by recipes that need this functionality. - meta/recipes-kernel/linux/linux-yocto.inc: Contains the machine mappings, compatibility, build directives and common task definitions for a yocto kernel based recipe. This inherits kernel-yocto, and is the typical point of entry for other recipes. - meta/recipes-kernel/linux/linuux-tools.inc: tasks and function definitions for kernel recipes that want to build/export perf It also updates the linux-yocto recipe to default to 2.6.37. As part of the update to 2.6.37 the branch naming and conventions have been modified to show inheritance, and be more generic. For example: master meta yocto/base yocto/standard/arm_versatile_926ejs yocto/standard/base yocto/standard/beagleboard yocto/standard/common_pc/atom-pc yocto/standard/common_pc/base yocto/standard/common_pc_64 yocto/standard/fsl-mpc8315e-rdb yocto/standard/intel_atom_z530 yocto/standard/intel_core_qm57_pch yocto/standard/mti_malta32_be yocto/standard/preempt_rt/base yocto/standard/preempt_rt/common_pc yocto/standard/preempt_rt/common_pc_64 yocto/standard/preempt_rt/intel_atom_z530 yocto/standard/preempt_rt/intel_core_qm57_pch yocto/standard/qemu_ppc32 yocto/standard/routerstationpro In this structure: master: tracks the mainline kernel meta: meta information for the BSPs and kernel features yocto/base: baseline kernel branch yocto/standard/base: 'standard' kernel, contains features and configs for all BSPs yocto/standard/<machine>: represents a BSP with specific features or configurations The tools, tree and libc-headers have all been updated to deal with this new structure. Also in addition to dealing with the new structure, they continue to work with the existing tree and will adapt at runtime to the differences. The linux-yocto-stable_git.bb recipe continues to build the 2.6.34 based tree,and linux-yocto_git.bb builds 2.6.37. As boards are enabled for the new kernel they will move from -stable to the development kernel. As of now, only the emulated targets have moved to 2.6.37-rcX Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libxml-parser-perl: Fix bug of empty package of libxml-parser-perl.Jingdong Lu2010-12-101-1/+1
| | | | | | Becaues of the error library path definition in cpan-base.class, libxml-parser-perl package is empty. Signed-off-by: Jingdong Lu <jingdong.lu@windriver.com>
* Drop variables that do nothingRichard Purdie2010-12-101-1/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* cross-canadian: Update after PN changes to include TARGET_ARCHRichard Purdie2010-12-102-18/+22
| | | | | | | | | | | | | This patch massively simplifies the canadian packaging and allows multiple toolchain targets to be parallel installed into the same nativesdk sysroot without package name conflits. Since we now do this, we can simplify cross-canadian to become more like nativesdk. This is a first pass over this task, similar changes would be desireable to cross and the whole MULTIMACH_ARCH mess can then probably be similified much further. Signed-off-by: Richgard Purdie <rpurdie@linux.intel.com>
* Using TRANSLATED_TARGET_ARCH instead of TARGET_ARCH.Lianhao Lu2010-12-101-0/+3
| | | | | | | | | | | Using TRANSLATED_TARGET_ARCH instead of TARGET_ARCH for cross-canadian packages. This is due to the TARGET_ARCH of x86_64 would results incorrect packaging in cross-canadian packages. The pacakge name appendix of x86_64 target in cross-canadian packages is x86-64. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* devshell: Clean up devshell code so this task doesn't polute the global ↵Richard Purdie2010-12-091-6/+5
| | | | | | namespace Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* imagetest-qemu: Allow the task to run after any rootfs is created and also ↵Richard Purdie2010-12-071-6/+15
| | | | | | | | | | | | standalone One bitbake invocation can cause multiple images to be generated. We should test each one and we cna do this by running after the rootfs task. Running the tests standlone is also still possible with a new separate standlone task. Acked-by: Scott Garman <scott.a.garman@intel.com> Acked-by: Jiajun Xu <jiajun.xu@intel.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: Warn people when TERMCMD is set to a non-installed programJoshua Lock2010-12-061-0/+6
| | | | | | | | | We default to gnome-terminal for TERMCMD (and TERMRUNCMD) so should check that this program actually exists during sanity checking. As a corollary document how to change these variables in the local.conf Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Drop AUTOTOOLS_STAGE_PKGCONFIG variable as its not used anywhereRichard Purdie2010-12-051-2/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclass: Mark various package functions as noexec since they don't do ↵Richard Purdie2010-11-281-0/+5
| | | | | | any work Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclasS: Add handing to remap RDEPENDS fields and avoid crossed ↵Richard Purdie2010-11-281-1/+13
| | | | | | target and native dependency trees Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* utility-tasks: Switch listtasks to use bb.plain() for printing outputRichard Purdie2010-11-281-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* rm_work: Set BB_SCHEDULER as done in OE.dev to ensure disk space is freed ↵Richard Purdie2010-11-281-0/+4
| | | | | | sooner rather than at the end of the build Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scripts/poky-env-internal/image-swab.bbclass: Remove OEROOT referencesRichard Purdie2010-11-281-1/+1
| | | | | | | OEROOT isn't used outside the init script so stop exporting it into the environment where it can "corrupt" sstate packages. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* utility-tasks.bbclass: Move distro related tasks to distrodata.bbclassDongxiao Xu2010-11-222-442/+440
| | | | | | | | | | | Most of the d.keys() used in file parsing are variables in distro_tracking_fields.inc, which are not used in normal build. Therefore remove the inclusion of distro_tracking_fields.inc from poky.conf. Besides, move distro related tasks to distrodata.bbclass, which includes that tracking field file. By this change, the file parsing time could save about 25%. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
* sanity.bbclass: add wget to required utilitiesPaul Eggleton2010-11-221-1/+1
| | | | Signed-off-by: Paul Eggleton <paul.eggleton@intel.com>
* update-alternatives.bbclass: don't expand var when appending do_installKevin Tian2010-11-211-2/+2
| | | | | | | | | | | | Or else absolute paths may be expanded which then breaks sstate signature comparison. I'm not sure whether pre/post funcs can be expanded or not. They are invoked at image build or on the target, and thus need be expanded some place. But if one recipe does use directories under TMP in its postinst helpers, this would be an issue again. Signed-off-by: Kevin Tian <kevin.tian@intel.com>
* image-swab: update swabber command for latest versionJoshua Lock2010-11-141-1/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* image-swab: introduce a class for generating swabber reportsJoshua Lock2010-11-141-0/+83
| | | | | | | Add a postprocess command to rootfs generation which generates a swabber report. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* sstate.bbclass: Remove the temp sstate-build-* directories in WORKDIRDongxiao Xu2010-11-141-0/+3
| | | | | | | | Remove the temp sstate-build-* directoies. Take poky-image-minimal as an example, this saves about 17% disk space. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* imagetest-qemu: Add sanity test cases for scp/shutdown in targetJiajun Xu2010-11-141-1/+1
| | | | | | | scp test is to check if file copying via network work or not in target. shutdown test is to check if target can be poweroff with qemu process off. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>