summaryrefslogtreecommitdiff
path: root/meta/classes
AgeCommit message (Collapse)AuthorFiles
2011-03-01package.bbclass: Use hard link for package split instead of copyDongxiao Xu1
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>
2011-03-01package.bbclass: Unbreak per file dependencies and blacklist doc packagesRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-01Ensure Bash is used when spawning terminalsJoshua Lock2
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>
2011-02-23distrodata.bbclass: Fix some issues when checking upstream version on ↵Mei Lei1
sourceforge Signed-off-by: Mei Lei <lei.mei@intel.com>
2011-02-23linux-yocto: enable audio for selected qemu targetsBruce Ashfield1
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>
2011-02-23sstate.bbclass: add SSTATEPOSTINSTFUNCSScott Garman1
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>
2011-02-22package_deb.bbclass: Place the whole task under fakeroot context to fix ↵Richard Purdie1
build failures If we don't do this, the ipk/rpm backends can create temporary files and then when the deb package creates new files, those inodes can be reused and permission confusion results. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-21distrodata.bbclass: Fix some bugs for rpm,icu and quicky recipe when ↵Mei Lei1
checking upstream version Fix some bugs in checkpkg function when checking upstream version Signed-off-by: Mei Lei <lei.mei@intel.com>
2011-02-21rm_work.bbclass: Improve handling of noexec tasksRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-17toolchain-script/populate_sdk/meta-toolchain: moving common code.Lianhao Lu2
moving common code between populate_sdk.bbclass and meta-environment.bb into toolchain-script.bbclass. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2011-02-17toolchain-scripts.bbclass: Added libtool sysroot support.Lianhao Lu1
Added missing --with-libtool-sysroot and --sysroot in environment files. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2011-02-17libc-package.bbclass: Disable lib packaging dependenies for libc-initial ↵Richard Purdie1
versions Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-16buildstats.bbclass: Remove unneeded debug outputRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-16package_rpm: Fix solverdb generationMark Hatle3
The RPM solverdb was potentially being generated multiple times. Fix this by ensuring we only process each directory once. Also correct an issue where the solution did not necessarily follow the preferred architecture ordering, reverse the default Poky ordering so that preferred is listed first. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-16image.bbclass: Disable shell debug messagesMark Hatle1
By default image had a "set -x" to enable shell debug messages, this adds a lot of overhead to the system due to logging. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-16rpm: Add the ability to use the platform file during installMark Hatle1
Add a new rpm macro, rpmrc_platform_path to specify an alternative platform file. This is required to allow the dep resolver to identify compatible packages. Also workaround a minor problem with the --showrc command in RPM. A bug has been reported upstream on this. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-16Doing uname without subprocess: buildstats.bbclassBeth Flanagan1
Instead of using subprocess which is problematic, we should use platform instead. Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
2011-02-15buildstats.bbclass: Fix expand call syntaxRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-15buildstats.bbclass: Save ended time in TaskFinished eventsRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-15buildstats: Disable uname subprocess call for now since it appears to be ↵Richard Purdie1
breaking runqueue somehow Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-15Buildstats commit: buildstats.bbclassBeth Flanagan2
Used to track some basic build metrics by build and task/event level. Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
2011-02-14kernel.bbclass: add approproate X Environment variables to allow xterm to startSaul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-02-12package.bbclass: Breakout the strip from the populate_packagesMark Hatle1
Break out the file split/strip from the populate_packages. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-11mirrors.bbclass: Ensure we don't overwrite any existing MIRRORS variableRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-11sstate: Fix bugs after new fetcherZhai Edwin1
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>
2011-02-11meta: Update mirror urls to new format and update yocto project urlsRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10fetch2: Correct the clean() mechanism for the fetcher2 codeSaul Wold1
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>
2011-02-10rm_work.bbclass: Fix typo for package task directory preservationRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10package.bbclass: Only set recrdeptask for do_build if packaging is enabled ↵Richard Purdie1
for the recipe Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10debian.bbclass: Only set rdeptask for do_package if packaging is enabledRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10image-swab: Convert to attach strace to the process to obtain the required ↵Richard Purdie1
swabber data Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-09Misc hard link fixesMark Hatle4
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>
2011-02-09package.bbclass: Preserve hard links!Mark Hatle1
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>
2011-02-09image-mklibs.bbclass: add the library optimization functionalityNitin A Kamble1
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>
2011-02-09kernel.bbclass: use defconfig if it existsDarren Hart1
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>
2011-02-09linux-yocto: streamline BSP bootstrappingBruce Ashfield1
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>
2011-02-08insane.bbclass: Fix config.log error messageMark Hatle1
[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>
2011-02-08kernel-yocto: Ensure python code has awlays run before SRCPV is expandedRichard Purdie1
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>
2011-02-08kernel-yocto/poky-default-revisions: Ensure SRCREV_machine is set for the ↵Richard Purdie1
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>
2011-02-07distrodata: Update to new fetcher APIRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-07utility-tasks: Update checkuri to new fetcher APIRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-07kernel-yocto: 'standard' isn't a valid git branch name for a SRCREV, fixRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-07meta/classes: Update classes to use new fetcher APIRichard Purdie4
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-07base.bbclass: Update after fetcher changesRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-03package.bbclass: Optimise file dependency calculations to ignore locales and ↵Richard Purdie1
kernel modules as these never have dependencies we'd detect anyway Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-03bitbake.conf & package.bbclass: Use default SUMMARY and DESCRIPTIONMark Hatle1
A new default SUMMARY and DESCRIPTION was defined for any package that previously did not contain one. This value is based on the original SUMMARY_${PN} value. The new default SUMMARY and DESCRIPTION is used as a basis for all of the automatic summary and descriptions for the various package splits, include ${PN}, ${PN}-dbg, ${PN}-dev, ${PN}-doc, and locales. A recipe may also override any of the automatic summaries by simply specifying the value. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-03license.bbclass: Add coverage by sstate code (also use cleandirs and dirs ↵Richard Purdie2
task attribures for directory handling) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-03rm_work: Retain package and package-split directories to be consistent with ↵Richard Purdie1
sstate code Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-03rootrs_rpm.bbclass: Disable createrepo for now due to this error:Richard Purdie1
| + createrepo /media/build2/builds/rptest/b4/tmp/deploy/rpm | Traceback (most recent call last): | File "/media/build2/builds/rptest/b4/tmp/sysroots/x86_64-linux/usr/share/createrepo/genpkgmetadata.py", line 26, in <module> | import rpm | ImportError: No module named rpm Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-02linux-yocto/linux-libc-headers-yocto: Adjust to git fetcher improvementsRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>