summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
AgeCommit message (Collapse)Author
2012-05-06image.bbclass: add check for live and convert to ext3Saul Wold
The live image type depends on ext3 which has it's own dependencies, while the live type has none, this is a backport change to fix [YOCTO #2246] Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-30multilib: Drop MULTILIB_IMAGE_INSTALLDongxiao Xu
There should just be a single IMAGE_INSTALL variable. If the package backends need this split into different multilib components they should be responsible for doing this, not the user. This commit removes the MULTILIB_IMAGE_INSTALL variable. [YOCTO #1564] (From OE-Core rev: 7736862a74c92fe1afe42e170822be13117575c2) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-16image/package.bbclass: Revise multilib support for DEBIAN_NAME.Lianhao Lu
[YOCTO #1486] 1. image.bbclass: In multilib_sanity_check, duplicated files except those matching to MULTILIBRE_ALLOW_REP are allowed if they're equal. 2. pacakge.bbclass: Allow DEBIAN_NOAUTONAMES variable to be automatically mapped in multilib case. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2011-08-30image.bbclass: use ${TARGET_PREFIX}depmodChris Larson
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. Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-23image.bbclass, kernel.bbclass: remove non-standard -n option from cp commandPaul Eggleton
-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. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-18image.bbclass, kernel.bbclass: create warning file about deleting deploydir ↵Paul Eggleton
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]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-08-10image: add support for generally useful {dev,doc,dbg}-pkgs featuresChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-10image: implement IMAGE_FEATURESChris Larson
IMAGE_FEATURES is analagous to DISTRO_FEATURES and MACHINE_FEATURES, for root filesystem construction. Currently, the only supported features are any defined package groups, as used by the oe.packagegroup python module. Example usage: PACKAGE_GROUP_myfeature = "vim iptables" IMAGE_FEATURES += "myfeature" Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-07-27image.bbclass: Added variables for multilib support.Lianhao Lu
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. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2011-07-27classes/image*: Revamp creation of live imagesSaul Wold
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 Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-07-08image.bbclass: Add LINGUAS_INSTALL to dependency listRichard Purdie
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] Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-01image|kernel.bblass|module-init-tools: do not use depmod-2.6Anders Darander
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. Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-30Add umask task controlMark Hatle
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>
2011-05-17task-core-nfs/image.bbclass: Fix some libc overridesRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-17image.bbclass: use soft assignment for LDCONFIGDEPENDPhil Blundell
This allows distros that don't want ldconfig to turn it off. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-20Rename the remaining poky-* scripts to oe-* or runqemu-*Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-05image.bbclass: Disable ldconfig-native when using uclibcRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-04image.bbclass: make execution ldconfig verboseNitin A Kamble
The failure of ldconfig was not getting logged anywhere before. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-03-29image.bbclass: Remove uneeded do_populate_sysroot requirement for imagesRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-29image.bbclass: Add dependencies on native versions of update-alternatives ↵Richard Purdie
and updated-rc.d explicitly Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-29base/kernel/image.bbclass: Clean up do_deploy ordering to ensure it just ↵Richard Purdie
happens before a build completes Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-24bitbake.conf/image.bbclass: Move image type information into image_types.bbclassRichard Purdie
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>
2011-03-24image.bbclass: Move ROOTFS_SIZE into runimagecmd() functionRichard Purdie
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>
2011-03-24image.bbclass: Improve readability of the image generation codeRichard Purdie
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>
2011-02-16image.bbclass: Disable shell debug messagesMark Hatle
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>
2011-01-31image/package_xx/rootfs_xx.bbclass: move rootfs_xx_log_check().Lianhao Lu
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>
2011-01-14image.bbclass: Use the dedicated BB_WORKERCONTEXT, not bitbake internals to ↵Richard Purdie
detect context Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-11-14image.bbclass/initscripts: Make /etc/timestamp usage consistent.Gary Thomas
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>
2010-10-07rootfs_rpm: Add lock file in the rpm deploy directory to allow mutliple ↵Richard Purdie
rootfs creation tasks to coexist without breaking each other Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-08image.bbclass: change IMAGE_EXTRA_SPACE to IMAGE_OVERHEAD_FACTORSaul Wold
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>
2010-07-16Use pseudo rather than fakeroot for fake root privilegesJoshua Lock
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>
2010-07-15test: add automation framework and sanitytestJiajun Xu
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>
2010-07-02image.bbclass: Don't perform mapping renaming until we're running the task ↵Richard Purdie
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>
2009-11-13bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Richard Purdie
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>
2009-11-13classes: Remove and sanitise import statementsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-08-28Add poky-trim-schemas post install script to remove unneeded schema locale ↵Richard Purdie
translations from images (credit to Ross Burton for the initial script) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-01-23image.bbclass: Use IMAGE_ROOTFS_SIZE if the image will fit into it and only ↵Richard Purdie
add extra space if the image is too small (ported from OE by hrw)
2009-01-07image.bbclass: Generate the image after running the kernel modules and ↵Richard Purdie
ldconfig commands, not before
2008-11-10image.bbclass: Fix typoRichard Purdie
2008-11-10image.bbclass: Add function to write out an image manifestRichard Purdie
2008-11-10image.bbclass: Add routine for disabling x startup when neededSamuel Ortiz
2008-11-06classes: Add mechanism to install packages into images only if they've been ↵Richard Purdie
built
2008-10-28image.bbclass: Add INHIBIT_DEFAULT_DEPSRichard Purdie
2008-10-09image.bbclass: Make the kernel depmod dependent on the presence of a kernel ↵Richard Purdie
- 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
2008-10-09image.bbclass: generate modules.depMarcin Juszkiewicz
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5468 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-09-25image.bbclass: make ext2/ext3 images autoresizeMarcin Juszkiewicz
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
2008-06-12image.bbclass: Make sure DEPLOY_DIR_IMAGE exists before running image generationRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4633 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-21image.bbclass: Drop bbimage commandRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4527 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-21image.bbclass: Fix whitespaceRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4525 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-18image.bbclass: Fix locking so multiple image targets workRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4491 311d38ba-8fff-0310-9ca6-ca027cbcb966