summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* image.bbclass: Added variables for multilib support.Lianhao Lu2011-07-271-1/+53
| | | | | | | | | | | | | | | | | | | 1. Added MULTILIB_PACKAGE_INSTALL for multilib instances of packages to be installed in the rootfs. 2. MULTILIBRE_ALLOW_REP contains the regular expression to match the files allow to be replaced by the conflicting files. 3. MULTILIBRE_FORCE_SAME contains the regular expression to match the files allow to be replaced only if the conflicting files are identical. 4. Added shell function multilib_sanity_check() to check whether the overwring for multilib situation is allowed. (From OE-Core rev: 137a4626a7e8107fc8a71724d5124f44236293b9) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/image*: Revamp creation of live imagesSaul Wold2011-07-271-0/+3
| | | | | | | | | | | This creates a live image as an IMAGE_FSTYPES, thus removing the need to have additional -live.bb recipes. To create a live image one just needs to add live to the IMAGE_FSTYPES list (From OE-Core rev: b3ff63796cd6629975ff0a726ba18cc168e0a2b2) Signed-off-by: Saul Wold <sgw@linux.intel.com> 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>
* image|kernel.bblass|module-init-tools: do not use depmod-2.6Anders Darander2011-07-011-1/+1
| | | | | | | | | | | | 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>
* Add umask task controlMark Hatle2011-06-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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>
* task-core-nfs/image.bbclass: Fix some libc overridesRichard Purdie2011-05-171-2/+1
| | | | | | (From OE-Core rev: 4616095d75c0c13953e0bb339b0cafc3c3eb8314) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: use soft assignment for LDCONFIGDEPENDPhil Blundell2011-05-171-1/+1
| | | | | | | | | This allows distros that don't want ldconfig to turn it off. (From OE-Core rev: cd9662ff326de05332afabea3ec35bbbd861687c) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Rename the remaining poky-* scripts to oe-* or runqemu-*Richard Purdie2011-04-211-1/+1
| | | | | | (From OE-Core rev: 877b3d84597fcfc3abf5aa332019d412f2717896) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: Disable ldconfig-native when using uclibcRichard Purdie2011-04-051-5/+11
| | | | | | (From OE-Core rev: 58286c2bc19f073d273895ad760689e2074489e4) 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. (From OE-Core rev: 880b0a222fdc11ee088bcaf8c832edae23bc28a7) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: Remove uneeded do_populate_sysroot requirement for imagesRichard Purdie2011-03-291-3/+0
| | | | | | (From OE-Core rev: 68d19cc52869d7732fac0d185be811bc38334970) 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 (From OE-Core rev: c7ab6c5697b5ab18848576ffd0b5cc8e5f89de01) 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-291-1/+1
| | | | | | | | happens before a build completes (From OE-Core rev: a3b80688465ba5ba7e6d514f9a40ee224a9d3a28) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake.conf/image.bbclass: Move image type information into image_types.bbclassRichard Purdie2011-03-251-21/+1
| | | | | | | | | | | | | | | 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. (From OE-Core rev: a5c403f0fc71f38c0669691da7f637303ea09a27) 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] (From OE-Core rev: 2f676dadebebc461c1e01e0b6da3cb2258829048) 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. (From OE-Core rev: da5d038f955bf47155a0f217dba2f96e263bcad8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* 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>
* image/package_xx/rootfs_xx.bbclass: move rootfs_xx_log_check().Lianhao Lu2011-01-311-4/+1
| | | | | | | Move function rootfs_xx_log_check() from rootfs_xx.bbclass to relevant package_xx.bbclass. (Where xx is rpm/ipk/deb). Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* image.bbclass: Use the dedicated BB_WORKERCONTEXT, not bitbake internals to ↵Richard Purdie2011-01-141-1/+1
| | | | | | detect context Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass/initscripts: Make /etc/timestamp usage consistent.Gary Thomas2010-11-141-7/+3
| | | | | | | | | | | | Timestamp is kept in UTC Remove superfluous 'create_etc_timestamp()' function - seems to be a duplicate of 'rootfs_update_timestamp()' Remove External function reference [sgw@linux.intel.com: merged 2 patches and cleanup commit message] Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* rootfs_rpm: Add lock file in the rpm deploy directory to allow mutliple ↵Richard Purdie2010-10-071-1/+1
| | | | | | rootfs creation tasks to coexist without breaking each other Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* image.bbclass: change IMAGE_EXTRA_SPACE to IMAGE_OVERHEAD_FACTORSaul Wold2010-09-081-1/+1
| | | | | | | | This change allows the IMAGE_OVERHEAD_FACTOR (default to 1.2) to adjust dynamicly how much space to add for each image, thus there is 20% overhead space by default. Signed-off-by: Saul Wold <Saul.Wold@intel.com>
* Use pseudo rather than fakeroot for fake root privilegesJoshua Lock2010-07-161-1/+1
| | | | | | | Make use of the ability to configure the fake root provider and use Wind River's pseudo utility. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* test: add automation framework and sanitytestJiajun Xu2010-07-151-0/+3
| | | | | | | | | | | | | | Automation test is disabled by default. User need set TESTCLASS to qemu in conf/local.conf and run bitbake command "bitbake poky-image-xxx" or "bitbake poky-image-xxx -c qemuimagetest" to trigger it. Currently only the sanity test with two testcases are added. To run the test, user need prepare a testing environment: 1) "expect" should be installed on system 2) NOPASSWD should be set for user to run bitbake Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* image.bbclass: Don't perform mapping renaming until we're running the task ↵Richard Purdie2010-07-021-2/+5
| | | | | | | | | itself. Need to extend bitbake to provide this information rather than refer to a bitbake internal variable. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Richard Purdie2009-11-131-4/+4
| | | | | | | | | | | | | populate_staging task to populate_sysroot This change makes the purpose of the staging directory more obvious and the taskname more true to what it now actually does. The layout version number is increased due to the change in layout but code to convert existing directories and insert a symlink for backwards compatibility is included. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* classes: Remove and sanitise import statementsRichard Purdie2009-11-131-4/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Add poky-trim-schemas post install script to remove unneeded schema locale ↵Richard Purdie2009-08-281-0/+12
| | | | | | translations from images (credit to Ross Burton for the initial script) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* image.bbclass: Use IMAGE_ROOTFS_SIZE if the image will fit into it and only ↵Richard Purdie2009-01-231-1/+1
| | | | add extra space if the image is too small (ported from OE by hrw)
* image.bbclass: Generate the image after running the kernel modules and ↵Richard Purdie2009-01-071-5/+5
| | | | ldconfig commands, not before
* image.bbclass: Fix typoRichard Purdie2008-11-101-1/+1
|
* image.bbclass: Add function to write out an image manifestRichard Purdie2008-11-101-0/+7
|
* image.bbclass: Add routine for disabling x startup when neededSamuel Ortiz2008-11-101-1/+8
|
* classes: Add mechanism to install packages into images only if they've been ↵Richard Purdie2008-11-061-0/+2
| | | | built
* image.bbclass: Add INHIBIT_DEFAULT_DEPSRichard Purdie2008-10-281-0/+2
|
* image.bbclass: Make the kernel depmod dependent on the presence of a kernel ↵Richard Purdie2008-10-091-3/+5
| | | | | | - some images eg an initramfs don't have this git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5473 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: generate modules.depMarcin Juszkiewicz2008-10-091-0/+9
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5468 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: make ext2/ext3 images autoresizeMarcin Juszkiewicz2008-09-251-0/+1
| | | | | | | | | | New variable IMAGE_EXTRA_SPACE contains amount of kilobytes which has to be added to size of IMAGE_ROOTFS. Resulting size is then passed to genext2fs util. As a result we do not have to specify size for ROOTFS_SIZE anymore. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5269 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: Make sure DEPLOY_DIR_IMAGE exists before running image generationRichard Purdie2008-06-121-0/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4633 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: Drop bbimage commandRichard Purdie2008-05-211-14/+17
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4527 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: Fix whitespaceRichard Purdie2008-05-211-17/+17
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4525 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: Fix locking so multiple image targets workRichard Purdie2008-05-181-0/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4491 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: Run runtime_mapping_rename over PACKAGE_INSTALL so debian ↵Richard Purdie2008-04-081-0/+2
| | | | | | renaming doesn't break the variable git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4211 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: s/ipkg/opkg/ - spotten by Koen KooiMarcin Juszkiewicz2008-03-181-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4044 311d38ba-8fff-0310-9ca6-ca027cbcb966
* rootfs_ipk/image.bbclass: removing of opkg lists data to rootfs_ipk class ↵Marcin Juszkiewicz2008-03-171-2/+0
| | | | | | | | | where it should belong Signed-off-by: Marcin Juszkiewicz <hrw@openedhand.com> git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4028 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: Add ldconfig-native dependency, run ldconfig at image ↵Richard Purdie2007-11-231-2/+6
| | | | | | generation time git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3218 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: Fix IMAGE_BASENAME and PACKAGE_INSTALL variablesRichard Purdie2007-09-051-5/+3
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2691 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: Revert some changes as bitbake can't seem to cope with them :-(Richard Purdie2007-09-021-2/+5
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2661 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass/poky-image.bbclass: Add a function to create /etc/timestamp ↵Richard Purdie2007-09-021-1/+6
| | | | | | during image construction to give a reasonably sane default time setting git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2649 311d38ba-8fff-0310-9ca6-ca027cbcb966
* image.bbclass: Allow partial backwards compatibilityRichard Purdie2007-09-021-3/+3
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2646 311d38ba-8fff-0310-9ca6-ca027cbcb966