summaryrefslogtreecommitdiffstats
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
* sanity.bbclass: Clean up various MACHINE checksRichard Purdie2011-08-311-37/+50
| | | | | | | | | | | | | | | | | | | | [YOCTO #1398] Firstly we should start checking if MACHINE is set. It if isn't lets make this a sanity warning since its very hard to successfully build without setting one (and anyone wanting to do that can disable the sanity checks easily enough anyway). Some of the checks depend on a MACHINE being specified. This change moves those checks to a separate function so they only run if MACHINE has been set correctly. Both these issues combine to ensure the user sees a sane message and avoids the nasty tracebacks in the bug report referenced above. (From OE-Core rev: 02aceca132f9e259cdc5283c4bfe84e6a55df54d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: Fix broken whitespaceRichard Purdie2011-08-311-6/+6
| | | | | | (From OE-Core rev: ab44ec9618109b0852d9441b6dd065c72c86acb2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: Fix broken indentation leading to code being skipped ↵Richard Purdie2011-08-311-19/+19
| | | | | | | | unintentionally (From OE-Core rev: 5200d38222c3188e695080b45b975daa20c8a9fa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package.bbclass: Ensure task's variable dependencies are correctly caputred ↵Richard Purdie2011-08-312-1/+16
| | | | | | | | | | | | | in the sstate checksum [YOCTO #1388] This change is needed to correctly add the dependencies for the do_package task which bitbake is unable to automatically detect itself. (From OE-Core rev: 0614b9aa62a46f81d334ca4230080cc707347f3c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libc-package: restore correct mangling behavior for locale namesPhil Blundell2011-08-311-2/+2
| | | | | | | | | | | | This reverts 19fb07bf337e1d724798e2eb4479c35fc45b1941 and restores the behaviour of the code to the way it was prior to 561d875404ef1783f94f37314b6e756766db8411. See http://lists.linuxtogo.org/pipermail/openembedded-core/2011-August/007407.html and subsequent messages. (From OE-Core rev: e5810439cc394d8ebfc264b05e1fbfad19e8fcd3) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: use ${TARGET_PREFIX}depmodChris Larson2011-08-301-1/+1
| | | | | | | | | | | | Currently it uses ${TARGET_SYS}-. This is inconsistent, as the recipe and kernel bbclass both use the prefix. While there aren't many cases where the two differ, it is harmless to ensure that we are behaving consistently. (From OE-Core rev: 8aec52f4fd1ad3e4148e2ad32700a4378e69dcd3) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image_types_uboot: fix a number of issuesChris Larson2011-08-301-13/+12
| | | | | | | | | | | | | | - Don't use a variable reference in the IMAGE_DEPENDS - Inherit kernel-arch to get UBOOT_ARCH - Don't include the .bz2 variants, since the base types aren't in oe-core - Add the new types to IMAGE_TYPES - Inherit image_types, to be certain we load after it (From OE-Core rev: f67789b83599b86be052b3f2d686791cbf24f540) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image_types: add ext4 types from OEChris Larson2011-08-301-1/+26
| | | | | | | (From OE-Core rev: c407d31a42786230062f21c8cf8dc8700dbc6f54) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: Find the kernel consistently.Mike Crowe2011-08-291-3/+3
| | | | | | | | | | Use KERNEL_OUTPUT variable to find the generated kernel image rather than duplicating the existing path. This also means it can be overridden simply. (From OE-Core rev: de5b502330ded38c0efe2c4e30967ef12dbad72a) Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* multilib.bbclass: add renaming for INITSCRIPT related variablesDongxiao Xu2011-08-291-1/+2
| | | | | | | | | | | | | Initscripts are missing in target image in multilib case. This commit adds the renaming logic for the related variables in multilib.bbclass. This fixes the no response of mouse/keyboard in target system due to the missing of udev startup script. (From OE-Core rev: 477fc6e2fc034c68a250005461774bc8ecf91a52) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* multilib.bbclass: add "pkg_postinst" and "pkg_postrm" as renaming elementsDongxiao Xu2011-08-291-1/+1
| | | | | | | | | | Add "pkg_postinst" and "pkg_postrm" as renaming elements, which fixes missing post install/rm scripts in target image. (From OE-Core rev: a5c9f8af79c1632d2f3de5dd9627a7ca24fa0b76) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* multilib.bbclass: Fix renaming logic for "FILES_", "RDEPENDS_", etcDongxiao Xu2011-08-291-10/+8
| | | | | | | | | | | | | | | | | | | | | In the orignal logic, the renaming will not work for "FILES_" if defined variables as: PACKAGES = "${PN}" FILES_abc = "/usr/include/abc.h" It is because ${PN} is "lib64-abc" so it will not be contained in pkgrename. This commit enumerates all element in PACKAGES, getting the original packages and multilib packages, then doing renaming for "FILES_", "RDEPENDS_", etc. This fixes a lot of missing files and incorrect dependencies. (From OE-Core rev: ea7c196b4097d64b4f42faccaf075334c297ba20) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: support kernel image type of vmlinux.gzMike Crowe2011-08-291-1/+6
| | | | | | | | | | | Add support for a gzipped vmlinux kernel by specifying: KERNEL_IMAGETYPE = "vmlinux.gz" (From OE-Core rev: cb17b6c2a72f260c61b0ec46887c2a04ac5b3f80) Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package.bbclass: Fix recrdeptask of image type recipesDongxiao Xu2011-08-291-1/+1
| | | | | | | | | | | | | For image type of recipes, we need to define do_package_write as its do_build recrdeptask, which ensures that all packaging types listed in PACKAGE_CLASSES will be built out. [YOCTO 1370] (From OE-Core rev: b68cd33673fdc17711d7b9fde9cc23b0d8498c17) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/sanity: enhance the network connectivity testJoshua Lock2011-08-251-12/+2
| | | | | | | | | | | | | | Switch to use the checkstatus fetcher API for the network connectivity test, this has several advantages: * we no longer print any messages to the console whilst the check is being run * we don't actually download anything, removing the need for tidy up and making the code more concise (From OE-Core rev: 81aa4bfbde871af1d569b64499c34a315bf6218e) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta-toolchain/environment: Collected site config files in runtime.Lianhao Lu2011-08-241-1/+1
| | | | | | | | | | | [YOCTO #892] Use the new cached site config files generation mechanism in toolchain-script.bbclass. (From OE-Core rev: 445d6426197579a9c0317498cc6919bb63e7f726) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* toolchain-script.bbclass: Collected cached site config in runtime.Lianhao Lu2011-08-242-4/+24
| | | | | | | | | | | | | | | [YOCTO #892] Modify the function toolchain_create_sdk_siteconfig to collect the cached site config files which are specified by TOOLCHAIN_NEED_CONFIGSITE_CACHE in runtime. Also added task dependency to ensure the cached site config files are generated. (From OE-Core rev: 9e87f1347788beed181476dc4563085db14a4729) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libc-package bbclass: fix binary localedata dependency codeKoen Kooi2011-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | When using binary locales rootfs generation fails with: | Unknown package 'locale-base-en-us'. | Collected errors: | * opkg_install_cmd: Cannot install package locale-base-en-us. This is due to: $ dpkg-deb -I ipk/armv7a/locale-base-en-us_2.12-r16_armv7a.ipk | grep Depends Depends: eglibc-binary-localedata-en.us Note the '.' seperator $ ls ipk/armv7a/ | grep binary-localedata-en | grep us eglibc-binary-localedata-en-us_2.12-r16_armv7a.ipk Note the '-' seperator vs the '.' in the locale-base packages. (From OE-Core rev: 19fb07bf337e1d724798e2eb4479c35fc45b1941) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* terminal: fix issue with unset exportable env varsChris Larson2011-08-241-1/+3
| | | | | | | | | This should resolve the devshell issue people are seeing. (From OE-Core rev: 332f2a9febfc3697ed4a20fca3016e0399ae90eb) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass, kernel.bbclass: remove non-standard -n option from cp commandPaul Eggleton2011-08-232-2/+2
| | | | | | | | | | -n is not a POSIX option and does not work on some systems (e.g. Debian Lenny); in any case it is not strictly necessary here, so remove it. (From OE-Core rev: 13e14763f14b5b84051ecb158404dcef937cc4e0) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base.bbclass: clarify COMMERCIAL_LICENSE skip reasonPaul Eggleton2011-08-231-1/+1
| | | | | | | | | | | | | Change to a proper sentence and add a reference to the COMMERCIAL_LICENSE variable so that the user knows where this can be controlled. Addresses remainder of [YOCTO #846] (From OE-Core rev: 463d1719cc627ef22089282acfe70d7fcb835419) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* utils.bbclass: skip empty paths when handling FILESEXTRAPATHSMartin Jansa2011-08-231-2/+3
| | | | | | | | | | | | | * if there is multiple .bbappend files with FILESEXTRAPATHS_prepend := "/:" then the one parsed last is causing trailing ':' and that's causing empty element in path = extrapaths.split(:) + path * it's hard to keep all .bbappends from foreign layers to follow this rule, so it's better to be able to handle trailing ':' (From OE-Core rev: 3b5591d423324da076d038ad335af47b616a7903) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: save kernel image name into $kerneldirOtavio Salvador2011-08-231-0/+6
| | | | | | | | | | | Save the kernel image name into sysroot so it can be used during image build if need. This is used by O.S. Systems products and probably useful to others. (From OE-Core rev: 19a587cb98a20f0e659483541fc8cec874f6afa9) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Use OECORE_DISTRO_VERSION instead of POKY_DISTRO_VERSIONOtavio Salvador2011-08-231-6/+6
| | | | | | | (From OE-Core rev: 6890c02ec4538b82b694deaba39e9921af4e3f47) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image_types_uboot: add uboot mkimage fs typesChris Larson2011-08-231-0/+21
| | | | | | | (From OE-Core rev: ac75c4cc27494e93ad8eba318582b875fea8f508) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: add optional untested host distro warningPaul Eggleton2011-08-191-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | SANITY_TESTED_DISTROS, if specified, is expected to be a newline-delimited list of distro identifier strings, e.g. SANITY_TESTED_DISTROS = " \ Ubuntu 11.04 \ Fedora release 14 (Laughlin) \ " (spaces, tabs etc. are trimmed) If SANITY_TESTED_DISTROS is defined, we will attempt to detect the host distribution. If the distribution is not in SANITY_TESTED_DISTROS or we could not detect the distribution then we show a warning during sanity checking. Provides the mechanism for fixing [YOCTO #1096]. (From OE-Core rev: 75e3875341ddc8940e9ee2ccbbb2ec18194a68e6) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass, kernel.bbclass: create warning file about deleting deploydir ↵Paul Eggleton2011-08-192-0/+4
| | | | | | | | | | | | | | | | | | files New users sometimes delete files in tmp/deploy/images assuming they will be re-created just by re-running the build, and then are confused when this doesn't work. To discourage people from doing this, create a file called README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt in tmp/deploy/images containing an explanation of what needs to be done to re-create files there. Fixes [YOCTO #1315] and [YOCTO #1346]. (From OE-Core rev: 4316c5e9eec67d71f4699102a63a5f968bd8d1d9) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel: restore crtsavres.o to enable building external modules on powerpcDarren Hart2011-08-171-0/+7
| | | | | | | | | | | | | | | | | | | | Fixes [YOCTO #1276] As of Linux kernel version 3.0.1, and much earlier, the make clean target removes arch/powerpc/lib/crtsavres.o. As this object is present in KBUILD_LDFLAGS_MODULE, it is required to build external modules, and should therefor not be removed by make clean. While I do not advocate fixing buggy kernels in the generic kernel classes, we should probably account for this one in kernel.bbclass as it affects such a long list of kernel versions. (From OE-Core rev: 2e83e6755441cb14bd907d306974338c15173189) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com> CC: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* buildstats.bbclass: Fixing task endtimeBeth Flanagan2011-08-171-3/+3
| | | | | | | | | Task endtime got left out of recent changes. Adding it back in. (From OE-Core rev: f1e4b049438218347922f13de810782be0205c3d) Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qmake_base: add uclibceabiAnders Darander2011-08-171-1/+1
| | | | | | | | | | | Partial sync of qmake_base from meta-oe. * Add a matching rule for *linux-uclibceabi-oe-g++, to make qmake_base.bbclase more similar to the version in meta-oe. (From OE-Core rev: 2a1fa5b3f1424e9264d29027c589b55cf2feb109) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package(_ipk).bbclass: opkg using ALL_MULTILIB_PACKAGE_ARCHSLianhao Lu2011-08-173-38/+29
| | | | | | | | | | | | | | [YOCTO #1345] The new variable ALL_MULTILIB_PACKAGE_ARCHS contains all the values of PACKAGE_ARCHS for each multilib variants. The opkg backend now uses this new value insteald of the PACKAGE_ARCHS to update the opkg indexes and to generate the opkg configuration files. This allows the normal packages and multilib packages may be installed into the same rootfs. (From OE-Core rev: b774bf44ef004276da12a83ebd69715c00b596ac) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gtk-icon-cache: Adding MLPREFIX when dynamically set RDEPENDSDongxiao Xu2011-08-171-1/+1
| | | | | | | | | | | | When dynamically setting RDEPENDS, we need to add MLPREFIX to adapt multilib case. [YOCTO #1368] (From OE-Core rev: 2ed808b764f023c074fa3aabef18b4f874cd82c7) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_rpm: Fix package rename issue in multilib caseDongxiao Xu2011-08-171-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | do_package task will write information into pkgdata and do_package_write_rpm will read them out. Take lib32-dates as an example, one of its RDEPENDS is li32-gtk+, and PKG_lib32-gtk+ = "libgtk-2.0", these info is stored at: tmp/pkgdata/x86_64-pokymllib32-linux/runtime/lib32-dates. Function "mapping_rename_hook" in do_package_write_rpm is to handle those renamed packages. However before it executes, translate_vers has stripped the multilib prefix out, making it failed to find PKG_gtk+ value in pkgdata. This commit moves the strip_multilib out of translate_vers and call it after "mapping_rename_hook". [YOCTO #1368] CC: Mark Hatle <mark.hatle@windriver.com> (From OE-Core rev: 216a1cfe7973e99e3e79585040e91f7a6e298884) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_rpm: enhance strip_multilib functionDongxiao Xu2011-08-171-4/+4
| | | | | | | | | | | | | | | | The previous logic could only strip MLPREFIX from the first element in an array, take an example, strip_multilib the [lib32-a lib32-b lib32-c] will result in [a lib32-b lib32-c]. We need to strip prefix one by one. This commit change the logic to strip all elements' multilib prefix. [YOCTO #1368] CC: Mark Hatle <mark.hatle@windriver.com> (From OE-Core rev: ca729de4b261e4feba74fdf0b2578890bc80ea90) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm: Fix DEFAULTTUNE setting in multilib caseDongxiao Xu2011-08-171-4/+0
| | | | | | | | | | | | | | | "virtclass-multilib" is set to OVERRIDES in multilib.bbclass, remove the duplicated settings here. Besides, DEFAULTTUNE has overrided and it can be directly used. [YOCTO #1368] CC: Mark Hatle <mark.hatle@windriver.com> (From OE-Core rev: dc78cdb318671862c5cd15711364c1c4462d9ece) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cmake.bbclass, perlnative.bbclass: arrange for cmake to find perl-nativePhil Blundell2011-08-172-1/+3
| | | | | | | | | | | | When CMake is looking for perl, it only searches in the specific directories that it's told about and ignores ${PATH}. If perlnative is in use, ensure that the appropriate installation path is added to the list of places that cmake will look for perl, otherwise it won't ever be found. (From OE-Core rev: add9e4e30e0b1e0f93479b43ce61953efb90985d) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* utils.bbclass/multilib.class: Added misc supporting functions.Lianhao Lu2011-08-152-1/+35
| | | | | | | | | | | | | | | | 1. Added variable MULTILIB_VARIANTS to store all the instance variants for multilib extend. 2. Added function all_multilib_tune_values to collect the variable values for all multilib instance. 3. multilib bbclass handler will save the orignal value of all variables defined in MULTILIB_SAVE_VARNAME. (From OE-Core rev: 18bba910e04bff75460f408e4557d4bae21ad592) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_rpm: Fix attemptonly and suggest packagesMark Hatle2011-08-121-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | [YOCTO #1325] [YOCTO #1366] Packages that were in the PACKAGE_ATTEMPTONLY and SUGGESTS were not being properly found, which was causing image creation failures. In PACKAGE_ATTEMPTONLY, when an item was not found, it caused an error. This should have been a note, followed by skipping the package. The SUGGESTS processing was simply broken. It was using a non-existant function, due to an apparently typo. In addition to the above, the MLPREFIX processing was not being done properly, preventing multilib packages from working in this with PACKAGE_ATTEMPTONLY. (SUGGESTS doesn't need this as the names are munged when creating the packages.) (From OE-Core rev: 4fb6723ab1ee14cf539f0ef2df63a3ee1b978de6) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_rpm.bbclass: Update the platform config and --targetMark Hatle2011-08-121-3/+11
| | | | | | | | | | | | | | | | | When constructing the /etc/rpm/platform file, we need to ensure that the any, all, and noarch platforms will allow any "linux" variant to be installable, not just matching variants.. i.e. arm-oe-linux-gnueabi should be able to install noarch-oe-linux Also ensure that we pass the full canonical arch via the --target= parameter. This allows us to define the proper platform settings for all packages. (From OE-Core rev: c6bb9445de90cfb46db9c40842dbe1bfbb5b8ce8) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cross: also empty PACKAGES_DYNAMICChris Larson2011-08-121-0/+2
| | | | | | | (From OE-Core rev: 6135bfb1c462a6ce1d6f2e54c6d1b7609fb7c76d) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package: allow setting a section for locale packagesChris Larson2011-08-121-0/+5
| | | | | | | (From OE-Core rev: 521cab0239352e3b4316183c20e63cc06f5ae92b) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package: include SECTION in the pkgdataChris Larson2011-08-121-0/+1
| | | | | | | (From OE-Core rev: 47664bb8309f5d791d7aa040a38c7324cb4f14e6) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity: shift the required utils into a variableChris Larson2011-08-121-1/+3
| | | | | | | (From OE-Core rev: 4b766d82b15f9821a8c7299826799fad9bb88666) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nativesdk: inherit relocatableChris Larson2011-08-121-0/+2
| | | | | | | (From OE-Core rev: 6a7a5381357861a098640c42ba2f894213086b41) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane: add linux-gnu to the platform dataChris Larson2011-08-121-0/+3
| | | | | | | (From OE-Core rev: 206f1501b0ccdd971ee40f3d112b4756077a9af9) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Magic file path should be given for rpmbuildjani.uusi-rantala@nokia.com2011-08-111-0/+2
| | | | | | | | | | | Magic file path should be given for rpmbuild in _rpmfc_magic_path define so that build system default file is not used by accident. Not doing this caused many packages to fail building in several systems. Fixes [YOCTO #1358] Signed-off-by: Jani Uusi-Rantala <jani.uusi-rantala@nokia.com>
* sstate: Add level 2 debug so its possible to see what sstate is doingRichard Purdie2011-08-111-2/+8
| | | | | | | | | | | | Currently its hard to figure out if/when sstate is checking for possible packages to speed up builds. This patch adds level 2 debug output which better indicates what files are being searched for an why. [YOCTO #1259] (From OE-Core rev: a752b23767189f2678367e47ca0b41f49c56a631) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Rework how the devshell functionsChris Larson2011-08-102-18/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the new implementation, each known terminal is defined as a class in oe.terminal, as a subclass of bb.process.Popen. terminal.bbclass wraps this functionality, providing the metadata pieces. It obeys the OE_TERMINAL variable, which is a 'choice' typed variable. This variable may be 'auto', 'none', or any of the names of the defined terminals. When using 'auto', or requesting an unsupported terminal, we attempt to spawn them in priority order until we get one that's available on this system (and in the case of the X terminals, has DISPLAY defined). The 'none' value is used when we're doing things like automated builds, and want to ensure that no terminal is *ever* spawned, under any circumstances. Current available terminals: gnome konsole xterm rxvt screen (From OE-Core rev: 69f77f80965fa06a057837f8f49eda06855c4086) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* core-image: adjust to use the new IMAGE_FEATURES supportChris Larson2011-08-101-60/+17
| | | | | | | (From OE-Core rev: fa7fbc9695829f7fa981b16d9559e9e984494e09) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image: add support for generally useful {dev,doc,dbg}-pkgs featuresChris Larson2011-08-101-2/+32
| | | | | | | (From OE-Core rev: 7fd8fe53072d3bebb31da4e556878d3c25a10478) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>