summaryrefslogtreecommitdiff
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
* siteconfig: generate configuration data caches for autoconfJeff Polk2010-09-032-0/+38
| | | | | | | | | | | | | | | siteinfo: Use configuration caches when available Generate cached configuration data for autoconf for the package based on a list of header, types, and functions to eliminate the need for all subesequent package builds to do the actual tests via the cross compiler and sysroot. The cache files are stored in the sysroot in ${STAGING_DATADIR}/${TARGET_SYS}_config_site.d. Siteinfo appends any files it finds in that directory to the normal CONFIG_SITE. All of the cache values set the variables only if not already set so they may be overridden by any of the normal site files. Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
* rootfs_rpm: Support install_all_localesMark Hatle2010-09-031-30/+33
| | | | | | | | Support installing all locales similarly to how it is done within the ipk support. This has had basic testing, but it's not a normally used function so there could still be some flaws. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* roots_rpm: Enable installation of recommended packagesMark Hatle2010-09-032-32/+104
| | | | | | | | | | | | | Within RPM there is a field called "Suggests". This filed behaves like "Recommends" does in ipk. So we write out the packages using the Suggests field with the Poky 'Recommends' values... and then use the arbitrary tags to capture the Poky 'Suggests' within a new "Recommends" tag. Slightly confusing, but the end result is a functioning install. Also some performance enhancements were add at the same time. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* package_rpm: Start packaging directoriesMark Hatle2010-09-031-2/+3
| | | | | | Match ipkg behavior and unconditionally include directories in the packages Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* package_rpm: Enable debian style tagsMark Hatle2010-09-021-50/+57
| | | | | | | | Enable debian style tags including suggests, enhances, recommends Note, these are not yet used by the dependency resolver. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rootfs_rpm: Optimize rpm database processingMark Hatle2010-09-022-1/+5
| | | | | | | Optimize the creation of the solverdb by disabling fsyncs and database caches that are not used when generating a solution. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* package_rpm: Enable per file dependenciesMark Hatle2010-09-022-18/+65
| | | | | | | | | Switch the per file dependency handing to passing the information to rpm via the standard 'external' dependency scripting. This ensures that the dependencies found by RPM exactly match the ones presented by package.bbclass. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* libc-package.bbclass: merge glibc & eglibc class filesNitin A Kamble2010-09-021-73/+143
| | | | | | | | | | | | | | | | | | | | Other enhancements: print qemu's stdio & error on failure glibc: enable locale generation for all arches eglibc: enable binary locale generation for mips And cleanup of code based on the code review. [e]glibc: move common definition in the common file bitbake was complaining about duplicate definition of get_libc_fpu_setting in eglibc.inc & glibc.inc files. And bump PRs Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* distro_check: fix for natives, cross, and initial recipe typesSaul Wold2010-09-021-4/+33
| | | | | | | | | | datetime checking is changed to be once per day Signed-off-by: Saul Wold <Saul.Wold@intel.com> distro_check: fix for natives, cross, and initial recipe types Signed-off-by: Saul Wold <Saul.Wold@intel.com>
* DistroData: add eventhandler to correctly setup log fileSaul Wold2010-09-021-8/+24
| | | | Signed-off-by: Saul Wold <Saul.Wold@intel.com>
* cmake.bbclass: sync from openembeddedQing He2010-08-311-48/+51
| | | | | | | | | | | | this fixes: - toolchain detection error (e.g. ar and ranlib) changes from openembedded: - reformatting - cmake modules search path - use 'cat <<EOF' instead of echos for clarity Signed-off-by: Qing He <qing.he@intel.com>
* toolchain-scripts.bbclass: inherit siteinfoKevin Tian2010-08-311-0/+2
| | | | | | or else 'siteinfo_get_files undefined' error occurs Signed-off-by: Kevin Tian <kevin.tian@intel.com>
* sstate: fix dir name in manifestKevin Tian2010-08-311-4/+7
| | | | | | | | | | | | dir name in manifest is incorrect: /media/disk/builds/master-arm/tmp/sysroots/usr/ /media/disk/builds/master-arm/tmp/sysroots/lib/ /media/disk/builds/master-arm/tmp/sysroots/include/ Also add one debug note when removing manifest entries Signed-off-by: Kevin Tian <kevin.tian@intel.com>
* sstate: make do_cleanup really workingKevin Tian2010-08-311-1/+2
| | | | | | | | | there's a bug in creating manifest_pattern, which means actually with new sstate do_cleanup hasn't worked yet We can use PSTAGE2_MANFILEPREFIX easily for this purpose. Signed-off-by: Kevin Tian <kevin.tian@intel.com>
* meta/classes: Fix whitespace mismatch and broken functionsRichard Purdie2010-08-314-20/+19
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* qmake2.bbclass: update for QT4Yu Ke2010-08-271-5/+8
| | | | | | qmake2 bbclass is a class to make QT appplication. This commit update qmake2 bbclass for QT4. The code is from OE with minor cleanup. Signed-off-by: Yu Ke <ke.yu@intel.com>
* cmake.bbclass: sync from openembeddedQing He2010-08-271-7/+84
| | | | | | | | this fixes: - toolchain detection error (e.g. ar and ranlib) - cmake modules search path Signed-off-by: Qing He <qing.he@intel.com>
* base.bbclass: Add xz-native as depends when finding *.xz in SRCURIZhai Edwin2010-08-271-0/+7
| | | | | | | Just adding xz-native as DEPENDS in one bb file could not make its unpack run after xz-native build done. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* test: Add scenario file for each target and support single case runningJiajun Xu2010-08-271-27/+32
| | | | | | | | | | | | | | | | Different test cases are needed for different targets. A folder "scenario" is created under scripts/qemuimage-tests to hold scenario files for different targets. Single case running is supported now. User can run single case together with a whole test suite by setting variable TEST_SCEN in local.conf. By default test cases in sanity suite will be ran. If you want to run other test suite or specific test case(e.g. bat or boot test case under sanity suite), list them like following. TEST_SCEN = "sanity bat sanity:boot" Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* sstate/utility-tasks: Ensure do_clean functions correctly and removes shared ↵Richard Purdie2010-08-272-4/+10
| | | | | | state Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: Run sstate_cleanall() as part of do_setscene()Richard Purdie2010-08-271-0/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* opkg: finalize the change to var directoryKevin Tian2010-08-263-15/+21
| | | | | | | | | | | commit 1d0757f16beb31551733d9d755d72337ccda9642 changes opkg run state from /usr/lib/opkg to /var/lib/opkg, which however is incomplete and still many important information is kept under old directory including postinst methods. This makes latest boot into a mess. So finalize this movement to /var here. Fix [BUGID #229] Signed-off-by: Kevin Tian <kevin.tian@intel.com>
* sstate: fix architecture of sstate archivesJoshua Lock2010-08-251-3/+3
| | | | | | | | | | Using TARGET_ARCH as the pacakge architecture for sstate archives lead to some issues when using two machines with different BASE_PACKAGE_ARCH's but the same TARGET_ARCH such as netbook and qemux86 machines. Probable fix for [BUGID #223] Signed-off-by: Joshua Lock <josh@linux.intel.com>
* package_rpm: Temporary workaround for perfile dependenciesMark Hatle2010-08-231-0/+18
| | | | | | | Until the pseudo code is fully integrated, we need to roll up the per file dependencies into package dependencies for rpm. Signed-off-by: Mark Hatle <mhatle@windriver.com>
* rootfs_rpm: Enable multi dep solverdbsMark Hatle2010-08-232-61/+93
| | | | | | | | | | | | | Update package_rpm.bbclass to generate dep solver databases for each package arch. Following the example of the deb and ipk integration Revise the rootfs_rpm to solve the installation based on the multiple dep solvers. Note, recommends, locale and attemptonly pckages are still to be implemented. Signed-off-by: Mark Hatle <mhatle@windriver.com>
* package_rpm: Rewrite the way the spec files are generatedMark Hatle2010-08-231-169/+377
| | | | | | | | Use a single spec file to generate all of the split packages. This allows us to ensure the RPM package source package meta data is correct, and also speeds up the package generation process. Signed-off-by: Mark Hatle <mhatle@windriver.com>
* package.bbclass: Fix per-file dependency generationMark Hatle2010-08-231-4/+9
| | | | | | | | | | | | | The overall file list was being constructed with the wrong variable, it should have had FLIST in the name. Also it was possible to construct the system with some illegal variable names. Names that would have include "[]". So translate these away... Finally fix an issues where a filename with an _ could cause a package variable conflict. Again translate this away.. Signed-off-by: Mark Hatle <mhatle@windriver.com>
* package.bbclass: Fix shlibs raceRichard Purdie2010-08-231-2/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* insane.bbclass: Update to match the packaging classes when handling OVERRIDESRichard Purdie2010-08-231-5/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* package.bbclass: Fix do_shlibsMark Hatle2010-08-231-4/+5
| | | | | | | | | The current packages shlibs processing is written to a local temporary file. This file is not consulted when evaluting the provider of the dependency, instead we need to cache the local values into the dictionary while we write the temp file. Signed-off-by: Mark Hatle <mhatle@windriver.com>
* devshell.bbclass: export the FAKEROOTENV so it can be accessed within the ↵Richard Purdie2010-08-231-0/+1
| | | | | | devshell task Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* package.bbclass: If files are unreadable, add read access for strippingRichard Purdie2010-08-221-2/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* package.bbclass: Add perfile dependency identificationMark Hatle2010-08-201-5/+77
| | | | | | | | | Using the rpmdeps commands, we enable the discovery of per-file dependencies. These dependencies are generated for all packages, and may or may not be used by any given packaging mechanism. Currently RPROVIDES and RDEPENDS are generated in this process. Signed-off-by: Mark Hatle <mhatle@windriver.com>
* base.bbclass: Initial work to add GPLv2 Only Build with Whitelist for GPLv3 ↵Saul Wold2010-08-201-1/+13
| | | | | | | | | Native tools [tweaks from Richard Purdie] Signed-off-by: Saul Wold <Saul.Wold@intel.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Rename packaged-staging2 -> sstate and remove the old empty classRichard Purdie2010-08-192-2/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Revert "base.bbclass: Temporarily disable fakeroot for install/package until ↵Richard Purdie2010-08-191-4/+1
| | | | | | | other fixes get merged" This reverts commit 2225e1214285f0e9a3c0ee2962b3d678c5c05292 and reenables the functionality now its safe to do so.
* classes: Disable setscene tasks for initial testingRichard Purdie2010-08-196-6/+6
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: Don't run the handler in worker contextRichard Purdie2010-08-191-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* package_*.bbclass: Always run these tasks under fakerootRichard Purdie2010-08-194-0/+4
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Remove packaged-staging.bbclassRichard Purdie2010-08-192-474/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* deploy.bbclass: use new style staging for deploy tasksJoshua Lock2010-08-192-12/+18
| | | | | | | | | | All tasks which implement a do_deploy should inherit this class to have the changes in the deploy task staged. Update recipes which include a do_deploy function to inherit this class and to use DEPLOYDIR rather than DEPLOY_DIR_IMAGE. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* package.bbclass: Implement packaged-staging2Richard Purdie2010-08-191-40/+31
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* staging.bbclass: Convert to packaged-stagingRichard Purdie2010-08-191-5/+10
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* package_(deb|rpm): Update to use packaged-staging2Joshua Lock2010-08-192-10/+30
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* package_ipk.bbclass: Convert to new task based stagingRichard Purdie2010-08-191-2/+15
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Start sstateRichard Purdie2010-08-191-0/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add pre clean hook Add sstate_installpkg sstate: Tie all pieces together with a setscene function Use pythonic functions rather than os.system() Implement sstate_clean function package_ipk: clean shared state in prestate packaged-staging2: implement fetching packages from mirror Copy add staging_fetch() from packaged-staging.bbclass packaged-staging2: make the output slightly friendlier packaged-staging2: handle directories in the shared state Add directories to the manifest when installing and remove them if empty when cleaning. Move most of the sstate code into the class itself removing the need for heavy boilderplate packaged-staging2: Programatically ensure directories are last in the manifest packaged-staging2: add cleanall packaged-staging2.bbclass: Connect in cleanall function to do_clean We want to ensure that directories appear at the end of the manifest so that when we test to see if they should be deleted any contents added by the task will have been removed first. pstage2: Use oe.path.copytree packaged-staging2: support lockfiles and plaindirs Signed-off-by: Richard Purdie <rpurdie@linux.intel.com> Signed-off-by: Joshua Lock <josh@linux.intel.com>
* autotools.bbclass: Drop a number of legacy functions that shouldn't be (and ↵Richard Purdie2010-08-191-33/+1
| | | | | | aren't) used in poky now Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclass: Ensure EXTRA_NATIVE_PKGCONFIG_PATH has a default valueRichard Purdie2010-08-181-0/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* DistroData: Cleanup Version numbers and add DistroData ParserSaul Wold2010-08-171-0/+158
| | | | Signed-off-by: Saul Wold <Saul.Wold@intel.com>
* update-rc.d.bbclass: adjust order on tweaking postinstKevin Tian2010-08-171-5/+10
| | | | | | | | | | | So far unlike prerm/postrm, update-rc.d has its own postinst method prepended to pkg_postinst, which may result "System startup links for xxx already exist" warning in the 1st boot of target image. Some pkg_postinst requires to run on the target, and thus prepend here makes update-rc.d method executed twice: one in rootfs creation and the other in the 1st target boot. So adjust the order to append. Signed-off-by: Kevin Tian <kevin.tian@intel.com>