summaryrefslogtreecommitdiff
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
* 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! 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. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* 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. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* Add OECORE_ACLOCAL_OPTS to env setup scripts for autotool project using ↵Jessica Zhang2011-06-301-0/+3
| | | | | | correct libtool 2.4 Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
* ccache: Remove duplicate 'ccache.inc' from 'meta/class/'Wenzong Fan2011-06-301-11/+0
| | | | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
* 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] 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. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* image_types.bbclass: enable btrfs as one of the image typeNitin A Kamble2011-06-301-0/+7
| | | | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* 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. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* 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. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* 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. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
* 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> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* 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] Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libc-locale: Fixup various packaging warningsRichard Purdie2011-06-291-3/+4
| | | | | | | | | | After the recent locale changes there were warnings about many unpackaged files. Fix this by directing libc-package.bbclass to operate directly on the files in the sysroot and adding packaging for .debug files in this package. Also sync up the eglibc and glibc versions of this code more closely. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base.bbclass: Back off the fatal error to a warning for now and try and recoverRichard Purdie2011-06-281-1/+2
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: only run check_pseudo_wrapper for bitbakeDexuan Cui2011-06-281-0/+4
| | | | | | | This patch eliminates the warning "not been run using the bitbake wrapper..." when we run bitbake-layers. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* lib_package.bbclass: move static libraries to ${PN}-staticdevOtavio Salvador2011-06-281-1/+1
| | | | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* distrodata.bbclass: Get the extend recipe's information from non bbextended ↵Mei Lei2011-06-281-13/+33
| | | | | | | | recipe This patch will check whether the recipe is an extened recipe, if yes, some informaiton couldn't be got, so collect those information(like maintainer information or lastcheckversion) from non bbextended recipe. Signed-off-by: Mei Lei <lei.mei@intel.com>
* base/glib-2.0: Simplify USE_NLS handling for glib-2.0Richard Purdie2011-06-281-4/+0
| | | | | | | | | | | | Currently the only way to get anything to build is to set USE_NLS="yes" for glib-2.0. We might as well do this in the recipe by default for now and simpllify the code. The magic handling of USE_NLS_<recipename> is also removed since this can be done in the form USE_NLS_pn-<recipename> using overrides these days. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/conf: Drop MULTIMACH_ARCH variable, it adds unused complexity and ↵Richard Purdie2011-06-283-16/+10
| | | | | | serves no useful purpose Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base.bbclass: Since we require python 2.6 which always contains hashlib we ↵Richard Purdie2011-06-281-10/+0
| | | | | | can drop this fallback code Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base.bbclass: Drop old style SRCDATE handling, we have pn- overrides nowRichard Purdie2011-06-281-5/+0
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libc-package.bbclass: Replace hard coded libdir.Lianhao Lu2011-06-281-3/+4
| | | | | | | Replace the hard coded libdir for locale generating to meet the multilib requirement. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* libc-locale: split locale handling from libc recipe.Dongxiao Xu2011-06-282-24/+23
| | | | | | | | | | | | *libc's do_package will cost a lot of time due to the locale handing, which may delay the other recipe's do_package task and affect the build performance. This commit moves locale handling into a separate recipe *libc-locale. [RP: Add fixup with recent eglibc commit conflict for FILES_pn-dbg and PACKAGES] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemuimagetest: update cvs and iptables to newer version for toolchain testJiajun Xu2011-06-241-1/+1
| | | | | | | | | | The old versions of cvs and iptables may meet compile error under some architecture - cvs 1.11.23 fails on x86-64 host and iptables 1.4.9 fails on arm host. Update them to latest version could solve these build error. Meanwhile, 240s timeout is set for sudoku becasue 120s is not enough to finish compile. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* native.bbclass: Add a simple chown intercept commandMark Hatle2011-06-231-0/+2
| | | | | | | | During native recipe processing we want to intercept any calls to chown and do nothing. This prevents errors and allows the same recipes to be used for both native and target recipes. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* kernel.bbclass: Stop do_install poking directly into the sysroot and evading ↵Richard Purdie2011-06-231-1/+1
| | | | | | | | | | | | | sstate do_install was putting files directly into the sysroot which means sstate had no knowledge of them. This meant they didn't get cleaned along with the other files from the task amongst other issues. This patch puts them in ${D} where they were supposted to be. Tested-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/package_rpm.bbclass: Change the way the PV is transformedMark Hatle2011-06-231-5/+18
| | | | | | | | There were some odd instances where the PKGV could not be loaded in the old way. Change to verify that PKGV exists before attempting to retrieve the value from the key. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* kernel.bbclass: Stage System.map with KERNEL_VERSION suffixTom Rini2011-06-231-0/+1
| | | | | | Without this, images will fail now that kernel-abiversion is back. Signed-off-by: Tom Rini <tom_rini@mentor.com>
* kernel.bbclass: restore kernel-abiversion fileKoen Kooi2011-06-231-0/+6
| | | | | | | | | | | | | | | This fixes external module recipes that need $KERNEL_VERSION. It got removed by commit a9d41062e24a6b99661b3a5256f369b557433607 Author: Darren Hart <dvhart@linux.intel.com> Date: Tue Mar 8 17:09:10 2011 -0800 kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules seemingly as an oversight. Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Acked-by: Darren Hart <dvhart@linux.intel.com>
* kernel.bbclass: Add support for perf-dbg packageMark Hatle2011-06-231-1/+2
| | | | | | | | | The perf component is built with the kernel, so ensure that it gets the debug information associated with it. Also bump the PR in the linux-yocto-* to ensure they get rebuilt. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* classes/package_rpm.bbclass: Enhance diagnostic messagesMark Hatle2011-06-231-1/+6
| | | | | | | | | We clearly state now if we are: * Skipping an empty package * Creating a (full) package * Creating an empty package Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* native.bbclass: allow a native package to be populated into its own dirDexuan Cui2011-06-141-0/+5
| | | | Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* perlnative.bbclass: add the fileDexuan Cui2011-06-141-0/+2
| | | | Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* cpan.bbclass, cpan-base.bbclas: update them for the perlnative changeDexuan Cui2011-06-142-9/+13
| | | | | | | Since perl-native now populates into its own dir, here we need change accordingly. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* import recipe_sanity.bbclass from oe masterPhil Blundell2011-06-141-0/+179
| | | | | | This is a verbatim copy of the corresponding class from oe master. Signed-off-by: Phil Blundell <philb@gnu.org>
* nativesdk.bbclass: Correct ordering of manipulationsRichard Purdie2011-06-131-16/+37
| | | | | | | | | | | | OVERDIDES is the key variable that needs to be set prior to data finalisation. The other variables should be manipulated after finalisation so any DEPENDS_prepend and _append are accounted for. This patch ensures this is the case. The PACKAGES maniupulations are not enabled at this time as they don't function 100% correctly yet. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* task-sdk-host: Add nativesdk to the task name so its clearer what the ↵Richard Purdie2011-06-131-1/+1
| | | | | | | | | contents of the task represent This is particularly important since the file doens't use BBCLASSEXTEND and PN is therefore misleading Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native/nativesdk: Clean up the depends ordering after bitbake override ↵Richard Purdie2011-06-094-45/+54
| | | | | | | | | | | | handling updates This massively cleans up the dependency handling in the two classes when interacting with BBCLASSEXTEND. This change has a dependency on the bitbake override handling change and also the existence of the RecipePreFinalise event. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image_types.bbclass: Since we apply the override, look for the standard name ↵Richard Purdie2011-06-091-1/+1
| | | | | | variable, not the override name Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package.bbclass: PACKAGELOCK is a shared lock file so inform sstate as suchRichard Purdie2011-06-091-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: When removing files, take an exclusive lock, even for shared ↵Richard Purdie2011-06-091-1/+1
| | | | | | lockfiles Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_rpm.bbclass: make RPM use on-disk permissionsScott Garman2011-06-061-0/+2
| | | | | | | | | Instruct RPM to use the on-disk permissions, owners, groups, and directory permissions, instead of defaulting to root:root Code changes suggested by Mark Hatle. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* base.bbclass: add cleansstate task between clean and cleanallMartin Jansa2011-06-061-2/+5
| | | | | | * sometimes it's usefull to remove only sstate cache and keep downloaded sources for rebuild Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* allarch.bbclass: Define BASE_PACKAGE_ARCH = "all"Khem Raj2011-06-061-0/+1
| | | | | | | If not overridden it gets the value which is for target recipes usually defined in machine tune files Signed-off-by: Khem Raj <raj.khem@gmail.com>
* qmake_base.bbclass: fix lrelease/lupdate binary namesOtavio Salvador2011-06-021-0/+5
| | | | | | | | | | To support translation, qmake based projects usually call lrelease and lupdate however OE changes the binary names so this needs some mangle to work out of box. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libc-package: fix typo causing annoying diagnosticPhil Blundell2011-06-021-1/+1
| | | | | | | | | | We don't package /etc/rpc and do_install() makes some effort to remove that file so as to avoid the "installed but not shipped" diagnostic. But, due to a typo in the command line, the file wasn't actually being removed and the diagnostic continued to be issued. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_ipk: delete opkg metadata if package management not required and all ↵Phil Blundell2011-06-021-0/+11
| | | | | | | | | | | | | | | | | | | packages are configured If all the postinsts were successfully run in offline mode, and package-management hasn't been requested as an IMAGE_FEATURE, the opkg metadata is now redundant and can safely be deleted. Also, the update-rc.d and base-passwd packages can be removed since they will serve no further purpose in this situation. If some packages are still unconfigured at this point then we need to keep their metadata around so that either opkg or the awk script can configure the packages at boot time. In theory it would be possible to strip out the data for packages that have already been configured, but right now we just hold on to the whole status file in that situation. Signed-off-by: Phil Blundell <philb@gnu.org>
* siteinfo: replace all-linux with allarch-linux to match ↵Martin Jansa2011-06-021-1/+1
| | | | | | | 5d7d4e1ed9bedf2b6510796d76ea8f94739b9de2 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binconfig: improve handling of empty prefixesPhil Blundell2011-06-011-2/+2
| | | | | | | | | | | This is a backport of 952e5e2b7a5c1deefc939594d40b81a71fb16a54 from oe master. Without this the script mangling goes very wrong if ${prefix}="". There isn't really any way to fix this in the completely general case, but this patch does work with the two cases I tested (freetype and gpg-error) which were unusable previously. Signed-off-by: Phil Blundell <philb@gnu.org>