summaryrefslogtreecommitdiff
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
* module: build hostprogs for each moduleDarren Hart2011-03-041-1/+11
| | | | | | | | | | | | | | | | | | This fixes [BUGID #241] The kernel hostprogs are built for the host architecture. They should not be deployed to the target, and they should not be included in an sstate package which might get reused on a host of a different architecture. As we don't build many out-of-tree modules, this patch takes the approach of building the hostprogs as part of the module compile process with a do_compile_prepend() routine in module.bbclass. We don't have to clean the hostprogs as modules depend on the kernel being populate_staging, so its done with the staging directory by the time we run. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Gary Thomas <gary@mlbassoc.com>
* distrodata.bbclass: Get git repo tag informationMei Lei2011-03-041-9/+43
| | | | | | | For those recipes which use git repo and have tag information, we can use tag to trace the version change. For other no tag recipes, we still use their commit checksum to trace their version change. Signed-off-by: Mei Lei <lei.mei@intel.com>
* insane.bbclass: Fix ELF bitsize comparisonMark Hatle2011-03-021-41/+43
| | | | | | | | | | | | | Fix the way the ELF size is compared to ensure that incorrectly sized ELF binaries are captured during the file scan. lib/oe/qa.py is changed to accept a bitsize as a parameter. Instead of previously defining true/false, it now takes "0" undefined, "32" 32-bit, and "64" 64-bit as the size argument. This allows us to preserve existing behavior of only loading one ELF type, while allowing the function to be able to discover the size on it's own. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* kernel: remove explicit bash call in do_menuconfigBruce Ashfield2011-03-021-1/+1
| | | | | | | | | | | | | | | Fixes [BUGID #598] The explicit addition of "bash" before "make menuconfig" is clearing variables that are required for pseudo. The end result is that menuconfig often fails silently with: ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded: ignored. Removing bash from the menuconfig SHELLCMDS variable fixes the psudo problem. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINESKoen Kooi2011-03-011-1/+3
| | | | | | | | | | | | | * Add support for using SOC_FAMILY in the COMPATIBLE_MACHINES setting for a recipe. * This will allow recipes to work for entire families of devices without having to maintain/update the compatible devices as new devices are added into a family Based on 07076390358f211bd96779bec2d6eb5eaa0ad699 by Chase Maupin <chase.maupin@ti.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* base/utility-tasks.bbclass: Drop do_setscene and do_rebuildRichard Purdie2011-03-012-49/+1
| | | | | | | | | | | | | The do_setscene task only exists for rebuild support now as all its other functionality has been superceeded. The rebuild task currently crashes due to removal of the working directory and therefore isn't working for anyone. It also interacts extremely badly with the newer sstate technology to the point of being dangerous. Summary, if we want rebuild support it needs a reimplementation so remove this version and all its remnants and hacks. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* populate_sdk_rpm.bbclass: Add the necessary solvedb lockMark Hatle2011-03-011-0/+1
| | | | | | | | | | | [BUG #776] When using the RPM solve databases, we have to lock our operations to avoid removing it while it's in use. The same lock is shared by the rootfs_rpm.bbclass Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* Fixing type: license.bbclassBeth Flanagan2011-03-011-1/+1
| | | | | | Munged a tab. Fixing Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
* Fixing my bad license parsing: license.bbclassBeth Flanagan2011-03-011-3/+4
| | | | | | | Fix to my bad license parsing. Also added the MIT generic license files. Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
* [BUG:650] Fix LICENSE parsing: license.bblcassBeth Flanagan2011-03-011-1/+2
| | | | | | LICENSE parsing was missing some cases. Fixed Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
* utils.bbclass: add new wrapper scriptSaul Wold2011-03-011-0/+23
| | | | | | | | | Add a new create_cmdline_wrapper() function that takes cmdline options for commands that need different directories Related to [BUGID #775 Signed-off-by: Saul Wold <sgw@linux.intel.com>
* rpm: Fix rpm usage of prelink on the targetMark Hatle2011-03-011-1/+1
| | | | | | | | | | RPM has the ability to validate files that have been prelinked, however the necessary configuration and staging was not done properly. Resolve this issue by fixing the macro paths, providing the missing RPM macro, and correcting a defect in the way the prelink image class was working with the necessary configuration file. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rootfs_rpm: Fix rootfs generation using RPM packagesMark Hatle2011-03-013-10/+23
| | | | | | | | | | | [BUG #756] Fix bug #756. The rootfs contains a control file /etc/rpm/platform that specifies the default system platform, as well as patterns for compatible architectures. This file was not being setup properly due to a misunderstanding of the format in a previous patch. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* package.bbclass: Rewrite package_do_filedeps() to reduce the amount of ↵Richard Purdie2011-03-011-33/+44
| | | | | | subprocesses created and improve speed Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package.bbclass: Fix debug sources directory creation to reference the ↵Richard Purdie2011-03-011-1/+1
| | | | | | target system Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package.bbclass: Refactor split and strip functionMark Hatle2011-03-011-98/+144
| | | | | | | | | Refactor the function to eliminate additional interations/walks of the filesystem.. Elimiate multiple runs of the external 'file' command as well. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* Revise stripping and splitting of debug informationMark Hatle2011-03-012-28/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | We now support two styles of debug information generation, the '.debug' style, which is the same as previously implemented. This style simply splits the debug information and makes it available in the same general directory. /bin/foo -> /bin/.debug/foo The new 'debug-file-directory' style splits the debug information and places it into the single debug-file-directory, /usr/lib/debug: /bin/foo -> /usr/lib/debug/bin/foo.debug Both also find and copy all referenced source code to a new /usr/src/debug directory. This allows the -dbg files to be used for stand-a-lone debugging on or off the target device. File stripping is now handled as a seperate operation from file splitting. This allows us to split the debug information, but also leave it in the original file -- or prevent the debug information from being split. Also enhance the comments within local.conf.sample to provide a better understanding of the control the user has over debug file generation. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* package.bbclass: Ensure dependency version information is preservedRichard Purdie2011-03-011-15/+17
| | | | | | [BUGID #176] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package.bbclass: Use hard link for package split instead of copyDongxiao Xu2011-03-011-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>
* package.bbclass: Unbreak per file dependencies and blacklist doc packagesRichard Purdie2011-03-011-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Ensure Bash is used when spawning terminalsJoshua Lock2011-03-012-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>
* 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-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* package_deb.bbclass: Place the whole task under fakeroot context to fix ↵Richard Purdie2011-02-221-1/+3
| | | | | | | | | | 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>
* distrodata.bbclass: Fix some bugs for rpm,icu and quicky recipe when ↵Mei Lei2011-02-211-7/+7
| | | | | | | | checking upstream version Fix some bugs in checkpkg function when checking upstream version Signed-off-by: Mei Lei <lei.mei@intel.com>
* rm_work.bbclass: Improve handling of noexec tasksRichard Purdie2011-02-211-0/+9
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* toolchain-script/populate_sdk/meta-toolchain: moving common code.Lianhao Lu2011-02-172-11/+26
| | | | | | | moving common code between populate_sdk.bbclass and meta-environment.bb into toolchain-script.bbclass. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* toolchain-scripts.bbclass: Added libtool sysroot support.Lianhao Lu2011-02-171-6/+4
| | | | | | Added missing --with-libtool-sysroot and --sysroot in environment files. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* libc-package.bbclass: Disable lib packaging dependenies for libc-initial ↵Richard Purdie2011-02-171-0/+4
| | | | | | versions Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* buildstats.bbclass: Remove unneeded debug outputRichard Purdie2011-02-161-1/+0
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_rpm: Fix solverdb generationMark Hatle2011-02-163-20/+28
| | | | | | | | | | | 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>
* image.bbclass: Disable shell debug messagesMark Hatle2011-02-161-1/+1
| | | | | | | 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>
* rpm: Add the ability to use the platform file during installMark Hatle2011-02-161-5/+10
| | | | | | | | | | | 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>
* Doing uname without subprocess: buildstats.bbclassBeth Flanagan2011-02-161-4/+7
| | | | | | | Instead of using subprocess which is problematic, we should use platform instead. Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
* buildstats.bbclass: Fix expand call syntaxRichard Purdie2011-02-151-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* buildstats.bbclass: Save ended time in TaskFinished eventsRichard Purdie2011-02-151-2/+3
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* buildstats: Disable uname subprocess call for now since it appears to be ↵Richard Purdie2011-02-151-2/+2
| | | | | | breaking runqueue somehow Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Buildstats commit: buildstats.bbclassBeth Flanagan2011-02-152-0/+195
| | | | | | Used to track some basic build metrics by build and task/event level. Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
* kernel.bbclass: add approproate X Environment variables to allow xterm to startSaul Wold2011-02-141-0/+3
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* package.bbclass: Breakout the strip from the populate_packagesMark Hatle2011-02-121-22/+36
| | | | | | Break out the file split/strip from the populate_packages. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* mirrors.bbclass: Ensure we don't overwrite any existing MIRRORS variableRichard Purdie2011-02-111-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Fix bugs after new fetcherZhai Edwin2011-02-111-3/+3
| | | | | | | | | | | | | 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>
* meta: Update mirror urls to new format and update yocto project urlsRichard Purdie2011-02-111-57/+55
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* fetch2: Correct the clean() mechanism for the fetcher2 codeSaul Wold2011-02-101-15/+9
| | | | | | | 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>
* rm_work.bbclass: Fix typo for package task directory preservationRichard Purdie2011-02-101-2/+2
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package.bbclass: Only set recrdeptask for do_build if packaging is enabled ↵Richard Purdie2011-02-101-1/+4
| | | | | | for the recipe Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* debian.bbclass: Only set rdeptask for do_package if packaging is enabledRichard Purdie2011-02-101-4/+10
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image-swab: Convert to attach strace to the process to obtain the required ↵Richard Purdie2011-02-101-2/+17
| | | | | | swabber data Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Misc hard link fixesMark Hatle2011-02-094-9/+9
| | | | | | | | | 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>