From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb0-f182.google.com (mail-yb0-f182.google.com [209.85.213.182]) by mail.openembedded.org (Postfix) with ESMTP id 335EC751DC for ; Thu, 10 May 2018 10:58:16 +0000 (UTC) Received: by mail-yb0-f182.google.com with SMTP id 140-v6so504324ybc.9 for ; Thu, 10 May 2018 03:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hZ2sQv4XbBLCmjzlNJiI0chT9i90GGHDjNBIF88zx2A=; b=bStxvIF6gGY6CaV5EdGltVKDwx+1+2ieRaXDMx2uJXnlo/Dzr+04VsloCRAo5XMegf UdnzECu98ownpu4Yjgqfgc9B834CV9HH/U6rUvhAbYpLXUxbLnoFKx5rThUmHlpXXnih V4aLHoBdrazvSMh6GhcrScn21mrSCCSpMCTIwKxJUBWlemrBY8kSKr8ZkLiDqKr+Ba8g Iqpb1A4PMim9q+tNHBwkMarPUZ+oImxPhoe0qrPBW70D6BEJ1ncGxIDTkCWtBOvRqz+O fKPUnWgqkWLJZtJ1MsGMZ2AzDmUr7/hbdTSs6EpX4DHZkCtZ1zNOtymChRfAlPqmN7gt 7jmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hZ2sQv4XbBLCmjzlNJiI0chT9i90GGHDjNBIF88zx2A=; b=ZE8npCXcA41JdyYDQZczb3/aZkr62OcbPuqrgFqdGTuEyU0tmpA6tRGLrKCDlhJwPQ wisB/emJrmGnYSddr6PQSYKC0eSb9xLpyVr9GL+J29ztiD0cHl4eEXlVWaJFbhWOeHXi fyJqmmj4/l3+Q24VWzz1cfh+ghpXShQOELhUXbegSqQZgGZfhsFhtXtFY8n1Mj3zk0sa 62/foUiw31v6gvUlPWwGgjaBrFVB/Dx11Cxjxozd/n8pdOpZ/IC5Oi9dGS+CU0VZJFfq fQgCs5GRz3GaEfV4cCiZPWgq+7HpbM6IBsk6cjfXUCdB97NnYWBPejesxO4t6yqL/BVz Sxbg== X-Gm-Message-State: ALKqPwfOCxdoF/HqI6bcIj5FRLn5F45b/NA7D5tecXxs3dJyoR5MZ1p9 qfHeg2jv7p6EHCzB6nRE6uVUg2QpNJfJA0GiiXI= X-Google-Smtp-Source: AB8JxZpMKrAaNVx8JDDo/d7K3x3lCEeKBjNp7WHwhzNu8pimtnwsXBHiyt6roL4TgdxD3CPMX7smdAMaDPU6gkw+S2w= X-Received: by 2002:a25:b3cc:: with SMTP id x12-v6mr411617ybf.181.1525949897359; Thu, 10 May 2018 03:58:17 -0700 (PDT) MIME-Version: 1.0 References: <1184471455.1381374.1525832300014.ref@mail.yahoo.com> <1184471455.1381374.1525832300014@mail.yahoo.com> <838865895.1728045.1525881582620@mail.yahoo.com> <628795431.1912899.1525935232611@mail.yahoo.com> In-Reply-To: <628795431.1912899.1525935232611@mail.yahoo.com> From: Matt Hoosier Date: Thu, 10 May 2018 10:58:06 +0000 Message-ID: To: "kumar.ugesh003@yahoo.com" Cc: "bitbake-devel@lists.openembedded.org" Subject: Re: .bb script file for auto tools X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2018 10:58:17 -0000 Content-Type: multipart/alternative; boundary="00000000000093c8c0056bd7e5d2" --00000000000093c8c0056bd7e5d2 Content-Type: text/plain; charset="UTF-8" On Thu, May 10, 2018 at 01:54 Ugesh Reddy via bitbake-devel < bitbake-devel@lists.openembedded.org> wrote: > Hello, > > Thanks a lot for the reference manual. > > > > I have created example recipe. > > > > *The content of the .bb file:* > > > > # > > # This file was derived from the 'Hello World!' example recipe in the > > # Yocto Project Development Manual. > > # > > > > DESCRIPTION = "Simple helloworld application" > > SECTION = "examples" > > DEPENDS = "" > > LICENSE = "MIT" > > #LIC_FILES_CHKSUM = "file://LICENSE;md5=0835ade698e0bcf8506ecda2f7b4f302" > > LIC_FILES_CHKSUM = > "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" > > #FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" > > > > SRCREV = "4ec84957442182f36351f94c0626560ec3ffd487" > > #SRC_URI = "https://github.com/DynamicDevices/bbexample.git" > > SRC_URI = "file://bbexample-0.1.tar.gz" > > S = "${WORKDIR}/bbexample" > > > > do_configure_prepend () { > > ${S}/autogen.sh > > } > The equivalent of autogen.sh is already done for you in autotools.bbclass's do_configure(). I'd suggest removing this. inherit autotools > > > > *Sources* > > > > -rwxr-xr-x 1 umn5cob umn5cob 294 May 10 01:41 autogen.sh > > -rw-r--r-- 1 umn5cob umn5cob 274 May 10 01:41 bbexample.c > > -rw-r--r-- 1 umn5cob umn5cob 259 May 10 01:41 bbexample.h > > -rw-r--r-- 1 umn5cob umn5cob 374 May 10 01:41 bbexamplelib.c > > -rw-r--r-- 1 umn5cob umn5cob 659 May 10 01:41 configure.ac > > -rw-r--r-- 1 umn5cob umn5cob 303 May 10 01:41 Makefile.am > > -rw-rw-r-- 1 umn5cob umn5cob 30416 May 10 02:02 Makefile.in > > > > *Error:* > > NOTE: Preparing RunQueue > > NOTE: Executing SetScene Tasks > > NOTE: Executing RunQueue Tasks > > *ERROR: Function failed: do_configure (log file is located at > /home/umn5cob/yocto/poky/build/tmp/work/core2-64-poky-linux/bbexample/1.0-r0/temp/log.do_configure.24121)* > > *ERROR: Logfile of failure stored in: > /home/umn5cob/yocto/poky/build/tmp/work/core2-64-poky-linux/bbexample/1.0-r0/temp/log.do_configure.24121* > > Log data follows: > > | DEBUG: Executing python function sysroot_cleansstate > > | DEBUG: Python function sysroot_cleansstate finished > > | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', > 'bit-64', 'x86_64-linux', 'common'] > > | DEBUG: Executing shell function autotools_preconfigure > > | Previously configured separate build directory detected, cleaning > /home/umn5cob/yocto/poky/build/tmp/work/core2-64-poky-linux/bbexample/1.0-r0/build > > | DEBUG: Shell function autotools_preconfigure finished > > | DEBUG: Executing python function autotools_copy_aclocals > > | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', > 'bit-64', 'x86_64-linux', 'common'] > > | DEBUG: Python function autotools_copy_aclocals finished > > | DEBUG: Executing shell function do_configure > > | Generating configure files... may take a while. > > | autoreconf: 'configure.ac' or 'configure.in' is required > > | WARNING: exit code 1 from a shell command. > > *| ERROR: Function failed: do_configure (log file is located at > /home/umn5cob/yocto/poky/build/tmp/work/core2-64-poky-linux/bbexample/1.0-r0/temp/log.do_configure.24121)* > > *ERROR: Task 5 > (/home/umn5cob/yocto/poky/meta-yocto-bsp/recipes-bbexample_1.0/bbexample/bbexample_1.0.bb > , do_configure) failed with exit code '1'* > > NOTE: Tasks Summary: Attempted 533 tasks of which 532 didn't need to be > rerun and 1 failed. > > No currently running tasks (510 of 543) > > > > Summary: 1 task failed: > > /home/umn5cob/yocto/poky/meta-yocto-bsp/recipes-bbexample_1.0/bbexample/ > bbexample_1.0.bb, do_configure > > Summary: There was 1 WARNING message shown. > > Summary: There was 1 ERROR message shown, returning a non-zero exit code. > > > > Someone please guide me what is missed and error? > > > Sent from Yahoo Mail on Android > > > On Thu, 10 May 2018 at 5:59 a.m., Andre McCurdy > wrote: > On Wed, May 9, 2018 at 8:59 AM, Ugesh Reddy via bitbake-devel < > bitbake-devel@lists.openembedded.org> wrote: > > Hello, > The devtool hides out the information and trying to learn bitbake and > wanted understand each entry in the .BB files.So I would to write it > instead of tool. > > Could you guide me? > > > How to write a recipe is well documented: > > > https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#new-recipe-writing-a-new-recipe > > https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#new-recipe-autotooled-package > > You can also learn a lot by reviewing and understanding the recipes in > oe-core. > > -- > _______________________________________________ > bitbake-devel mailing list > bitbake-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/bitbake-devel > --00000000000093c8c0056bd7e5d2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, May 10, 2018 = at 01:54 Ugesh Reddy via bitbake-devel <bitbake-devel@lists.openembedded.org> wrote:=
Hello,

Thanks a lot for the reference manual.

=C2=A0

= I have created example recipe.

=C2=A0

The content of the .bb file:<= /u>

=C2=A0

#

# This file was derived from the 'Hello World!&= #39; example recipe in the

# Yocto Project Development Manual.

#

=C2=A0

= DESCRIPTION =3D "Simple helloworld application"

SECTION =3D "examples"

DEPENDS =3D "&q= uot;

LICENSE =3D &= quot;MIT"

#LI= C_FILES_CHKSUM =3D "file://LICENSE;md5=3D0835ade698e0bcf8506ecda2f7b4f= 302"

LIC_FILE= S_CHKSUM =3D "file://${COMMON_LICENSE_DIR}/MIT;md5=3D0835ade698e0bcf85= 06ecda2f7b4f302"

#FILESEXTRAPATHS_prepend :=3D "${THISDIR}/${PN}-${PV}:"

=C2=A0

SRCREV =3D "4ec84957442182f36= 351f94c0626560ec3ffd487"

#SRC_URI =3D "https://github.com/DynamicDevices/bbexamp= le.git"

S= RC_URI =3D "file://bbexample-0.1.tar.gz"

S =3D "${WORKDIR}/bbexample"

=C2=A0

do_configure_prepend () {=

=C2=A0 ${S}/autogen.sh

}

<= /blockquote>

The equivalent of= autogen.sh is already done for you in autotools.bbclass's do_configure= (). I'd suggest removing this.

inherit autotools

=C2=A0

Sources

=

=C2=A0

-rwxr-xr-x 1 umn5cob umn5cob=C2=A0=C2=A0 294 May 10= 01:41 autogen.sh

= -rw-r--r-- 1 umn5cob umn5cob=C2=A0=C2=A0 274 May 10 01:41 bbexample.c

-rw-r--r-- 1 umn5cob um= n5cob=C2=A0=C2=A0 259 May 10 01:41 bbexample.h

-rw-r--r-- 1 umn5cob umn5cob=C2=A0=C2=A0 374 M= ay 10 01:41 bbexamplelib.c

-rw-r--r-- 1 umn5cob umn5cob=C2=A0=C2=A0 659 May 10 01:41 configure.ac

-rw-r--r-- 1 umn5cob umn5cob=C2= =A0=C2=A0 303 May 10 01:41 Makefile.am

-rw-rw-r-- 1 umn5cob umn5cob 30416 May 10 02:02 Makef= ile.in

=C2=A0

Error:

NOTE: Preparing Run= Queue

NOTE: Execut= ing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: Function failed: do_configure (log file is located = at /home/umn5cob/yocto/poky/build/tmp/work/core2-64-poky-linux/bbexample/1.= 0-r0/temp/log.do_configure.24121)

ERROR: Logfile of failure stored in: /home/umn5cob/y= octo/poky/build/tmp/work/core2-64-poky-linux/bbexample/1.0-r0/temp/log.do_c= onfigure.24121

Log data follows:

| DEBUG: Executing python function sysroot_cleansstate

| DEBUG: Python function sysroot_cl= eansstate finished

| DEBUG: SITE files ['endian-little', 'common-linux', '= ;common-glibc', 'bit-64', 'x86_64-linux', 'common&#= 39;]

| DEBUG: Exec= uting shell function autotools_preconfigure

| Previously configured separate build directory = detected, cleaning /home/umn5cob/yocto/poky/build/tmp/work/core2-64-poky-li= nux/bbexample/1.0-r0/build

| DEBUG: Shell function autotools_preconfigure finished

=

| DEBUG: Executing python fu= nction autotools_copy_aclocals

| DEBUG: SITE files ['endian-little', 'common-linu= x', 'common-glibc', 'bit-64', 'x86_64-linux', &= #39;common']

|= DEBUG: Python function autotools_copy_aclocals finished

| DEBUG: Executing shell function d= o_configure

| Gene= rating configure files... may take a while.

| autoreconf: 'configure.ac' or 'configure.in' is required

| WARNING: exit code 1 from a shel= l command.

| ER= ROR: Function failed: do_configure (log file is located at /home/umn5cob/yo= cto/poky/build/tmp/work/core2-64-poky-linux/bbexample/1.0-r0/temp/log.do_co= nfigure.24121)

ERROR: Task 5 (/home/umn5cob/yocto/poky/meta-yocto-bsp/recipes-bbexampl= e_1.0/bbexample/bbexa= mple_1.0.bb, do_configure) failed with exit code '1'=

NOTE: Tasks Summary: Att= empted 533 tasks of which 532 didn't need to be rerun and 1 failed.

No currently running = tasks (510 of 543)

=C2=A0

Summary: 1= task failed:

=C2= =A0 /home/umn5cob/yocto/poky/meta-yocto-bsp/recipes-bbexample_1.0/bbexampl= e/bbexample_1.0.bb, do_configure

Su= mmary: There was 1 WARNING message shown.

Summary: There was 1 ERROR message shown, returning= a non-zero exit code.

=C2=A0

Someone ple= ase guide me what is missed and error?

=C2=A0


On= Thu, 10 May 2018 at 5:59 a.m., Andre McCurdy
<= div>
On Wed, May 9, 2018 at 8:59 AM, Ugesh Reddy via bitbake-devel = <bitbake-devel@lists.openembedded.org= > wrote:
Hello,
=C2=A0T= he devtool hides out the information and trying to learn bitbake and wanted= understand each entry in the .BB files.So I would to write it instead of t= ool.

Could you guide me?

How to write a recipe is well docum= ented:
= You can also learn a lot by reviewing and understanding the recipes in oe-c= ore.

--
_______________________________________________
bitbake-devel mailing list
= bitbake-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/l= istinfo/bitbake-devel
--00000000000093c8c0056bd7e5d2--