summaryrefslogtreecommitdiffstats
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
* package_*.bbclass: Only set pkg in overrides. These are the only values ↵Richard Purdie2010-07-073-14/+3
| | | | | | we're interested in expanding and this makes sure we obtain the expected data Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Revert "classes/package_ipk|_deb|_rpm.bbclass: Fix setting of OVERRIDES when ↵Richard Purdie2010-07-073-3/+3
| | | | | | | packaging" This reverts commit 3abe7a0624e1215124799f97c872682a98659760 which was incorrect in some assumptions about OVERRIDE handling order.
* classes/package_ipk|_deb|_rpm.bbclass: Fix setting of OVERRIDES when packagingJoshua Lock2010-07-033-3/+3
| | | | | | | | | The OVERRIDES variable was being incorrectly set with the end result of the runtime dependencies of the package not being encoded in it's package metadata. This broke opkg-native in meta-toolchain. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* cross-canadian: ensure package dependencies are generated correctlyJoshua Lock2010-06-251-0/+2
| | | | | | | | cross-canadian packages need to look for their SOLIBS in the nativesdk sysroot so that dependencies are correctly picked up and meta-toolchains are correctly built. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* kernel.bbclass: Remove additional binaries from stagingScott Garman2010-06-231-3/+9
| | | | | | | * Remove additonal binaries known to cause "strip command failed" errors during do_package on cross platforms. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* sanity.bbclass: Fix test for i686 SDKMACHINEJoshua Lock2010-06-141-1/+1
| | | | | | | | The 'is' keyword tests for object identity, returning True if the variables are both referencing the same object. Changed the test to use the equality operator, which compares the values of the objects. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging.bbclass: fix typo in scan_cmdJoshua Lock2010-06-111-1/+1
| | | | | | | it's PSTAGE_TMPDIR_STAGE, not PSTAGE_TMDPDIR_STAGE spotted by Chris Larson <chris_larson@mentor.com> Signed-off-by: Joshua Lock <josh@linux.intel.com>
* poky.bbclass: Add second fall-back sources mirrorScott Garman2010-06-111-2/+15
| | | | | | * Green and newer releases can now use http://autobuilder.pokylinux.org/sources/ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* rootfs_ipk.bbclass: ensure the package manager can create lock filesJoshua Lock2010-06-101-0/+2
| | | | | | | | The opkg package manager uses /usr/lib/opkg to store lock files in, modify the remove_package_data_files() function to create an empty directory once the data files are removed so that the lock can be created. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging.bbclass: Use a differnet opkg.conf for each TARGET_ARCHJoshua Lock2010-06-101-3/+3
| | | | | | | | | Assembling an appropriate opkg.conf in the pstage_helper is difficult when building for multiple target architectures in one Poky directory, work around this by generating an appropriate opkg.conf for the TARGET_ARCH and using an ${TARGET_ARCH}-opkg.conf for packaged staging. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* kernel.bbclass: Drop code which is duplicated later in the function, fixing ↵Richard Purdie2010-06-091-8/+6
| | | | | | older kernel builds Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* metadata_scm.bbclass: Make errors quiet if we're not in a git based scmJoe Sauer2010-06-081-2/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* cross/cross-canadian.bbclass: Save target_exec_prefix variableRichard Purdie2010-06-082-0/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: Check for Python 2.6 or newerJoshua Lock2010-06-081-0/+6
| | | | | | | | In relocatable.bbclass and utility-tasks.bbclass we depend on functionality that was only introduced with Pytrhon 2.6, so we now check that the build system has it in the sanity class. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* base.bbclass: Fix after bb.decodeurl was fixedRichard Purdie2010-06-071-2/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: version each of the files in the build/conf/ directoryJoshua Lock2010-06-071-4/+17
| | | | | | | | We already have versioning of the local.conf file but it's entirely plausible for the bblayers.conf and site.conf to change incompatibly so we should version those too. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* insane.bbclass: Throw better error if path is badNitin A Kamble2010-06-071-0/+2
| | | | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* packaged-staging: Add the correct architectures to the opkg confJoshua Lock2010-06-041-1/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* utility-tasks.bbclass: automatic upstream version checkKevin Tian2010-06-031-0/+331
| | | | | | | | | | | | | | | | | Automatic upstream version check can be triggered by "bitbake xxx -c checkpkg". The rationale behind is to find a automatic way for version comparison between current in-use one and upstream progress. The tricky thing is how to find out useful version string from mass diverse information. Fortunately now it mostly work for wget based protocol, except some sites (e.g. sourceforge) not providing a directory service. Repo (git/svn/cvs) based protocols are handled in a very simple manner, by always tagging as update required. This will be further improved later. Use 'world' target to retrieve a full version check for all active recipes. Along with version check, other package information is also collected from existing fields in .bb file Signed-off-by Kevin Tian <kevin.tian@intel.com>
* sanity.bbclass: check for invalid characters in OEROOTJoshua Lock2010-06-021-0/+6
| | | | | | | | Some characters in the path for OEROOT are known to cause issues, so check for them in the sanity checker. Currerently we warn on +'s and spaces. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* utility-tasks: Remove unneeded addtask parameterRichard Purdie2010-06-021-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* do_distro_check: Recipe exists in other distros?Nitin A Kamble2010-06-021-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new task (distro_check) for each recipe. The task generates the source package list for Fedora OpenSuSE Ubuntu Debian & Mandriva Linux distros. As one recipe or source package can generate multiple target packages the recipe name is compared with the source package name list of LInux distributions. Thread locking is used to avoid multiple threads racing for the package list update. Then the recipe name (PN) is checked if it exists in the package list of distros. And if the DISTRO_PN_ALIAS then it is used to copmare pacakge_name instead of the PN variable. Just for example the DISTRO_PN_ALIAS can be defined in the recipe (.bb) files like this In the file xset_1.0.4.bb: DISTRO_PN_ALIAS = "Fedora=xorg-x11-server-utils;\ Ubuntu=x11-xserver-utils; Debian=x11-xserver-utils;Opensuse=xorg-x11" The final results are stored in the tmp/log/distro_check-${DATETIME}.result file. FYI this command will generate the results for all recipies: bitbake world -f -c distro_check Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* sanity.bbclass: Check for SDKMACHINE=i686 and error if foundRichard Purdie2010-06-011-0/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* patch.bbclass: Merge patch enhancements from OE by Chris LarsonJoshua Lock2010-06-011-23/+36
| | | | | | | | | | | | | | | | | | | | Chris made some interesting changes to the patch handling in OE. Firstly the patch and pnum parameters have been renamed, to better reflect their function, to apply and striplevel. The apply parameter now takes either yes or no as its value. Therefore a patch line would be changed from: file://some.patch;patch=1;pnum=2 to: file://some.patch;apply=yes;striplevel=2 Secondly the apply parameter is inferred if not defined. Entries in SRC_URI with diff or patch filename extensions will be automatically applied as patches if the apply parameter is not set to no (or an unknown value). Note: We have disabled the warnings when using the old style parameters for now Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Drop vm_mmap_min_addr checks from scripts and sanity classJoshua Lock2010-05-281-11/+0
| | | | | | | QEMU 0.12.x is relocatable so we no longer need these tests, which is good because it doesn't work reliably with modern kernels. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* relocatable.bbclass: reduce the amount of outputJoshua Lock2010-05-241-1/+1
| | | | | | | Disable the last bb.note call, it's a bit spurious. Only really useful for debug. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* kernel.bbclass: Simplify the current external module codeRichard Purdie2010-05-241-45/+21
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: Stop staging binaries within scripts/Scott Garman2010-05-241-0/+6
| | | | | | | * Preserves scripts/ directory but excludes binaries known to cause "strip command failed" errors during do_package on cross platforms Signed-off-by: Scott Garman <sgarman@zenlinux.com>
* kernel.bbclass: tidy up staging of headersJoshua Lock2010-05-201-3/+6
| | | | | | | | The changes merged from upstream used the ASMDIR variable even when it might not have been set. These changes may be incorrect but at the very least I can now build a QEMU image (including v86d) with the 2.6.33 kernel now. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* kernel-arch.bbclass: merge improved arch detection from OE.devJoshua Lock2010-05-201-2/+4
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* kernel.bbclass: Package Kernel firmwareJoshua Lock2010-05-201-0/+3
| | | | | | Merged change from OE.dev to create packages of the kernel firmware Signed-off-by: Joshua Lock <josh@linux.intel.com>
* linux-kernel-base.bbclass: merge version detection updates from upstreamJoshua Lock2010-05-201-0/+3
| | | | | | | | | Kernels after 2.6.33 store the utrelease.h file, used to detect the kernels version, in a different location. Merged from oe.dev Signed-off-by: Joshua Lock <josh@linux.intel.com>
* kernel.bbclass: match x86 header installation to other architecturesJoshua Lock2010-05-201-2/+3
| | | | | | | The header installation for x86 was slightly different as to that employed for other architectures, change them to match for consistency. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* kernel.bbclass: fix installing of kernels 2.6.34 and aboveJoshua Lock2010-05-191-17/+22
| | | | | | | Changes merged from upstream to cope with changes to directory structures in recent kernels when building for x86 Signed-off-by: Joshua Lock <josh@linux.intel.com>
* License Checking: convert an error into warningNitin A Kamble2010-05-121-2/+4
| | | | | | | | | | | | If license file md5 information (LIC_FILES_CHKSUMS variable) is missing in the recipe then just throw a warning instead of the build failure. Once enough recipes' LIC_FILES_CHKSUMS are filled then this warning will be reverted back to the the fetal error. If LIC_FILES_CHKSUMS field is present but invalid then the it still causes a fetal build error. Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
* License Change checking:Nitin A Kamble2010-05-111-1/+62
| | | | | | | | | | | | | | | | | | Added a new variable in recipe : LIC_FILES_CHKSUM It is a required field for every recipe. It describes license text location in the source files. And also stores md5sum of that license text. Any change in this license text triggers build error. Which enables developer to review any changes in the license and update the license fields in the recipe accordingly. For Example: contents of zlib_1.2.3.bb LICENSE = "zlib" LIC_FILES_CHKSUM = "file://README;md5=ae764cfda68da96df20af9fbf9fe49bd \ file://zlib.h;beginline=1;endline=30;md5=6ab03f03a5ee92d06b809797d4d5586d " Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* Update classes to use lib/oeJoshua Lock2010-05-064-605/+74
| | | | | | | Adapt modifications from upstream to make Poky classes use lib/oe for the common Python functionality. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* base.bbclass: Sync minor layout changes with OE.devRichard Purdie2010-05-061-77/+68
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* xfce.bbclass: Fix SRC_URI (from OE.dev)Richard Purdie2010-05-061-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: fix typo in earlier commitJoshua Lock2010-04-301-2/+2
| | | | | | | Commit fbe3d41eb0c75500d8f16bfd2975cd3136ef1335 left a trailing bracket which cause an interpretation error Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Version the build configuration directoryJoshua Lock2010-04-301-0/+7
| | | | | | | | | | The addition of BBLAYERS changes the build/conf directory to be incompatible with the "old way" in the Purple release. As such things are likely to occur in future we should bersion the build/conf directory through local.conf Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Fix sanity check for new abiJoshua Lock2010-04-291-1/+1
| | | | | | | | | current_abi is the abi of the tmp directory, not the current abi specified in the abi file... Now the sanity check should work sanely. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Bump the ABI to alert people that cross has goneJoshua Lock2010-04-281-0/+2
| | | | | | | Since we've change the tmpdir layout quite a bit we're going to bump ABI and force a rebuild. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Fix references to CROSS_DIR now that it has been removedJoshua Lock2010-04-283-5/+5
| | | | | | | CROSS_DIR is no longer removed so fix up classes, packages and documentation which refer to it. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* cross.bbclass: inherit relocatable to post-process cross binariesJoshua Lock2010-04-271-2/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Install cross-packages into the native sysrootJoshua Lock2010-04-275-15/+8
| | | | | | | | | | | Cross is no longer required so can go away, we now install cross packages into the native sysroot and use them from there. This patch includes updates to classes and some recipes which reference CROSS_DIR. Others still need fixing an image can be built and run with this patch applied. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* autotools: deprecate autotools_stage classJoshua Lock2010-04-272-4/+4
| | | | | | | | | Move the functionality into autotools and ensure all our Poky recipes are no longer using it. Keep the autools_stage class around for OE compatability but just have it inherit autools. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* relocatable.bbclass: Normalise the generated pathJoshua Lock2010-04-271-0/+1
| | | | | | | | | | The generated path we create for the binaries RPATH can have a lot of directory separators in. Use os.path.normpath() to tidy it up and only include the required directory separators. This patch is purely to appease my personal sense of niceness... Signed-off-by: Joshua Lock <josh@linux.intel.com>
* sanity.bbclass: handle lack of permission to read /proc/sys/vm/mmap_min_addrJoshua Lock2010-04-271-5/+9
| | | | | | | | | | Patch from OE.dev by Martin Jansa to workaround that we on modern Linux we can no longer read this file. We need a better fix but best option will be to update to a newer, relocatable, QEMU release. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Move STAGING_BINDIR_CROSS into target sysroot, instead of nativeJoshua Lock2010-04-271-0/+8
| | | | | | | | | Cross scripts now live in sysroot/$arch-distro-os/crossscripts, this conveys that they are no longer native system dependant and emphasises their purpose. Bump the staging ABI and implement a simple migration from ABI 3 to ABI 4. Signed-off-by: Joshua Lock <josh@linux.intel.com>