summaryrefslogtreecommitdiff
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
* Rename the remaining poky-* scripts to oe-* or runqemu-*Richard Purdie2011-04-201-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* POKY_NATIVE_SYSROOT -> OECORE_NATIVE_SYSROOTRichard Purdie2011-04-201-3/+3
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Rename poky-image-* -> core-image-* and task-poky-* -> task-core-*Richard Purdie2011-04-202-48/+48
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Replace POKYBASE with COREBASERichard Purdie2011-04-204-7/+7
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Remove obsolete scripts/classesRichard Purdie2011-04-201-62/+0
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Rename poky-init-build-env to oe-init-build-envRichard Purdie2011-04-201-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel: Remove debug statementsDarren Hart2011-04-191-2/+0
| | | | | | | | | | | | | | | | A stray echo and du command from my development of the following patch remain in kernel.bbclass. Remove them. commit 3b49416fc7a7ee9bfe722f2e6089aa18df41dc58 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 Signed-off-by: Darren Hart <dvhart@linux.intel.com> Cc: Tom Zanussi <tom.zanussi@intel.com> Cc: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel: Copy over bzImage to sysroots during installDarren Hart2011-04-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes [Yocto #987] The following commit introduced a build failure: Commit 3b49416fc7a7ee9bfe722f2e6089aa18df41dc58 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 Resulting in: | install: cannot stat `/usr/local/test/intel-bsp/build/tmp/sysroots/n450/kernel/bzImage': No such file or directory | ERROR: Function 'build_boot_bin' failed (see /usr/local/test/intel-bsp/build/tmp/work/core2-poky-linux/poky-image-minimal-live-1.0-r0/temp/log.do_bootimg.1106 for further information) The bzImage file was not being copied to sysroot, correct that. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Cc: Tom Zanussi <tom.zanussi@intel.com> Cc: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-dir.bbclass: define default PYTHON_BASEVERSIONMartin Jansa2011-04-181-0/+1
| | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Allow JFFS2 image options to be overriddenGary Thomas2011-04-121-1/+1
| | | | | Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* autotools: Pass --disable-silent-rules to configureColin Walters2011-04-121-0/+1
| | | | | | | | | | | | Non-verbose logs are really annoying when trying to debug a build failure. A lot of projects are copying in the flag to use AM_SILENT_RULES which automake gained recently. We need to undo this. We'll get a warning from configure if it's not recognized, but that's fine. Signed-off-by: Saul Wold <sgw@linux.intel.com>
* sstate: ensure an ordered mapping between SSTATETASKS and SSTATETASKNAMESDexuan Cui2011-04-081-2/+4
| | | | | | | | | | | | | Fix [YOCTO #964] A recent commit 25a6e5f9(sstate: use only unique set of SSTATETASK) breaks the ordered mapping between SSTATETASKS and SSTATETASKNAMES. As a result, in sstate_cleanall, the line taskname = tasks[namemap.index(name)] gets an incorrect result, and "bitbake -c cleanall" doesn't really remove the files populalted by do_populate_sysroot. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* distrodata.bbclass: Merge the get_pkg_info.log into checkpkg.csvMei Lei2011-04-061-22/+7
| | | | | | For easy view the check package result, merge the two files into checkpkg.csv, after that, the package report system will use checkpkg.csv instead of get_pkg_info.log. Signed-off-by: Mei Lei <lei.mei@intel.com>
* image.bbclass: Disable ldconfig-native when using uclibcRichard Purdie2011-04-051-5/+11
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native, nativesdk, crosssdk: reset TARGET_FPUIlya Yanok2011-04-053-0/+3
| | | | | | | | | | | | | | | | | When building one of the native, nativesdk or crosssdk packages TARGET_* variables' values are no longer related to the target we set via MACHINE variable, they are now related to the BUILD (native) or SDK (nativesdk, crosssdk) targets instead. We need to change TARGET_FPU variable accordingly or some of the recipes (the ones that check for TARGET_FPU value, most notably gcc and eglibc) might be confused. It's probably cleaner not to reset TARGET_FPU but to change it to something like ${BUILD_FPU} (for native) or ${SDK_FPU} (for crosssdk and nativesdk) but as long as BUILD and SDK are x86 it's safe to just reset TARGET_FPU. Signed-off-by: Ilya Yanok <yanok@emcraft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: make execution ldconfig verboseNitin A Kamble2011-04-041-1/+2
| | | | | | The failure of ldconfig was not getting logged anywhere before. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* patch.bbclass: allow importing patches into other dirsTom Rini2011-04-041-3/+16
| | | | | | | | | | | | | | | | | This is taken from openembedded.master: commit 9d0d70da60ca8ef278916f442125d41161846f38 Author: Chris Larson <chris_larson@mentor.com> Date: Mon Aug 23 13:03:55 2010 -0400 patch: allow importing patches into other dirs Use the 'patchdir' flag. If relative, it's assumed to be relative to ${S}. It creates a patchset class per patch directory, so for quilt this results i multiple .pc/patches directories to manage each of the patchsets. Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
* classes: Use linux-uclibceabi instead of linux-uclibgnuceabi for os portion ↵Khem Raj2011-04-042-3/+3
| | | | | | of triplet Signed-off-by: Khem Raj <raj.khem@gmail.com>
* sanity.bbclass: Use SSTATE_MANIFESTS instead of hard coding sstate-controlKhem Raj2011-04-041-1/+1
| | | | | | This helps when SSTATE_MANIFESTS is overridden by external layers Signed-off-by: Khem Raj <raj.khem@gmail.com>
* package_rpm: Ensure we take the sstate shared lockfile in the place we write ↵Richard Purdie2011-03-291-6/+3
| | | | | | | | | | | | | | files The point we need to take the lock is when the rpm files are written into the deploy rpm directory. Since sstate makes the actual installation of the files, that is the point we need to take the lock. This also stops the deploy/rpm directory being accessed for a lock before it exists. [YOCTO #797] [YOCTO #925] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Add support for taking shared lockfilesRichard Purdie2011-03-291-0/+7
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: Remove uneeded do_populate_sysroot requirement for imagesRichard Purdie2011-03-291-3/+0
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: Add dependencies on native versions of update-alternatives ↵Richard Purdie2011-03-291-0/+1
| | | | | | and updated-rc.d explicitly Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base/kernel/image.bbclass: Clean up do_deploy ordering to ensure it just ↵Richard Purdie2011-03-293-2/+3
| | | | | | happens before a build completes Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image_types.bbclass: Drop IMAGE_EXTRA_OPTION in favour of the more standard ↵Richard Purdie2011-03-241-4/+9
| | | | | | EXTRA_IMAGECMD Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake.conf/image.bbclass: Move image type information into image_types.bbclassRichard Purdie2011-03-242-21/+82
| | | | | | | | | | | | | Image generation code in .conf files is hard to read as it needs to be single line. By moving this to a separate class, multiline functions can be used instead improving readability. It also declutters bitbake.conf. There is no real functional change with this patch but it highlights the need for improvements in places such as the IMAGE_EXTRA_OPTION ext* specific variable which makes no sense. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: Move ROOTFS_SIZE into runimagecmd() functionRichard Purdie2011-03-241-1/+1
| | | | | | | | | | Image type specific size overrides for IMAGE_ROOTFS were being ignored. Moving the size calculation to after the overide expansion point addresses this problem. [YOCTO #928] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: Improve readability of the image generation codeRichard Purdie2011-03-241-7/+13
| | | | | | | The quoting in get_imagecmds() is hard to read. We can simplify the constuction a little to make this easier to parse and reduce complexity slightly. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: use only unique set of SSTATETASKMartin Jansa2011-03-241-2/+2
| | | | | | | | | | | | | | | | | * otherwise strange error like this: ERROR: Logfile of failure stored in: /OE/shr-core/tmp/work/armv7a-oe-linux-gnueabi/libtool-cross-2.4-r1/temp/log.do_package_write_ipk.25551 Log data follows: | ERROR: Package already staged (/OE/shr-core/tmp/sstate-control/manifest-nokia900-libtool-cross.deploy-ipk)?! | ERROR: Function 'sstate_task_postfunc' failed NOTE: package libtool-cross-2.4-r1: task do_package_write_ipk: Failed ERROR: Task 11 (/OE/shr-core/openembedded-core/meta/recipes-devtools/libtool/libtool-cross_2.4.bb, do_package_write_ipk) failed with exit code '1' is shown in this case with package_ipk twice in INHERIT * Thanks to Richard for fix Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: blacklist 'kernel-misc' from kernel-modulesKoen Kooi2011-03-231-1/+1
| | | | | | | | | | When 'kernel-misc' is empty do_rootfs will fail when including 'kernel-modules' The proper fix would be to have a whitelist for the 'kernel-modules' meta-pkg Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Tested-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native: empty PACKAGES_DYNAMIC the way we do PACKAGESChris Larson2011-03-211-0/+2
| | | | | | | | | Without this, as a specific example, one has both gtk+-native and gtk+ runtime providing gdk-pixbuf-loader-*, and you can get bitbake preference conflicts as a result if you have preferences specified for both gtk+ and gtk+-native for other things. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* kernel/bbclass: rework kernel and module classes to allow for building ↵Darren Hart2011-03-212-64/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | out-of-tree modules The existing infrastructure uses an external build tree which references the kernel source in the work dir. If run with rm work, building external modules will fail. This patch places a configured source tree in sysroots. Striking a balance between minimal size and minimal maintenance is difficult. A fully configured tree is about 500MB after a clean. This version leans on the side of caution and removes only the obviously unecessary parts of the source tree to conserve space, resulting in about 170MB. The arch directories would be some additional pruning we could do. Given examples from the devel package from distributions, I suspect this size could be reduced to 75MB or so, but at the cost of a much more complex recipe which is likely to require a great deal more maintenance to keep current with kernel releases. Care is also taken to clean the hostprogs in scripts, and the modules are responsible for building them as needed. Although it is unclear to me if this is really necessary, especially considering that modules put these bits back as soon as they compile. If we are not generating an sstate package, I suspect we can ignore these. Please try this with your modules and let me know how it does. I tried to take non linux-yocto kernel recipes into account, but I have only tested with linux-yocto and the hello-mod recipe so far. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net> Acked-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Ensure a clean removes setscene stamps as well as the main task stampsRichard Purdie2011-03-191-0/+2
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Turn absolute symbolic links into relative ones for sstate ↵Richard Purdie2011-03-181-1/+28
| | | | | | packages Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: check for duplicates in PACKAGE_ARCHSJoshua Lock2011-03-181-0/+13
| | | | | | | | Duplicate entries in PACKAGE_ARCHS causes problems with rootfs generation. For example multiple architecture entries in opkg.conf will confuse the opkg package manager. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* toolchain-scripts.bbclass: Added --sysroot to CPPFLAGS.Lianhao Lu2011-03-181-0/+2
| | | | | | | [YOCTO #908] Added CPPFLAGS into the environment file and added --sysroot to it. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* sanity: detect if bitbake wrapper is not being used or pseudo is brokenPaul Eggleton2011-03-171-1/+24
| | | | | | | | | | | | * Shows a warning during sanity checking if the scripts/bitbake wrapper is not being used * Check to see if pseudo is working during sanity checking, and if it isn't an error occurs (if we are using the wrapper script and pseudo has been built; otherwise it is a warning). Fixes [YOCTO #653] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* package.bbclass: Fix missing debug src filesMark Hatle2011-03-161-1/+1
| | | | | | | The previous change used egrep instead of fgrep. We need to use fgrep because there are expression like syntaxes in some file names, we need exact matches. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rootfs_rpm.bbclass: Add additional system configuration to RPM spaceMark Hatle2011-03-161-0/+26
| | | | | | | | | | | The additional configuration should have been there from the beginning. The purpose of these config files is to have a consistent Berkeley DB configuration even if the underlying RPM version changes -- or the RPM macros change. This likely would not cause any problems until we attempted an upgrade of either BDB or RPM. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* poky-image.bbclass: add ssh-server-dropbear to SATO_IMAGE_FEATURESScott Garman2011-03-161-1/+1
| | | | Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-image.bbclass: add new IMAGE_FEATURES for ssh serversScott Garman2011-03-161-1/+10
| | | | | | | Image recipes can now add their ssh server of choice by adding ssh-server-dropbear or ssh-server-openssh to IMAGE_FEATURES. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* sstate.bbclass: always delete stamp files in sstate_cleanPaul Eggleton2011-03-151-9/+7
| | | | | | | For safety, always delete the stamp files in sstate_clean regardless of whether the manifest file exists or not. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* sstate.bbclass: avoid deleting unrelated stamp filesPaul Eggleton2011-03-151-1/+3
| | | | | | | | | Avoid deleting stamp files whose names contain the current task's name as a substring. This will be especially important for example if do_package_write is ever made an sstate task (as it would previously have deleted the stamps here for do_package_write_ipk etc.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* kernel bbclass: split do_compile into do_compile and do_compile_modulesKoen Kooi2011-03-151-0/+5
| | | | | | | | | | This allows recipes to insert a custom task in between building *Image and modules >From OE .dev revision 615876fe218dc3feb4a3df9e6546a7b1a6376800 Signed-off-by: Koen Kooi <koen@openembedded.org> Acked-by: Graeme Gregory <dp@xora.org.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* own-mirrors.bbclass: Bring own-mirrors.bbclass from oe commit ↵Khem Raj2011-03-151-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0ef914b250df46a41348479446214575668943fb below is the history on this class. Documentation for newly introduced SOURCE_MIRROR_URL is already present in oe-core commit 0ef914b250df46a41348479446214575668943fb Author: Eric BENARD <eric@eukrea.com> Date: Wed Nov 3 13:28:54 2010 +0000 own-mirrors.bbclass: allow mirroring of scm fetched packages this way, it's possible to setup a local webserver (for example using busybox httpd -p "8081" -h backuped_download_dir) serving a presiously fetched download directory and to build wihout the need for an internet access this can also be used when connected to know to know which packages are missing from the local mirror's directory (and thus are fetched from internet as a fallback), it's possible to run the server this way : busybox httpd -p "8081" -h backuped_download_dir -vv -f | grep -B 1 response:404 to get the name of the missing packages. Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com> commit 1b661974e3f8f844f6ec4cdb7bb42cef9595b626 Author: Marcin Juszkiewicz <hrw@openembedded.org> Date: Sat Mar 10 14:10:06 2007 +0000 own-mirrors.bbclass: added class which can be used to set PREMIRRORS from config - SOURCE_MIRROR_URL is new variable which point to source mirror which will be used before fetching from original SRC_URI location. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Update SRC_URIs to use BPN instead of PNRichard Purdie2011-03-143-3/+3
| | | | | | [YOCTO #860] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: Fix inverted mmap_min_addr logicRichard Purdie2011-03-121-2/+2
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_rpm: Fix rootfs generationMark Hatle2011-03-101-1/+7
| | | | | | | | | | | | [YOCTO #797] During rootfs generation, if other RPM packages are being wrtten this could cause a failure during the solvedb generation. We add a shared lock around the RPM package building. This will allow multiple RPM packages to continue to be written at the same time, but prevent rootfs generation and RPM package generation at the same time. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* package.bbclass: Change the debug directory to avoid conflictsMark Hatle2011-03-101-2/+8
| | | | | | | | | | The debug directory before was below ${WORKDIR}. Unfortunately if something was based on a git tree, it meant that "git" was the directory name being preserved for usr/src/debug usage. The patch moves to using "${WORKDIR}/.." as the base, to ensure that the WORKDIR naming is used in usr/src/debug. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* autotools.bbclass: Fix automake file race issuesRichard Purdie2011-03-101-2/+2
| | | | | | | | | | | | If one package is configuring when automake is built, the aclocal-VERSION directory can be created or removed and this can confuse the configure process. Since we always run automake-native, it should always be using the autoake-native aclocal directory for automake files which is the result of this patch. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>