summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)AuthorFiles
2010-03-04kernel.bbclass: pass ${KERNEL_VERSION} to depmod -aMichael Smith1
The postinsts for kernel-image and modules run "depmod -a" on the target, but this only updates the old kernel's modules.dep. "depmod -a ${KERNEL_VERSION}" updates the files in /lib/modules/${KERNEL_VERSION}. Signed-off-by: Michael Smith <msmith@cbnco.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-03-04rootfs_ipk.bbclass: move rootfs postprocess commandChris Conroy1
I ran into a problem yesterday where the ROOTFS_POSTPROCESS_COMMAND started failing after I turned off ONLINE_PACKAGE_MANAGEMENT. It seems the problem is that if package management is turned off, then the opkg directory gets deleted. Subsequent opkg commands in the ROOTFS_POSTPROCESS_COMMAND fail to open the lock file because the directory is gone. This patch simply moves the postprocess command above the destruction of the opkg directory to allow any such commands to complete successfully. Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-03-03qemu: Move gcc version check, qemu-TARGET logic into qemu.bbclassTom Rini4
Move the logic to determine what qemu-TARGET to run into qemu.bbclass so we can check for the right binary in sanity.bbclass. This code was duplicated by glibc-package and eglibc-package anyhow and with the new fn we can clean up the usage in these classes a bit. Now that we have a class for qemu stuff, and the gcc check is just for qemu, move it there.
2010-03-03firefox: Perform a number of cleanups and fix consistency issues.Tom Rini1
- parallel builds need to happen via MOZ_MAKE_FLAGS and it gripes if still passed -jN, so keep the old value before we clear it. - Move the HOST_LIBIDL stuff into configure, otherwise bad things happen when you don't have pkg-config on the build host. - Prior to 3.6, wireless-tools can be, or not be built already and the Necko wifi options deals. With how 3.6 is configured, it must be disabled or DEPENDED on. For consistency, turn it off. - In 3.5 and newer, libnotify can be used, add it to DEPENDS (could be disabled). - Because of both of the above, bump PR. Signed-off-by: Tom Rini <tom_rini@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-03-02Add glibc-pic packageTom Rini1
glibc-package.bbclass: Add glibc-pic package By default, in our glibc builds we don't have these libraries. They may however come from various binary toolchains, or custom source builds. Signed-off-by: Tom Rini <tom_rini@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-03-02qemu: Perform our sanity checks based on ENABLE_BINARY_LOCALE_GENERATIONTom Rini2
Perform qemu-related checks not based on if we're ARM but based on if we'll be using qemu for binary locale generation. Clarify what the first of these sanity checks does. Next, change the check for a provided qemu binary to be generic enough to work on all arches (and catch distribution or user built versions of qemu). While we're in here, correct the gcc version check code in base.bbclass. Signed-off-by: Tom Rini <tom_rini@mentor.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Chris Larson <chris_larson@mentor.com>
2010-03-02base.bbclass: create tmp/legacy-staging.log file with names of recipes which ↵Marcin Juszkiewicz1
need work Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-03-01Revert "package.bbclass: when running 'file', be explicit about the path to ↵Chris Larson1
the magic" Drop this for now, as apparently the magic file location varies with 'file' version. I'll just patch file to find it relative to the binary location instead. This reverts commit 1b5e7041ae3b26b7e59c76bd2f2fd72e35492940.
2010-02-26package.bbclass: when running 'file', be explicit about the path to the magicTom Rini1
This works around one relocation issue. Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-02-25nativesdk.bbclass: Fix various DEPENDS handling bugs and add to OVERRIDES ↵Richard Purdie1
(from poky) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-02-25Revert "base.bbclass: use bb.utils.*_sum instead of calling md5/sha sum ↵Chris Larson1
commands" Back this out for the time being, things are exploding now. This reverts commit df32920678d15c86897b50b752b937210a01edea.
2010-02-25cross.bbclass: keep TARGET_SYS & TARGET_PREFIX independent.Christopher Larson1
Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Michael Smith <msmith@cbnco.com> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-02-25base.bbclass: use bb.utils.*_sum instead of calling md5/sha sum commandsRoss Burton1
Patch courtesy the Poky project. Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-02-25testlab.bbclass: use opkg.conf from staging, always specify tmp_dir in ↵Martin Jansa1
opkg-cl call with -t parameter * Use opkg.conf from staging in the same way as do_rootfs does * When option tmp_dir is used in opkg.conf installed on rootfs then it's used also in do_rootfs call and points to probably non-existent directory on buildhost like /var/lib/opkg/tmp. * The value of tmp_dir from rootfs is used even with another config file specified with -c parameter * Before this, it was using default value (/tmp) on buildhost, now it will use own "${IMAGE_ROOTFS}-tmp" and remove it after do_rootfs finish (usually already empty inside, cleaned by opkg itself) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Koen Kooi <koen@openembedded.org>
2010-02-24rootfs_ipk.bbclass: always specify tmp_dir in opkg-cl call with -t parameterMartin Jansa1
* When option tmp_dir is used in opkg.conf installed on rootfs then it's used also in do_rootfs call and points to probably non-existent directory on buildhost like /var/lib/opkg/tmp. * The value of tmp_dir from rootfs is used even with another config file specified with -c parameter * Before this, it was using default value (/tmp) on buildhost, now it will use own "${IMAGE_ROOTFS}-tmp" and remove it after do_rootfs finish (usually already empty inside, cleaned by opkg itself) * Similar patch for testlab.bbclass will follow Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-02-23insane: check for .debug as a path component, not part of the path stringChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-02-19Revert "package.bbclass: when running 'file', be explicit about the path to ↵Chris Larson1
the magic" Forgot to check a git status / log before pushing :) This reverts commit bd711cfab09394b6f3064eaed24b8761edc19f19.
2010-02-19package.bbclass: when running 'file', be explicit about the path to the magicTom Rini1
This works around one relocation issue. Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-02-16kernel.bbclass: prepare for 2.6.33 header move and simplify logic a bitKoen Kooi1
2010-02-15e*bbclass: run autopoint in configureKoen Kooi2
* remove config.rpath stuff from recipes
2010-02-14zaurus-kernels: move the kernel size check to linux-kexecboot.inc.Andrea Adami1
* no need for DONT_CHECK_KERNELSIZE * clean up the affected files * check happens only if KERNEL_IMAGE_MAXSIZE is set
2010-02-13autotools.bbclass: fix issue with native and sedDenis 'Gnutoo' Carikli1
STAGING_DIR_HOST is "" when using native bbclass: native.bbclass:STAGING_DIR_HOST = "" But in autotools.bbclass there is: sed -i -e s:${STAGING_DIR_HOST}::g $i which result in the following code in run.autotools_prepackage_lamangler sed -i -e s:::g $i which makes libxml2-native fail like this: | sed: -e expression #1, char 0: no previous regular expression I discussed it on IRC: Feb 11 17:41:29 <RP> GNUtoo: We should only be doing that is STAGING_DIR_HOST isn't empty I guess So I made a temporary fix which only workarround,because some issues persist: Feb 11 17:41:02 <pb_> RP: heh, I wonder whether paths with colons in would be considered valid :-} Signed-off-by: Denis 'Gnutoo' Carikli <GNUtoo@no-log.org>
2010-02-11vala.bbclass: dont put config.vapi to stagingMartin Jansa1
* config.vapi is per-app and can be considered as part of the autotools stuff Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-02-11base.bbclass: handle xz compressed files and tarballsBernhard Reutner-Fischer1
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-09sanity: correct misleading message about location of TMPDIRPhil Blundell1
There is no point in telling users to move TMPDIR "back" to its current location :-}
2010-02-03kernel.bbclass: Fix pstaging do_deploy.Tom Rini1
We need to add ${S}/${KERNEL_OUTPUT} with package_stagefile_shell to avoid playing more complex games with the install line. We should also use package_stagefile_shell on the modules tarball as that will not otherwise be reproduced.
2010-02-03packaged-staging.bbclass: removed two superfluous slashesFrans Meulenbroeks1
${SYSROOT_DESTDIR} ends on a / but there is also a / after the variable and a slash as the first character of the next variable. This patch removes the / that is explicitly added so in the generated code we get // instead of the even sillier looking (and probably more confusing) /// Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-02-03Revert "packaged-staging.bbclass: removed two few superfluous slashes"Frans Meulenbroeks1
Accidently tagged another file to this commit, sorry This reverts commit b977bbd442f3d00c884b68c1307bd9b14fb96446.
2010-02-03packaged-staging.bbclass: removed two few superfluous slashesFrans Meulenbroeks1
${SYSROOT_DESTDIR} ends on a / but there is also a / after the variable and a slash as the first character of the next variable. This patch removes the / that is explicitly added so in the generated code we get // instead of the even sillier looking (and probably more confusing) /// Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-02-03packaged-staging.bbclass: added missing $DISTRO_PR}'sFrans Meulenbroeks1
This file was not updated when DISTRO_PR was introduced. Result of it was that packages were not properly added to the packaged staging package (due to faulty filenames being generated). This patch adds ${DISTRO_PR} to the filenames involved Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-02-02distutils-common-base: fix definition of FILES_${PN}-dbgRolf Leggewie1
* use += instead of = this appends new file paths to include instead of replacing the current definition Signed-off-by: Rolf Leggewie <oe-devel@rolf.leggewie.biz> Acked-by: Graeme Gregory <dp@xora.org.uk> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Michael 'Mickey' Lauer <mickey@vanille-media.de>
2010-02-01base.bbclass: in base_contains, check for var existance before using itBrian Pomerantz1
When using base_contains() to check for a string in a variable for a, if the variable is not defined an exception occurs. By checking the existance of the variable and returning false if it isn't there, a value can be checked for a variable regardless of whether or not it is defined. Signed-off-by: Brian Pomerantz <bapper@mvista.com> Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-01-29Revert "kernel.bbclass only install image in do_deploy if not installing ↵Frans Meulenbroeks1
from packaged staging" This reverts commit 61acb940a7436a43d0894284d25e8d106f461c23. This patch is not as robust as I thought, will reassess the issue at hand later Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-01-29kernel.bbclass only install image in do_deploy if not installing from ↵Frans Meulenbroeks1
packaged staging kernel.bbclass do_deploy has: install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin which expands to install -m 0644 arch/arm/boot/uImage .../deploy/glibc/images/beagleboard/uImage-2.6.29-r51-beagleboard.bin but in packaged staging arch/arm/boot/uImage does not exist so we get the error: install: cannot stat `arch/arm/boot/uImage': No such file or directory This patch only installs uImage if not using packaged staging Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-01-27base.bbclass: pre-create SRC_URI checksums to include in the recipeDenys Dmytriyenko1
Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Frans meulenbroeks <fransmeulenbroeks@gmail.com>
2010-01-27gnome bbclass: change PN to BPN in magic SRC_URI composer to make it work in ↵Koen Kooi1
-native and -sdk cases as well
2010-01-26efl.bbclass: ship edje-externals in .dev packageMichael 'Mickey' Lauer1
2010-01-26gnome.bbclass : add name=archive to SRC_URI so .bb files can use new checksumsGraeme Gregory1
New checksums system needs a name= in the SRC_URI name, so add a default one for gnome.
2010-01-24package_deb.bbclass: make the PACKAGES check earlier so if there is nothing ↵Ricardo Salveti de Araujo1
to package we don't read potentially stale pkgdata from staging. This is basically the commit 27b9bc946eeb3faa7b10d92689ab527af42727bd that got lost when merging poky stuff into the repo. The behavior is much like what we already have with package_ipk. Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@openbossa.org>
2010-01-24icecc: introduce ICECC_FALLBACK_PARALLELRoman Khimov1
icecc-blacklisted packages currently built not only without icecc environment set but also without any parallel options enabled. The original intention was not to kill the build machine, I guess, since having a good icecc cluster it's easy to set '-j16' or '-j32' or whatever else which could do so. However as the toolchain packages are blacklisted for icecc they're becoming a bottleneck in the build process, while they can be built with local-machine parallelism. So, in order to solve it, introducing ICECC_FALLBACK_PARALLEL option. It's simply used as PARALLEL_MAKE for icecc-blacklisted packages.
2010-01-24icecc: remove bb.errors on un-built compilersRoman Khimov1
Building things with icecc and BB_NUMBER_THREADS more then 1 you could see a lot of messages: ERROR: no cross compiler built yet? before gcc-cross would be properly built. There is technically nothing wrong, cross compiler is not there yet and it's not needed when bitbake does fetch-unpack-patch and other things to prepare package build. But it makes people uncomfortable. We can safely kill this messages.
2010-01-22recipe_sanity: check RRECOMMENDS/RCONFLICTS and make the message more ↵Chris Larson1
comprehensible Signed-off-by: Chris Larson <clarson@mvista.com>
2010-01-22Lets rename conf/amend-recipes.inc to amend.bbclass, for consistencyChris Larson1
Signed-off-by: Chris Larson <clarson@mvista.com>
2010-01-22package_dbg: kill the explicit dir listChris Larson1
Signed-off-by: Chris Larson <clarson@mvista.com>
2010-01-21kernel.bbclass: fix kernel build, version >= 2.6.33-rc1, arch x86Aleksey Makarov1
* Apply the same change as c0a3e91845fad1cdda723bdcf962de8bc01f8a2d for x86 path * A check was missed in the x86 path of the stage method. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-01-20sanity.bbclass: handle lack of permission to read /proc/sys/vm/mmap_min_addrMartin Jansa1
* With 2.6.33-rc2-00252-ge9e5521 on my host I noticed that "cat /proc/sys/vm/mmap_min_addr" returns now "cat: /proc/sys/vm/mmap_min_addr: Operation not permitted" Its probably becuse of http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0e1a6ef2dea88101b056b6d9984f3325c5efced3 But I'm not sure if checking CAP_SYS_RAWIO even for reading this value is intentional or just bug which should be fixed in kernel. This patch makes bitbake ignore reading error. Possible QEmu failure is not handled yet. Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-01-20qt3e.bbclass: fix paths for stagingMarcin Juszkiewicz1
Without that patch uicmoc3-native fails to build.
2010-01-19package_dbg.bbclass: add current incarnation from MVL6Chris Larson1
This optional bbclass implements per-subpackage debug packages. Among other things, this makes it much easier to automate creation of debug images (where you have the debug files for all installed packages). Signed-off-by: Chris Larson <clarson@mvista.com>
2010-01-16classes/xfce.bbclass: fix SRC_URIRolf Leggewie1
2010-01-14qmake_base.bbclass: Unexport STRIP from the environmentHolger Hans Peter Freyther1
The Makefile's generated by Qt are using this variable and the assignment of STRIP = $(OE_QMAKE_STRIP) will be overturned by this export. One option would be to set STRIP = $OE_QMAKE_STRIP in the bb file but this would break striping in package.bbclass. With the unset STRIP we are able to generate proper -dbg packages for Qt and other qmake based utilities.