summaryrefslogtreecommitdiffstats
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
...
* classes: remove classes that don't belong in oe-corePaul Eggleton2011-07-197-165/+0
| | | | | | | | | | | | | | | These classes are not used within oe-core and really belong in an upper layer that makes use of them, if they are still useful: * mozilla.bbclass * openmoko*.bbclass * srec.bbclass * xfce.bbclass (From OE-Core rev: fa8779452de5e1a8ded92bdf4a952158fda6160a) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes: remove obsolete classesPaul Eggleton2011-07-197-152/+0
| | | | | | | | | | | | | | | | | | | | | All of these classes are currently unused in oe-core and meta-oe; several are no longer in use even in OE classic: * base_srpm.bbclass * ccdv.bbclass * flow-lossage.bbclass * patcher.bbclass * singlemachine.bbclass * tmake.bbclass * xlibs.bbclass patcher.bbclass and singlemachine.bbclass probably still work but it is unlikely that anyone is still using them. (From OE-Core rev: 7416bdaf01daaeb183b1cc8d13a043e244c464e1) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: minor whitespace fixesPaul Eggleton2011-07-191-2/+2
| | | | | | | (From OE-Core rev: 7c84b6f2cfaa12d631e34d29625436b4353c8c35) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: remove unintended change of INITRAMFS_TASKAndrea Adami2011-07-141-1/+1
| | | | | | | | | | | | | | * during an unfortunate round of tests right before commiting the patch * do_configure[depends] became kernel_do_configure[depends] * Nonsense! * As documented in commit 4dfef62dfe54a3b2c557a6df81d155adc1e03ccb * of OpenEmbedded git server, this must be in do_configure[depends] * to do the magic. (From OE-Core rev: df31400ef89c14b45860feb906d4355d5f7de0c7) Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane: make GNU_HASH check slightly more robust (avoids false negatives ↵Phil Blundell2011-07-141-11/+33
| | | | | | | | | | | | | with gold); add check for useless rpaths It isn't safe to make assumptions about the order of the entries in the dynamic section. Fix the ldflags test to cope with the case where GNU_HASH comes before NEEDED and/or INIT. Also, add a new warning for binaries which contain useless (but benign) rpath entries pointing to the default search locations. (From OE-Core rev: 9adac72a77dafd2a203e29beec0b65f0ef5f2cb6) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_ipk: add License field to control fileKoen Kooi2011-07-141-0/+1
| | | | | | | | | | Port of oe.dev Revision e35d1ffad1553f259b084578992f15d10f590f98 (From OE-Core rev: 258b40a324c0191544dd9a74b3bd22948f4fb989) Signed-off-by: Koen Kooi <koen@openembedded.org> Signed-off-by: Khem Raj <raj.khem@gmail.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/image_types: add a variable to list available IMAGE_FSTYPE'sJoshua Lock2011-07-131-0/+2
| | | | | | | | | | This is for use in the Hob GUI to enable the user to change the type of the generated image. (From OE-Core rev: 12600138721262ce02e9dd243bcf44e52e065179) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: fix the broken linesNitin A Kamble2011-07-131-2/+2
| | | | | | | | (From OE-Core rev: adf2fbf82da7f85bb06e3b01e84a1a45814aaa51) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sat-solver: fix for non /usr/lib libdir caseYu Ke2011-07-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | when libdir set to non /usr/lib like /usr/lib64, there is do_configure error: " -- Libraries will be installed in /usr/lib CMake Error at /home/kyu3/sdb/lib64/tmp/sysroots/x86_64-linux/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): Please install 'check' and 'check-devel' packages (missing: CHECK_LIBRARY) Call Stack (most recent call first): /home/kyu3/sdb/lib64/tmp/sysroots/x86_64-linux/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindCheck.cmake:17 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:35 (FIND_PACKAGE) -- Configuring incomplete, errors occurred! " The reason is that cmake did not search /usr/lib64 for libcheck, thus report error add ${libdir} to the CMAKE_SYSTEM_LIBRARY_PATH can fix this issue. (From OE-Core rev: f4de87ce30a37bb2f09855d442b34d153ada8c0e) Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane.bbclass: skip rdepends QA checks for kernel / modulesPaul Eggleton2011-07-121-0/+5
| | | | | | | | | | | | The kernel and module recipes have very few dbg/dev packages, however they can easily have false positive results from the rdepends QA checks (e.g. kernel-module-lirc-dev). Thus disable these tests for any recipe that inherits kernel or module-base. (From OE-Core rev: 7a383f8ae8433c14b6995966216b9e6e81ea6a51) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass, task-base: remove references to obsolete bluez-dtl1-workaroundPhil Blundell2011-07-121-5/+0
| | | | | | | (From OE-Core rev: a78b644a8aebd078b9cc51bf7d102feef8191d95) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: handle embedding of initramfs imagesAndrea Adami2011-07-121-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * "All 2.6 Linux kernels contain a gzipped "cpio" format archive, which is * extracted into rootfs when the kernel boots up." * (http://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt) * * In some cases it can be useful to take advantage of this ability and embed your * customized rootfs ("the move to early userspace is necessary because finding * and mounting the real root device is complex"). * * Therefore, some code was added and since 2009 OpenEmbedded metadata * provides a convenient way to include your initramfs by setting * INITRAMFS_IMAGE = "your_initramfs_image.bb" * and specifying the chosen output format in the initramfs image recipe, e.g. * IMAGE_FSTYPES = "cpio.gz cpio.lzma" * * * Patch was imported from the OpenEmbedded git server * (git://git.openembedded.org/openembedded) * * Add satndalone task "builtin_initramfs". * commit 72761e468bb3e905459f2b81ce1bc4d80419481f * (From OE-Core rev: 19bda7f2c2dac6363468a49295c38f2095c67c98) Signed-off-by:Paul Sokolovsky <pmiscml@gmail.com> * * 'Remove usage of non-standard variables (DEPLOY_TO) and random renaming * of output.' * commit 456ba7ffd159821e86ad7ad4b66ec7d5790bd054 * Richard Purdie <rpurdie@rpsys.net> * * 'Fis typo in do_builtin_initramfs.' * commit 37f2fe4b801df832e93553a08eff24fec736c7d4 * Signed-off-by:Paul Sokolovsky <pmiscml@gmail.com> * * 'comment initramfs stuff till rootfs locking works properly (initramfs * should be optional as well)' * commit 2818d8b7be1a0d9a59ad3528091d47517d59328b * Signed-off-by: Koen Kooi <koen@openembedded.org> * * 'get initramfs stuff working * commit 1642b3e8fc81c666713951fdd4e7ff9a50d1c5a8 * Signed-off-by: Thomas Kunze <thommycheck@gmx.de> * * 'Fix INITRAMFS logic to stop breaking builds for people not using it' * commit dcf3049eb9eedf0838af59969b3f70a43298d3d7 * Signed-off-by: Richard Purdie <rpurdie@rpsys.net> * * '-change initramfs-logic' * commit 3e3f297457138e96e2b652658675796853eb0293 * Signed-off-by: Thomas Kunze <thommycheck@gmx.de> * * 'move initramfs stuff to configure so we can do postprocessing * on it with do_configure_append' * commit fc03e2be0b4470748a8b7707cea7293303adc424 * Signed-off-by: Koen Kooi <koen@openembedded.org> * * 'copy gz, lzo, lzma initramfs cpio images.' * commit 572abc3fdd1076ca35d8c15d269cc9d862101805 * Signed-off-by: Andrea Adami <andrea.adami@gmail.com> * * 'move the kernel size check to linux-kexecboot.inc.' * commit 45f82a941c77e9d747814fa1e337ba803475d327 * Signed-off-by: Andrea Adami <andrea.adami@gmail.com> * * Finally, two refinements as discussed on openembedded-core * mailing list: * - replace "if image != '' and image is not None:" with "if image" * - add cpio.xz support Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image_types.bbclass: add support for tar.xz, cpio.xz, cpio.lzmaAndrea Adami2011-07-121-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Once we add support for building kernel containing initramfs images * we expect compressed cpio archives. * Thus, add support for lzma and xz compressors for the initramfs images. * While there, add support for tar.xz as done in org.openembedded.dev. * * Patch was imported from the OpenEmbedded git server * (git://git.openembedded.org/openembedded) * * 'bitbake.conf: add cpio and ext4 .xz support' * commit 7977d3325a09e2edf4a8a1b02f48085f88f7a631 * (From OE-Core rev: 38334acdc60432baf4f89f95663d64fab240131b) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> * * 'bitbake.conf: Define tar.xz image types.' * 1fca8dc50a821f4589fa5e339e6e279dd3c0dafe * Signed-off-by: Tom Rini <tom_rini@mentor.com> * * 'bitbake.conf: add XZ_INTEGRITY_CHECK and LZMA_COMPRESSION_LEVEL variables' * commit 312b42bcf2cc9b11266ba497ade68e8ddabb3007 * Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> * * 'bitbake.conf: unbreak and improve lzma image compression handling and adapt * linux-kexecboot.inc' * commit c382a9ce64bf4291572665652138aa01b2e54306 * Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> * Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Add support for BAD_RECOMMENDATIONS to rootfs_ipkChris Elston2011-07-121-0/+20
| | | | | | | | | | | | | | | As discussed on IRC on 30/06/11, this patch adds support for BAD_RECOMMENDATIONS to rootfs_ipk, which is a list of packages NOT to install if suggested or recommended by a recipe. Taken from http://thread.gmane.org/gmane.comp.handhelds.openembedded/30417. Note that current support for this in oe.dev may also be broken, depending on the version of opkg in use. (From OE-Core rev: 2b6900ad73919a0ecb8c5f1de31744ce7afe65f5) Signed-off-by: Chris Elston <celston@katalix.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native.bbclass: generate libdir from libdir_nativeYu Ke2011-07-121-0/+2
| | | | | | | | | | | | | | | currently, the libdir in native.bbclass is inherited from target libdir defined in bitbake.conf. This is not correct in concept, instead, it should be inherited from libdir_native. Current code works because both the target libdir and libdir_native are the same value "/usr/lib". But if libdir changes (e.g. to /usr/lib64), then build will break. This patch make libdir generated from libdir_native to fix this issue. (From OE-Core rev: fe45ef3d77d963136a13687bc14165a30e170d23) Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Improve performance by moving files rather than using copy and deleteRichard Purdie2011-07-121-5/+11
| | | | | | | Acked-by: Joshua Lock <josh@linux.intel.com> (From OE-Core rev: c5913c644d10470e2c3c8b55cf044995fc109d87) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm: Add 50M to IMAGE_ROOTFS_EXTRA_SPACE for zypper /var spaceSaul Wold2011-07-081-0/+4
| | | | | | | | | | | | | | [YOCTO #1171] This is a temporary fix to address the fact that zypper's db configuation uses a large amount of /var space. When the correct'ed zypper config can be applied, this fix can be removed. The zypper bug for yocto is 1174 http://bugzilla.pokylinux.org/show_bug.cgi?id=1174 (From OE-Core rev: 05995abe8d74ed8a460f6c29b686f812f62b3d92) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libc-common.bbclass: Fix typoRichard Purdie2011-07-081-1/+1
| | | | | | (From OE-Core rev: 93ce74a299832ca7f24b4ce1b951abffa0232612) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane.bbclass: fix error/warning status being invertedPaul Eggleton2011-07-081-2/+2
| | | | | | | | | | Fix package_qa_handle_error so that it returns the correct values in order to determine error/warning status. (From OE-Core rev: a66ed717f5f5991ee4072df67428564677e7d220) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane.bbclass: allow dev-deps to be skipped via INSANE_SKIPPaul Eggleton2011-07-081-1/+1
| | | | | | | | | | Add the missing check in package_qa_check_rdepends to allow dependencies from non-development packages on development packages to be skipped. (From OE-Core rev: 26fd8892337e60aa439cedde51b15c42a6fd8540) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cmake.bbclass: use CPPFLAGS and CXXFLAGSOtavio Salvador2011-07-081-4/+4
| | | | | | | | | | | Some classes, as for example nativesdk, defines CPPFLAGS and CXXFLAGS to be passed to compiler. Using those makes more sense and avoid some hacks on packages using CMake. (From OE-Core rev: de60d1d91b28c3f5568b132a8eb29d9a754e68a0) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: Add LINGUAS_INSTALL to dependency listRichard Purdie2011-07-081-1/+1
| | | | | | | | | | | | | | | | | Currently if there are locales to install in the image the appropriate packages might not automatically get built since there is no dependency being exposed to bitbake. This patch exposes the missing dependencies to bitbake through the RDEPENDS field hence ensuring images build successfully when locales are added but not depended upon anywhere else in the build. [YOCTO #1215] (From OE-Core rev: 2f731352aa21b43b35247eafd873de775eb0de34) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* siteinfo: add microblaze little endian target infoAdrian Alonso2011-07-071-0/+1
| | | | | | | | | | * Add microblaze little endian target information Endian little, 32 bits (From OE-Core rev: d0e55b37763932036eb4c19b14cc7265af838c46) Signed-off-by: Adrian Alonso <aalonso@secretlab.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane: add microblaze little endian target infoAdrian Alonso2011-07-071-1/+2
| | | | | | | | | | * Add microblaze little endian target info to package_qa_get_machine_dict (From OE-Core rev: 33679729f0dafedb143e2dd6174472de46fc36fe) Signed-off-by: Adrian Alonso <aalonso@secretlab.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel-arch: microblaze little endian fix kernel archAdrian Alonso2011-07-071-0/+1
| | | | | | | | | | | * In map_kernel_arch function return valid arch for microblazeel target arch. if TARGET_ARCH = "microblazeel" return "microblaze" (From OE-Core rev: 86e36055dc61279c9c3616ad4bc47695f83bad06) Signed-off-by: Adrian Alonso <aalonso@secretlab.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity: implement network connectivity testJoshua Lock2011-07-071-0/+37
| | | | | | | | | | | | | | | | | | Sanity test to verify files can be fetched from the network using git, http and https fetchers point users at a page to help get set up in the case of a failure. Requires a variable CONNECTIVITY_CHECK_URIS to be set, using the same pattern as SRC_URI, of URI's to test against. The variable CONNECTIVITY_CHECK_MSG can be set to provide a custom error message, such as a pointer to some help, when this check fails. Addresses [YOCTO #933] (From OE-Core rev: 8fdea2a1ac8875a42b3a57f0fd7b530f851c20e9) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* module-base: remove KERNEL-SOURCEAnders Darander2011-07-071-1/+0
| | | | | | | | | | | kernel-source do not exist in STAGING_KERNEL_DIR any longer. Remove the exported KERNEL_SOURCE as the STAGING_KERNEL_DIR can be used in module recipes directly. (From OE-Core rev: b67ef579db4c1906d6e508a8451cd2b01b7b62ab) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel-yocto: Fix case where recipe is always reparsedRichard Purdie2011-07-071-1/+1
| | | | | | | | | | | | | | | | If you include a bitbake variable as a comment in a shell function then it gets expanded by the bitbake signature handling code. This could be classed as a bug or a feature depending on your viewpoint (e.g. a multiline variable included in a comment could actually contain executable code). Since we don't always want kernel-yocto to reparse this changes the syntax of the comment so it doesn't trigger the problem. (From OE-Core rev: 512be74ee0d7ad7e76c1be62d1e0f499aa51d174) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane.bbclass: Fix indentation errorRichard Purdie2011-07-051-1/+1
| | | | | | (From OE-Core rev: 128261100809f16517304739e30cdd73bd951651) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane.bbclass: Add warnings for packages which are not -dev packages which ↵Richard Purdie2011-07-051-2/+5
| | | | | | | | | | depend on -dev packages Based on some code from Phil Blundell but reworked against insae.bbclass changes. (From OE-Core rev: 2e06a1a843756e9d50291c4533b10096af2d852b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base.bbclass: show layer's branches/revisions in the banner infoDexuan Cui2011-07-051-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch removes METADATA_BRANCH and METADATA_REVISION, and treats the meta/ in the same way as other layers. In the case some layers belonging to the same repo, the branch and revision are only printed once, but all the layer names are still printed. An example output can be: OE Build Configuration: BB_VERSION = "1.13.1" TARGET_ARCH = "i586" TARGET_OS = "linux" MACHINE = "emenlow" DISTRO = "poky" DISTRO_VERSION = "1.0+snapshot-20110702" TARGET_FPU = "" meta meta-yocto = "dcui/banner_v3:4b712dba68a98c827b8f3d0242da9153c4f65473" meta-emenlow meta-sugarbay meta-n450 = "dcui/test1:76d1178ba1a43cf6457c89717134aeb9f1275fae" (From OE-Core rev: f271498638a9da271ed5da973666fe4a7bd0ac63) Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package.bbclass: Make unshipped packages message more readableRichard Purdie2011-07-051-1/+1
| | | | | | (From OE-Core rev: bc73fa1256d678c09c0d9b50e0153623861dcf32) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane.bbclass: Allow INSANE_SKIP to work on a per test basisRichard Purdie2011-07-051-17/+20
| | | | | | (From OE-Core rev: fbff17f0f01db55c7093f089ec06840179c389bd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bblass: remove get_kernelmajorversionAnders Darander2011-07-011-8/+0
| | | | | | | | | It is now unused. (From OE-Core rev: 18a0f1dfd9d36e53a3adba74f30e756769a74a0b) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image|kernel.bblass|module-init-tools: do not use depmod-2.6Anders Darander2011-07-012-7/+5
| | | | | | | | | | | | Change to only depend on virtual/*/depmod. Change all calls to only use depmod. Do not install depmod as depmod-2.6 Bump PR in module-init-tools-cross. (From OE-Core rev: 351e352c2e44a3d8103594ca7e1d8404979a220c) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Remove support for building 2.4 kernelsAnders Darander2011-07-012-11/+3
| | | | | | | (From OE-Core rev: 06285501667a025893b56f66eae082f88ef08427) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane.bbclass: Start to rework this so specific checks can be easily made ↵Richard Purdie2011-07-011-133/+83
| | | | | | | | | | | | | | | | | | | | warnings/errors This patch means the warning/error handling can be controlled from local.conf and/or from the distro level and no longer uses numbers but strings instead. The system becomes extensible so that other classes can extend the path QA checks at least. It also removes all th duplicate error message code, we should have *one* good error message. Much work remains including making INSANE_SKIP take the classes of QA test to skip but its a start. (From OE-Core rev: 0fbe849b56d6457b6547a1202c4938d35316d8b8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: Ensure kernel/* internal sysroot working directory don't get ↵Richard Purdie2011-07-011-0/+6
| | | | | | | | | | | packaged This removes a couple of megabytes of QA warnings! (From OE-Core rev: 69c2f6f7a9133cc8d64560fefa42e5852322f716) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd.bbclass: new class for managing user/group permissionsScott Garman2011-07-011-0/+156
| | | | | | | | | | This class is to be used by recipes that need to set up specific user/group accounts and set custom file/directory permissions. (From OE-Core rev: a82885db00956734922291d8a17eb135461204fa) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/package.bbclass: Add fixup_permsMark Hatle2011-06-301-10/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new function that is responsible for fixing directory and file permissions, owners and groups during the packaging process. This will fix various issues where two packages may create the same directory and end up with different permissions, owner and/or group. The issue being resolved is that if two packages conflict in their ownership of a directory, the first installed into the rootfs sets the permissions. This leads to a least potentially non-deterministic filesystems, at worst security defects. The user can specify their own settings via the configuration files specified in FILESYSTEM_PERMS_TABLES. If this is not defined, it will fall back to loading files/fs-perms.txt from BBPATH. The format of this file is documented within the file. By default all of the system directories, specified in bitbake.conf, will be fixed to be 0755, root, root. The fs-perms.txt contains a few default entries to correct documentation, locale, headers and debug sources. It was discovered these are often incorrect due to being directly copied from the build user environment. The entries needed to match the base-files package have also been added. Also tweak a couple of warnings to provide more diagnostic information. (From OE-Core rev: 8c720efa053f81dc8d2bb604cdbdb25de9a6efab) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Add OECORE_ACLOCAL_OPTS to env setup scripts for autotool project using ↵Jessica Zhang2011-06-301-0/+3
| | | | | | | | | correct libtool 2.4 (From OE-Core rev: fd383ab8e0a8cc8098f557ffcb097190a495c45e) Signed-off-by: Jessica Zhang <jessica.zhang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ccache: Remove duplicate 'ccache.inc' from 'meta/class/'Wenzong Fan2011-06-301-11/+0
| | | | | | | (From OE-Core rev: e37c80486b1043afa3c0b4ef5724155f8b17f821) Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ccache: Set CCACHE on a per recipe basisWenzong Fan2011-06-301-1/+1
| | | | | | | | | | | Set 'CCACHE_DIR' in 'bitbake.conf' and create the dirs for every package before task 'do_configure' started. [RP: Merge dirs variables into one] (From OE-Core rev: fe03f78fb0bf7d54b9472832e43764e882f918a1) Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Add umask task controlMark Hatle2011-06-303-0/+7
| | | | | | | | | | | | | | | | | | | | | | Bitbake now allows the umask to be specified per task. The following tasks will have a umask of 022 set by default: do_configure do_compile do_install do_package do_populate_sysroot do_rootfs do_configure and do_compile need a umask of 022 set because -many- recipes directly copy generated files out of recipe's build directory. Instead of fixing each existing and future recipe, it was shown to be much easier to just set the umask. (From OE-Core rev: 0cfa7ebcf661aa0645c6d4d858b04946ebacb7e4) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image_types.bbclass: enable btrfs as one of the image typeNitin A Kamble2011-06-301-0/+7
| | | | | | | (From OE-Core rev: d9b139122569bff742417984af8f790588d4e110) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image-types.bbclass: get the image size in the whole numberNitin A Kamble2011-06-301-1/+1
| | | | | | | | | Avoid fractions like 80.72 and round them to whole numbers. (From OE-Core rev: 70b80215a08b2f1a3a813ac9a3948e39a1b26dd4) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: pass the data object to the less frequent test harnessesJoshua Lock2011-06-301-8/+8
| | | | | | | | | | | | By passing the data object to the less frequently run test harnesses (check_sanity_tmpdir_change(), check_sanity_sstate_dir_change() and check_sanity_version_change()) we can run tests against BitBake data here too. (From OE-Core rev: 7df8376c28d991dd07c0915d3ccade4cf51c2fee) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel: move menuconfig task after configureDarren Hart2011-06-301-1/+1
| | | | | | | | | | | | | | | | Fixes [YOCTO 1136] linux-yocto adds some configure steps that are necessary to prepare the source tree after the do_patch task. This causes a "-c menuconfig" to fail in a clean build tree. Typical use of menuconfig should be to modify the config provided by the recipe being built. It therefor makes sense for the menuconfig task to come after the configure task. This also happens to fix the issue seen with the linux-yocto kernel recipe. (From OE-Core rev: 829dd1d7ca99ec6228d2705cdece4727232797d3) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Fix an issue if the config changesMark Hatle2011-06-291-0/+2
| | | | | | | | | | | | | | | | | | We need to check if we know of the task type, before we attempt to process it. In order to reproduce the problem build with: PACKAGE_CLASSES = "package_ipk" Then change it to: PACKAGE_CLASSES = "package_rpm" Build again -- and then try bitbake -c cleansstate <recipe> (From OE-Core rev: 8870ba9d261d3cacbe5d1219fdd95840c05ecf9e) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libc locale split: fix some remaining problemsKoen Kooi2011-06-292-4/+8
| | | | | | | | | | | | | | * libc-{common,package}.bbclass: fix shlib renaming for the C library Without this you'd end up with eglibc_2.12.ipk instead of libc6_2.12.ipk as before * eglibc-locale: don't make versions go backwards after split from eglibc eglibc was way beyond PR = "r1" at the time of the split, so increase PR to make package upgrades work [RP: Fixup PR merge conflict] (From OE-Core rev: 477ede7472db0bacd5daacb96e97f849d1be84ee) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>