summaryrefslogtreecommitdiff
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* image.bbclass/initscripts: Make /etc/timestamp usage consistent.Gary Thomas2010-11-141-7/+3
| | | | | | | | | | | | Timestamp is kept in UTC Remove superfluous 'create_etc_timestamp()' function - seems to be a duplicate of 'rootfs_update_timestamp()' Remove External function reference [sgw@linux.intel.com: merged 2 patches and cleanup commit message] Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* insane.bbclass: fix qa_configure and qa_stagingQing He2010-11-141-2/+2
| | | | | | | fix the typo in `postfuncs' and effectively re-enables qa_configure and qa_staging Signed-off-by: Qing He <qing.he@intel.com>
* base.bbclass/poky.conf: Fix INCOMPATIBLE_LICENSE Whitelist checkingSaul Wold2010-11-141-4/+5
| | | | Signed-off-by: Saul Wold <Saul.Wold@intel.com>
* bitbake/fetch: Allow checking of a single url at a time (massive sstate ↵Richard Purdie2010-11-131-1/+1
| | | | | | speed improvement) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate.bbclass: Only create symlinks to different localpath urls if the ↵Richard Purdie2010-11-131-2/+3
| | | | | | fetch succeeded Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel: prefer the kernel produced uImageBruce Ashfield2010-11-101-1/+3
| | | | | | | | | | | | The custom uImage produced by the kernel classes by default does not universally boot and working with existing uboot configurations and setups. This changes the preference to the uImage constructed by the kbuild processes and falls back to the other techniques if uImage is requested by the kernel does not produce one. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* imagetest-qemu: Add test case for dmesg check in targetJiajun Xu2010-11-101-2/+4
| | | | | | | | Add a test case for error log check with command dmesg in target. The case introduces a new folder in target, "/opt/test", which holds test scripts running in target. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* package.bbclass: make sure 'sysroots' created before lockfileKevin Tian2010-11-071-0/+1
| | | | | | | | package sstate requires a lock under sysroots/, which however may not be created when sstate_setscene functions are executed and then causes failures. here we make sure 'sysroots' created before do_package_setscene is executed. Signed-off-by: Kevin Tian <kevin.tian@intel.com>
* meta/classes: Mark do_package_write and do_build as noexec tasksRichard Purdie2010-11-062-0/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* cross-canadian bbclass: replace hardcoded -pokysdk with SDK_VENDORKoen Kooi2010-11-031-1/+1
| | | | | Signed-off-by: Koen Kooi <k-kooi@ti.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: Provide a temporary mechanism to stop collisions between toolchain ↵Richard Purdie2010-11-021-1/+27
| | | | | | components in builds from scratch using sstate Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* base/utils.bbclass: Sync up overlapping functionsRichard Purdie2010-11-022-20/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* utils.bbclass: Add functions from OE.devRichard Purdie2010-11-021-5/+92
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* gnome.bbclass: Remove autotools_stage referenceRichard Purdie2010-11-021-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* gnome.bbclass: Use BPN instead of PN and set SRC_URI name similar to OE.devRichard Purdie2010-11-021-3/+4
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* src_distribute: Set EXPORT_FUNCTIONS correctlyRichard Purdie2010-11-011-0/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* rm_work.bbclass: Handle case where pseudo directory doesn't existRichard Purdie2010-10-231-1/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* package_deb: The packaging command itself is run under fakeroot so these ↵Richard Purdie2010-10-221-2/+0
| | | | | | lines are totally unneeded Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* classes: Only enable fakeroot on setscene tasks with packagingRichard Purdie2010-10-225-5/+4
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: Fix mirror handling for file:// urlsRichard Purdie2010-10-221-4/+11
| | | | | | | | | | The fetcher has special handling for file:// mirror urls, being efficient and just providing an updated path. Unfortunately the sstate fetching code wasn't able to handle this. This patch detects this and injects a symlink to ensure everything works. It also fixes some datastore references to be correct and ensures the sstate download directory exists if it doesn't already. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* pseudo/fakeroot: Move the pseudo directory creation into bitbakeRichard Purdie2010-10-225-1/+5
| | | | | | | | | | | | | | If sstate was used to accelerate a build, the pseudo directory might not have been created leading to subsequent task failures. Also, sstate packages were not being installed under pseudo context meaning file permissions could have been lost. Fix these problems by creating a FAKEROOTDIRS variable which bitbake ensures exists before running tasks and running the appropriate setscene tasks under fakeroot context. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* package_deb: Fix a typo meaning the debian packaging was not running in the ↵Richard Purdie2010-10-221-1/+1
| | | | | | fakeroot evnironment Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* package_rpm: Don't check for the existence of dvar as its never usedRichard Purdie2010-10-221-6/+1
| | | | | | | | | | | If a sstate package exists for the package task but not for the rpm packaging task, the output from the package task will be used. The directory pointed to by dvar will not exist under this scenario. Since the directory is never used by the packaging process remove the check, substituting the pkgd variable which is always present and used. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* base.bbclass: Ensure an empty do_build tasks exists to silence a warningRichard Purdie2010-10-221-0/+3
| | | | | | | The message "WARNING: Function do_build doesn't exist" doesn't look professional, so fix the underlying problem even if this warning is harmless. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: Fix broken plaindirs supportRichard Purdie2010-10-221-2/+6
| | | | | | | | | | | When installing a sstate package, directories tracked by plaindirs were being installed to the incorrect location. With the current implementation this was limited to the do_package task. This patch ensures plaindirs tracked files are created in the correct location, fixing the bug where these files would go missing. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* base/sstate: Add cleanall task to remove downloads and sstate cached filesRichard Purdie2010-10-222-5/+44
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* metadata_scm: Ensure that if an SCM isn't present, we dont print a revision ↵Richard Purdie2010-10-211-3/+6
| | | | | | of 'fatal:' as it looks bad Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* distrodata: Modify Distro tracking spreadsheetSaul Wold2010-10-152-10/+51
| | | | Signed-off-by: Saul Wold <Saul.Wold@intel.com>