From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic301-19.consmr.mail.sg3.yahoo.com (sonic301-19.consmr.mail.sg3.yahoo.com [106.10.242.82]) by mail.openembedded.org (Postfix) with ESMTP id 41FA2751A2 for ; Thu, 10 May 2018 06:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1525935241; bh=TwTmnz7bvaswdfvsQAhvFoPJdmz2eZktc2D+pD/W90w=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=P52yJzuXoIMN35vHYvdhejyP1nEytSRUKSAAetduuIfrQ8+XoWkVn9RKp+O1dNrRgXiuZPAUslxf5mIegtyP1IvULcGjlRsnsheo3me8cfYFiZ2fsKHTTjJrdUiyscjLHijkyZc/694YwP0wPK4/wCV580pBfPRexJwibTiSQsowS8U/Buqx+/HM4vfRG99z4EI3+dKpXY+1rK/It5c2m2714KJeJ2sbKbnnxG4pp8LFe34HUuuqqwjZzq3KypC+W2pIXIcFonVvSYUSu+9wKG8aW1hHD78/vBzn6lLMq9WZQJ3Esl834lX+GL9Qz5VECgQ7rS3h+AL/tQ3fAtSLTg== X-YMail-OSG: QBLr_PoVM1lprb9Ov61ElZ7CBddf4wmOGHm_PfdEkTU5nvpNlLgRRd1pvzP72iT bGYXj9OT0m85VRgQXY.CWi.Rpv81NFFOdNUA_IuuD91T53EoJjGaJ8DA99j3tkuN9THayPEd15nO I3u.fu1VkYoUQg9ALnQ.cBYvJlWYwIytw5D4H8uPKQn.8vpVLqK.v2XZIc3q7pl_LgSJAubLbjS_ YEbmbqgZgkiRtFIH9wKzCMx7FDn8h85UyFdsUMdYp7OIfaBXs7mPJz5NucfZ7sVxJSCKrFpxhbBF N3B3TI7DM0scc12n_aNZgsIe3npOxoDU4OFgDsc410zMX7iRh4dD.Eo8r_OgqpxXiZAKuNrRVCxD cNg1gXVdnnpBnNR7XVUA4awVFhURrWY_3CPt8eIrcBvknJZkXki4LgjrtPp5E662Ibb3tHv4kwmC Re8kvZ24T08L5Kr7JNHtoENjl0I8M8PqjsbbZKNmp9lbP1jppciMNmJfJDnZQp_mp9U7z.dGqiVT iOrY9PzbS1OFvYELnZ8fIOLmi2sM0g0hJfe9EIN2TYxeZrkeytYNKkgExDAavHROb.sTgSpguNzg jlDvCH_.OSdlLu57OwrZ9AA4rmbHZTCqNzJ7U4jP54NiyALMuKUdnTA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.sg3.yahoo.com with HTTP; Thu, 10 May 2018 06:54:01 +0000 Date: Thu, 10 May 2018 06:53:52 +0000 (UTC) From: Ugesh Reddy Reply-To: "kumar.ugesh003@yahoo.com" To: "armccurdy@gmail.com" Message-ID: <628795431.1912899.1525935232611@mail.yahoo.com> In-Reply-To: References: <1184471455.1381374.1525832300014.ref@mail.yahoo.com> <1184471455.1381374.1525832300014@mail.yahoo.com> <838865895.1728045.1525881582620@mail.yahoo.com> MIME-Version: 1.0 X-Mailer: WebService/1.1.11848 YahooMailAndroidMobile YMobile/1.0 (com.yahoo.mobile.client.android.mail/5.24.8; Android/6.0; MPB24.65-34-3; titan_umtsds; motorola; XT1068; 4.69; 1184x720; ) 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 06:54:02 -0000 Content-Type: multipart/alternative; boundary="----=_Part_1912898_314466092.1525935232606" ------=_Part_1912898_314466092.1525935232606 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, Thanks a lot for the reference manual. =C2=A0 I have created example recipe. =C2=A0 The content of the .bb file: =C2=A0 # # This file was derived from the 'Hello World!' example recipe in the # Yocto Project Development Manual. # =C2=A0 DESCRIPTION =3D "Simple helloworld application" SECTION =3D "examples" DEPENDS =3D "" LICENSE =3D "MIT" #LIC_FILES_CHKSUM =3D "file://LICENSE;md5=3D0835ade698e0bcf8506ecda2f7b4f3= 02" LIC_FILES_CHKSUM =3D "file://${COMMON_LICENSE_DIR}/MIT;md5=3D0835ade698e0b= cf8506ecda2f7b4f302" #FILESEXTRAPATHS_prepend :=3D "${THISDIR}/${PN}-${PV}:" =C2=A0 SRCREV =3D "4ec84957442182f36351f94c0626560ec3ffd487" #SRC_URI =3D "https://github.com/DynamicDevices/bbexample.git" SRC_URI =3D "file://bbexample-0.1.tar.gz" S =3D "${WORKDIR}/bbexample" =C2=A0 do_configure_prepend () { =C2=A0 ${S}/autogen.sh } 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 umn5cob=C2=A0=C2=A0 259 May 10 01:41 bbexample.h -rw-r--r-- 1 umn5cob umn5cob=C2=A0=C2=A0 374 May 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 Makefile.in =C2=A0 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/wo= rk/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/buil= d | 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/umn5c= ob/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 re= run 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/bbexa= mple/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. =C2=A0 Someone please guide me what is missed and error? =C2=A0 On Thu, 10 May 2018 at 5:59 a.m., Andre McCurdy wro= te: On Wed, May 9, 2018 at 8:59 AM, Ugesh Reddy via bitbake-devel wrote: Hello,=C2=A0The devtool hides out the information and trying to learn bitb= ake and wanted understand each entry in the .BB files.So I would to write i= t instead of tool. Could you guide me? How to write a recipe is well documented: =C2=A0 https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.h= tml#new-recipe-writing-a-new-recipe =C2=A0 https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.h= tml#new-recipe-autotooled-package You can also learn a lot by reviewing and understanding the recipes in oe-= core. ------=_Part_1912898_314466092.1525935232606 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello,

Thanks a lot for the reference = manual.

 

I have created example r= ecipe.

 

The content of th= e .bb file:

 

#

# This file was derived from the 'Hello World!' exa= mple recipe in the

# Yocto Project Development Manual.

#

 

DESCRIPTION = =3D "Simple helloworld application"

SECTION =3D "example= s"

DEPENDS =3D ""

LICENSE =3D "MIT"

#LIC_FILES_CHKSUM =3D "file://LICENSE;md5=3D0835ade698e0bcf8= 506ecda2f7b4f302"

LIC_FILES_CHKSUM =3D "file://${COMMON_L= ICENSE_DIR}/MIT;md5=3D0835ade698e0bcf8506ecda2f7b4f302"

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

 

SRCREV =3D "4ec84957442182f36351f94c0626560ec3ffd= 487"

#SRC_URI =3D "https://github.com/DynamicDevices/bbex= ample.git"

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

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

 <= /p>

do_configure_prepend () {

  ${S}/autogen.= sh

}

inherit autotools

 

Sources

 =

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

-rw-r--r-- 1 umn5cob umn5cob&= nbsp;  274 May 10 01:41 bbexample.c

<= span style=3D"overflow-wrap: break-word; font-size: 10pt;">-rw-r--r-- 1 umn= 5cob 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 conf= igure.ac

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

-rw-rw-r-- 1 umn5cob umn5cob 304= 16 May 10 02:02 Makefile.in

 

Error:

NOTE: Preparing RunQueue

NOTE: Executing RunQueue= Tasks

ERROR: Fun= ction 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/core= 2-64-poky-linux/bbexample/1.0-r0/temp/log.do_configure.24121

=

Log data follows:

| DEBUG: Executing python funct= ion sysroot_cleansstate

| DEBUG: Python function sysroot= _cleansstate finished

| DEBUG: SITE files ['endian-lit= tle', '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/bbexa= mple/1.0-r0/build

| DEBUG: Shell function autotools_preco= nfigure finished

| DEBUG: Executing python function autot= ools_copy_aclocals

| DEBUG: SITE files ['endian-little', = 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']<= /p>

| DEBUG: Python function autotools_copy_aclocals finished=

| DEBUG: Executing shell function do_configure

| aut= oreconf: 'configure.ac' or 'configure.in' is required

| W= ARNING: exit code 1 from a shell command.

= | ERROR: Function failed: do_configure (log file i= s located at /home/umn5cob/yocto/poky/build/tmp/work/core2-64-poky-linux/bb= example/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: Atte= mpted 533 tasks of which 532 didn't need to be rerun and 1 failed.

No currently running tasks (510 of 543)

 <= /span>

Summary: 1 task failed:

=   /home/um= n5cob/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, returnin= g a non-zero exit code.

 

Someone please guide me what is mi= ssed and error?

 


On Thu, 10 May 2018 at 5:59 a.m., Andre McCurd= y
<armccurdy@gmail.com> wrote:
On Wed, May 9, 201= 8 at 8:59 AM, Ugesh Reddy via bitbake-devel <bitbake-devel@lists.openembedded.org> wrote:
H= ello,
 The devtool hides out the information and try= ing 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:
You can = also learn a lot by reviewing and understanding the recipes in oe-core.

=
------=_Part_1912898_314466092.1525935232606--