summaryrefslogtreecommitdiff
path: root/meta/classes
AgeCommit message (Collapse)AuthorFiles
2011-01-17staging: relocate *.la paths in destination dirsDongxiao Xu1
Keep the la files in source directories unchanged, and do relocation in destination directories (sysroot-destdir). Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2011-01-17libc-package.bbclass: should not rm scsi/*.hDexuan Cui1
{e}glibc should install the scsi/*.h files, which are needed by hal. Currently hal can build because eglibc-initial (which has its own do_install) installs the files. In future eglibc will have its own sysroot, so hal won't build. BTW: in OE side, eglibc's do_install also doesn't remove the files. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2011-01-14qemuimagetest: Use the same image in sanity testing to fix the timeout issue ↵Jiajun Xu1
on autobuilder Fixes [BUGID #595] Because of the QEMU booting slowness issue(see bug #646 and #618), autobuilder may suffer a timeout issue when running sanity test. We introduce variable SHARE_IMAGE here to fix the issue. It is by default set to 1. Poky will copy latest built-out image and keep using it in sanity testing. If it is set to 0, latest built-out image will be copied and tested for each case, which will take much time. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2011-01-14image.bbclass: Use the dedicated BB_WORKERCONTEXT, not bitbake internals to ↵Richard Purdie1
detect context Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-13insane.bbclass: Make sure QA issues are reported as warningsRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-12kernel.bbclass: Remove a binary generated by recent kernel versionsRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-12kernel bbclass: add 'perf' to kernel-modules blacklistKoen Kooi1
This makes 'kernel-modules' installable again when perf isn't enabled in the kernel config Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-12Adding check for DL_DIR permissions: sanity.bbclassBeth Flanagan1
Check to ensure that DL_DIR is set and that if it exists that it is user writeable. Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
2011-01-12meta-environment: Remove c++ include dir from CXXFLAGS.Lianhao Lu1
[BUGID #651]. c++ include dir is no longer needed in the environment files due to commit f13cb20. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2011-01-12cpan.bbclass: add a new parameter EXTRA_PERLFLAGSNitin A Kamble1
We use host perl while building target perl modules. When some of the prebuilt perl modules such as scalar::util are used in the build process directly or indirectly, perl needs to load the arch specific .so library file. If perl can not find the .so library files, then perl tries to use the target pm files which ends up in circular perl module depedancy causing build time perl invocation to fail. Adding this new parameter viz EXTRA_PERLFLAGS to cpan.bbclass allows perl module recipes to specify the location of such host .so files for hostperl, so that build time invocation of perl does not fail. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-01-12cpan.bbclass: use LIBDIR instead of DATADIRNitin A Kamble3
perl 5.12.2 does not use /usr/share/perl path, and all that stuff goes in /usr/lib/perl. This commit fixes cpan class which depends on /usr/share/perl. cpan.base/build.bbclass: change /usr/lib/perl5 to /usr/lib/perl Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-01-10kernel-yocto: pass the build directory to configmeBruce Ashfield1
configme used to be able to calculate the output/build directory when branches were always <machine>-<kernel type>. Branch names can now be widely different and to avoid embedding complexity in the scripts it is easier to just pass ${B} from the build system down to the scripts. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2011-01-07insane.bbclass: Enable the package_qa_hash_style checkRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-06base.bbclass: Use the new stampfile function in bitbake to determine the ↵Richard Purdie1
path to the stampfile Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-06insane.bbclass: Fix message for LIC_FILES_CHKSUM ErrorsSaul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-01-05rootfs_rpm: fix rootfs generation rm errorDarren Hart1
During a poky-image-minimal build I ran into the following error: rm: cannot remove `/vol/1/dvhart/poky.git/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs/install': Is a directory This is caused by a missing -r (recursive) argument to rm. This patch adds that to the rm command of rootfs_rpm.bbclass. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com>
2011-01-05rootfs_rpm.bbclass: Remove temporary work files in install directory, saving ↵Richard Purdie1
the manifests as logfiles into ${T} Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-04base.bbclass: add lock file for do_unpack taskYu Ke1
This patch intend to fix the random unpack failure of linux-libc-headers-yocto and linux-yocto. The root cause of the unpack failure is that: these two recpies has the same URL, thus has the same dest file during the fetch and unpack phase: do_fetch : create tar ball ${DL_DIR}/git_git.pokylinux.org.linux-yocto-2.6.37.tar.gz do_unpack : extract tar ball ${DL_DIR}/git_git.pokylinux.org.linux-yocto-2.6.37.tar.gz fetch phase is protected by lockfile, so it works fine. but unpack phase is not lock protected, thus there is race condition like: when linux-yocto do_unpack is extracting the tar ball, linux-libc-headers-yocto do_fetch starts to create tar ball thus overwrite linux-yocto's tar ball and cause linux-yocto do_unpack failure To fix this issue, do_unpack also need to be protected by lock Signed-off-by: Yu Ke <ke.yu@intel.com>
2011-01-04sstate.bbclass: fix multimachine builds when PACKAGE_ARCH = MACHINE_ARCHKoen Kooi1
previously you could only build one set of packages for multiple machines: MACHINE=foo bitbake task-base MACHINE=bar bitbake task-base would only create task-base packages for foo, but not for both foo and bar. Doing MACHINE=bar bitbake task-base -c cleanall would remove the packages for foo. The solution is to use MULTIMACH_ARCH as suggested by Richard Purdie. Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2010-12-31base.bbclass: Add error message for base_do_unpack failuresRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-31base.bbclass: Correct bb.debug parametersRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-31classes: Drop Handled/NotHandled eventhandler keywords, they don't do anythingRichard Purdie4
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-30patch.bbclass: Move vardepsexclude flag to be along side the function using ↵Richard Purdie1
the variable Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-30kernel.bbclass: Ensure TOOLCHAIN_OPTIONS is passed to KERNEL_CC and KERNEL_LDRichard Purdie1
This fixes various incorrect sysroot usages observed by people with sstate. Thanks to Kevin Tian for figuring out where the problem was and Gary Thomas for confirming the fix. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-30update-rc.d: Allow the primary deamon package to be specified in UPDATERCPN, ↵Richard Purdie1
update gsmd to use this Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-28yocto-kernel: fix kmachine to deal with overridesBruce Ashfield1
BSPs are built from a particular branch of the kernel repository which is specfied via the mapping of MACHINE to KMACHINE. Unless a global branch is being forced (like libc headers), KMACHINE is an override on a per machine basis. Because KMACHINE is typically override we must first try the most specific variant KMACHINE_<machine> and if that is undefined look for a fallack default. This allows any combination of variables to work (and at the time the anonymous python executes) safely and get us a properly defined branch for the fetcher and build. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-12-24poky-image.bbclass: Set LIC_FILES_CHKSUMRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-24rootfs_ipk: The most recent opkg errors upon file overwrite. Until we fix ↵Richard Purdie1
package conflicts, disable this for now Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-23qemuimage-testlib: Ensure TOPDIR/BUILDDIR are setRichard Purdie1
The recent environment changes mean TOPDIR/BUILDDIR need to be exported specifcially to the enviromnent so the qemu scripts can find the correct build directory. Without this, qemu can fail to run. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-23qmake2.bbclass: add space to end of DEPENDS_prependPaul Eggleton1
There needs to be a space at the end of DEPENDS_prepend or otherwise it can collide with the contents of DEPENDS. The OE version of this file has this. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2010-12-23insane.bbclass: make LIC_FILES_CHKSUM failures report errorsSaul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2010-12-21poky.bbclass: Move mirrors/premirrors to poky.confRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-21sanity.bbclass: Add check for '.' in PATH and error if found (see bug #572)Richard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-21linux-yocto: remove or adjust to _ in branch namesBruce Ashfield1
The existing 2.6.34 kernel tree uses _ where poky typically uses -. This is a historical artifact, since working with gnu Make and shells means avoiding - is wise. The opposite is true in Yocto. To avoid using the _ reserved character wherever possible we can simply remove it from the branch names in the new 2.6.37 kernel, but to keep the content stable in the 0.9 2.6.34 kernel, we map _ to - for the purposes of packaging. To further faciliate this switch, the branch names no longer need to be shortened in the KMACHINE mappings, but can be fully specified and the tools/processing adapt as required. This gives us the flexibility to map multiple boards to a single branch for building. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-12-21meta-environment: Added package of meta-environment-${TARGET_ARCH} forLianhao Lu2
environment files. [BUGID #565] Fixing bug #565, added package of meta-environment-${TARGET_ARCH} for environment files used by cross-canadian toolchain. Also corrected the situation of empty config site file for target. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2010-12-21rm_work: With the recent pseudo changes, this no longer makes senseRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-20kernel.bbclass: Use KERNEL_IMAGE_BASE_NAME variable instead of the expanded ↵Richard Purdie1
equivalent. Fixes sstate rebuild issue Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-20rootfs_rpm: Add --ignoresize option when performing DB operations on a rootfsRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-20sstate.bbclass: delete sstate files when doing cleanallPaul Eggleton1
This fixes the cleanall task to actually delete the sstage cache files. This was not working correctly before due to attempting to use the current task's hash in the package file name to be deleted, which of course is the hash of the cleanall task when doing cleanall. The siginfo files are now deleted as well. Signed-off-by: Paul Eggleton <paul.eggleton@intel.com>
2010-12-20base/utils.bbclass: Drop former checksum code now bitbake is handling this ↵Richard Purdie2
for us Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-20sanity.bbclass: add check for creation of long filenamesPaul Eggleton1
Detect and fail if filesystem in use for TMPDIR or SSTATE_DIR has an unreasonably short file name length limit (eg. eCryptFS). This can cause "file name too long" errors during poky builds (e.g. when writing sstate files for packages with a git revision as the version). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2010-12-20sanity.bbclass: allow minimisation of impact of more invasive sanity checksPaul Eggleton1
Add a mechanism to avoid running more invasive checks every time bitbake is invoked. Adds a file in conf/ (i.e. under user's build directory) that tracks a new variable SANITY_VERSION (set in sanity.conf) as well as TMPDIR and SSTATE_DIR, allowing checks to be run when these are changed. Fixes [BUGID #562] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2010-12-20sanity.bbclass: make indenting consistentPaul Eggleton1
Use four spaces throughout the file Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2010-12-17Calculate CCACHE_DIR by calling host's ccache config.Alex deVries1
Signed-off-by: Alex deVries <alex.devries@windriver.com>
2010-12-17Swabber's update_distro automatically updates the blob now.Alex deVries1
Signed-off-by: Alex deVries <alex.devries@windriver.com>
2010-12-17Stop using hardcoded paths, use new Ubuntu and generic filters.Alex deVries1
Signed-off-by: Alex deVries <alex.devries@windriver.com>
2010-12-16distrodata: fix messageSaul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2010-12-16distrodata: add eventhandler for checkpkg taskSaul Wold1
Change group column to Owner Column for checkpkg output Signed-off-by: Saul Wold <sgw@linux.intel.com>
2010-12-16kernel.bbclass: Set vardepsexclusive for KERNEL_IMAGE_BASE_NAMEKevin Tian1
Exclude the DATETIME variable from the KERNEL_IMAGE_BASE_NAME variable. This avoids the last road block linux-yocto for sstate. Signed-off-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-12-16kernel.bbclass: Rename do_deploy so the function can be overridden in recipesKevin Tian1
Signed-off-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>