Return-Path: Received: from m13-85.163.com (m13-85.163.com [220.181.13.85]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8E339E013E5 for ; Wed, 18 Apr 2012 06:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Message-ID:Subject: MIME-Version:Content-Type; bh=B+/Lk94pnxrJ3QC3vaW3TjL71TC6D6Fwoh L4sxiwYBo=; b=YV7xIUOoa3dL5p2zIdoXDZDF3/E+VnkDZhTW5i8pM+ugNwYCJA Ie6vFLfvv9s7utq7fF+9VN9jWg97OP6KTwUmUpuzZCvbvGlzFWmYb0EhoqMLrUxk 0cxT4qAEnYULcDC5y1m52MQZde1jQYrG+Ca8I0kFsBhQ9/VI1sJWcGdUo= Received: from caterwaul ( [121.18.126.91] ) by ajax-webmail-wmsvr85 (Coremail) ; Wed, 18 Apr 2012 21:58:55 +0800 (CST) Date: Wed, 18 Apr 2012 21:58:55 +0800 (CST) From: caterwaul To: yocto Message-ID: <12eeb79.23ed8.136c5bfaebe.Coremail.caterwaul@163.com> MIME-Version: 1.0 X-Originating-IP: [121.18.126.91] X-CM-HeaderCharset: GBK X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20120307(17626.4462.4455) Copyright (c) 2002-2012 www.mailtech.cn 163com X-CM-CTRLDATA: UUCIwWZvb3Rlcl9odG09Mzk4Mzo4MQ== X-CM-TRANSID: VcGowEBJV0OfyI5P0UKRAA--.21W X-CM-SenderInfo: pfdwv2hzdxzqqrwthudrp/1tbiKBmUJE9oyzjEqwAAs6 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Subject: Fw:Re:Re: problem about package and subpackage X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2012 13:58:58 -0000 Content-Type: multipart/alternative; boundary="----=_Part_389571_1376101070.1334757535422" ------=_Part_389571_1376101070.1334757535422 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit -------- Forwarding messages -------- From: caterwaul Date: 2012-04-18 21:57:27 To: "Gary Thomas" Subject: Re:Re: [yocto] problem about package and subpackage At 2012-04-18 19:57:21,"Gary Thomas" wrote: >On 2012-04-18 05:29, caterwaul wrote: >> Hi, >> >> I wanted to add dhcp(4.2.0) into my image. And I added "dhcp" into IMAGE_INSTALL of my image's bb file. After I runing bitbake, the dhcp package is normally fetched and compiled >> and so on. But during do_rootfs bitbake reported as follow: >> Processing dhcp... >> Unable to find package dhcp (dhcp)! >> ERROR: Function 'do_rootfs' failed >> >> I note that in /meta/recipes-connectivity/dhcp/dhcp4.inc the dhcp package is split into 4 subpackages(PACKAGES += "dhcp-server dhcp-client dhcp-relay dhcp-omshell"). Now If I >> remove "dhcp" from IMAGE_INSTALL and add these 4 subpackages' name into IMAGE_INSTALL and run bitbake AGAIN, they can be normally added into my final image. >> >> I've tried to modify last part of dhcp4.inc as follow: But bitbake still reported "Unable to find package dhcp" >> FILES_${PN} = "" >> FILES_${PN} += "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server ${sysconfdir}/default/dhcp-server ${sysconfdir}/dhcp/dhcpd.conf" >> FILES_${PN} += "${sbindir}/dhcrelay ${sysconfdir}/init.d/dhcp-relay ${sysconfdir}/default/dhcp-relay" >> FILES_${PN} += "${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf" >> FILES_${PN} += "${bindir}/omshell" >> RDEPENDS_${PN} = "bash" >> >> So How should I config bitbake to get my image with dhcp by running bitbake ONLY ONCE? > >There is no "dhcp" package, only dhcp-client, dhcp-relay, dhcp-server. >Pick the functionality you need and use the appropriate package(s) > Thank you very much. But maybe my question is not clear. What I mean is: If I pick dhcp-server dhcp-client dhcp-relay and dhcp-omshell, bitbake will NOT start to build and report can NOT find these packages. On the other hand, if I pick dhcp, bitbake will start to build, but at do_rootfs stage it will report "Unable to find package dhcp (dhcp)!"(at this moment all dhcp-xxx packages has actually been generated there). So I want to know how to config bitbake to complete the build and produce image with whole or part of dhcp. ------=_Part_389571_1376101070.1334757535422 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit



-------- Forwarding messages --------
From: caterwaul <caterwaul@163.com>
Date: 2012-04-18 21:57:27
To: "Gary Thomas" <gary@mlbassoc.com>
Subject: Re:Re: [yocto] problem about package and subpackage
At 2012-04-18 19:57:21,"Gary Thomas" <gary@mlbassoc.com> wrote:
>On 2012-04-18 05:29, caterwaul wrote:
>> Hi,
>>
>> I wanted to add dhcp(4.2.0) into my image. And I added "dhcp" into IMAGE_INSTALL of my image's bb file. After I runing bitbake, the dhcp package is normally fetched and compiled
>> and so on. But during do_rootfs bitbake reported as follow:
>> Processing dhcp...
>> Unable to find package dhcp (dhcp)!
>> ERROR: Function 'do_rootfs' failed
>>
>> I note that in /meta/recipes-connectivity/dhcp/dhcp4.inc the dhcp package is split into 4 subpackages(PACKAGES += "dhcp-server dhcp-client dhcp-relay dhcp-omshell"). Now If I
>> remove "dhcp" from IMAGE_INSTALL and add these 4 subpackages' name into IMAGE_INSTALL and run bitbake AGAIN, they can be normally added into my final image.
>>
>> I've tried to modify last part of dhcp4.inc as follow: But bitbake still reported "Unable to find package dhcp"
>> FILES_${PN} = ""
>> FILES_${PN} += "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server ${sysconfdir}/default/dhcp-server ${sysconfdir}/dhcp/dhcpd.conf"
>> FILES_${PN} += "${sbindir}/dhcrelay ${sysconfdir}/init.d/dhcp-relay ${sysconfdir}/default/dhcp-relay"
>> FILES_${PN} += "${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf"
>> FILES_${PN} += "${bindir}/omshell"
>> RDEPENDS_${PN} = "bash"
>>
>> So How should I config bitbake to get my image with dhcp by running bitbake ONLY ONCE?
>
>There is no "dhcp" package, only dhcp-client, dhcp-relay, dhcp-server.
>Pick the functionality you need and use the appropriate package(s)
>

Thank you very much. But maybe my question is not clear. What I mean is:
If I pick dhcp-server dhcp-client dhcp-relay and dhcp-omshell, bitbake will NOT start to build and report can NOT find these packages. On the other hand, if I pick dhcp, bitbake will start to build, but at do_rootfs stage it will report "Unable to find package dhcp (dhcp)!"(at this moment all dhcp-xxx packages has actually been generated there). So I want to know how to config bitbake to complete the build and produce image with whole or part of dhcp.




------=_Part_389571_1376101070.1334757535422--