[oe] Adding a recipe to oe bitbake

David Hirst hirst689 at gmail.com
Fri Mar 22 14:42:45 UTC 2013


OK,
    Sorry for the carpet bombing! I added this to tisdk-rootfs-image
"task-arago-xyz \" to look for the new task file
I have included the task and pure-ftpd bb files also. I would love to
understand why this does not work.

==========================tisdk-rootfs-image.bb============================
# Arago TI SDK filesystem image
COMPATIBLE_MACHINE = "omap3|omapl138|ti33x"

require arago-base-tisdk-image.bb

IMAGE_INSTALL += "\
    task-arago-test \
    task-arago-tisdk-graphics \
    task-arago-tisdk-qte \
    task-arago-tisdk-addons \
    task-arago-tisdk-connectivity \
    task-arago-tisdk-crypto \
    task-arago-tisdk-matrix \
    task-arago-tisdk-multimedia \
    task-arago-tisdk-amsdk \
    task-arago-xyz \
"

export IMAGE_BASENAME = "tisdk-rootfs-image"

=================task-arago.xyz.bb================

DESCRIPTION = "Extended task to get extras"
LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r0"

inherit task

ARAGO_XYZ = " \
    pure-ftpd \
    "

ARAGO_XYZ_INT = "\
    ${ARAGO_XYZ} \
    "
RDEPENDS_${PN} = "\
    ${ARAGO_XYZ_INT} \
    "
===============pure-ftpd_1.0.29.bb====================

DESCRIPTION = "Sample program"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7b47170f564f6a314b82b3ea67a40bd"
PR = "r0"
PV = "1.0.29"
DEPENDS = ""
RPROVIDES = "pure-ftpd"
PROVIDES = "pure-ftpd"
ARM_INSTRUCTION_SET = "arm"

PARALLEL_MAKE = ""

inherit autotools pkgconfig

EXTRA_OECONF = "--enable-cross-compile --host=arm-arago-linux-gnueabi"

SRC_URI = "
http://iweb.dl.sourceforge.net/project/pureftpd/Pure-FTPd/1.0.29/pure-ftpd-${PV}.tar.gz
"
SRC_URI[md5sum] = "e0132a51357d419f8b66e8997d9dc5fa"
SRC_URI[sha256sum] =
"55bfb84fa63a37e5b56906afb4444fda7285d0f8b5ed24798f59c978ddea2749"
S = "${WORKDIR}/pure-ftpd-${PV}"

EXTRA_OECONF_append_armv6 = " --enable-armv6"
EXTRA_OECONF_append_armv7a = " --enable-armv6 --enable-neon"

FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer
-frename-registers -O4 -ffast-math"
BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}"

do_configure(){
  oe_runconf ${EXTRE_OECONF}
}

do_compile () {
  oe_runmake
}

do_install () {
  oe_runmake install DESTDIR=${D}
}


ARM_INSTRUCTION_SET = "arm"

BBCLASSEXTEND = "native"

============================ END===========================

On Fri, Mar 22, 2013 at 10:30 AM, Gary Thomas <gary at mlbassoc.com> wrote:

> On 2013-03-22 08:24, David Hirst wrote:
>
>> Hi,
>>      I have been struggling with a oe/bitbake issue. I wanted to add an
>> other .bb to the image file.
>> I have tried multiple ways but always end up at the same spot. I have
>> created a new task-XXX.bb file which includes my bb
>> I edited the XXXX-rootfs-image.bb to include the task-XXX.bb.
>> Once built I find that everything built fine and the new recipe was built
>> but was not loaded into the XXXX-rootfs-image.tar,gz.
>> If I look into the image directory for the bb file I see the compiled
>> application in usr/sbin.
>> I have tried this with my own .bb file and net-snmp bb file which comes
>> with the default oe-layersetup installation with the same result.
>> Did I not edit a file or miss some other required step?
>>
>>
> Wow, the same question on three mailing lists (that I read, there
> may be more...) and no cross-posting!
>
> This list is perhaps the most appropriate one for your question.
>
> More details will help.  Exactly what did you change in the
> "XXXX-rootfs-image.bb"
> recipe?
>
> --
> ------------------------------**------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------**------------------------------
>
> ______________________________**_________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.**openembedded.org<Openembedded-devel at lists.openembedded.org>
> http://lists.linuxtogo.org/**cgi-bin/mailman/listinfo/**openembedded-devel<http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel>
>



-- 
David Hirst
hirst689 at gmail.com



More information about the Openembedded-devel mailing list