Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 1F7F7E00E09; Tue, 31 May 2016 23:01:49 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0036] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from intranet.lincoln.ln-systems.com (post.ln-systems.com [62.49.123.66]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 22C94E00DFA for ; Tue, 31 May 2016 23:01:46 -0700 (PDT) Received: from LNSYSCH3 (firewall-ext.lincoln.ln-systems.com [62.49.123.65]) by intranet.lincoln.ln-systems.com (8.13.1/8.13.1) with ESMTP id u5160xao027369 for ; Wed, 1 Jun 2016 07:01:04 +0100 From: "Colin Helliwell" To: References: In-Reply-To: Date: Wed, 1 Jun 2016 07:01:36 +0100 Organization: LN Systems Limited Message-ID: <21d701d1bbcb$12565ce0$370316a0$@ln-systems.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQHIzrdcU8d1QpE1E/lsBc1oeatA+J/l9+LQ Subject: Re: Adding a -test sub-recipe X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: colin.helliwell@ln-systems.com List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2016 06:01:49 -0000 Content-Type: multipart/alternative; boundary="----=_NextPart_000_21D8_01D1BBD3.741D0ED0" Content-Language: en-gb ------=_NextPart_000_21D8_01D1BBD3.741D0ED0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit [Apologies if this appears twice - unsure if my first send worked] I have a recipe which builds its libs/apps fine, and is installed into my rootfs; now I'm trying to add an additional 'test' subsection to the recipe in order to build and install some test apps. I've added a do_compile_append-test() and do_install_append-test() for the additional test components, and the recipe builds these ok. But I'm struggling to get these added to the rootfs image. I've listed the additional files in a FILES_${PN}-test= , and added a PACKAGES += "FILES_${PN}-test" , and added IMAGE_INSTALL += "myrecipe-test" to the image recipe. However the do_rootfs() fails with "Unable to locate package myrecipe-test" I added RPROVIDES_${PN} += "myrecipe-test" which 'resolves' the error, but the additional files aren't appearing in the rootfs. What am I missing or getting wrong.? The components are being put into the rootfs if I do the additions without the '-test' suffix (i.e. just adding them to the base recipe), but I'd like to have it as a separately-selectable option in the image recipe(s). ------=_NextPart_000_21D8_01D1BBD3.741D0ED0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

[Apologies if this appears twice – unsure if my = first send worked]

 

I have a = recipe which builds its libs/apps fine, and is installed into my rootfs; = now I’m trying to add an additional ‘test’ subsection = to the recipe in order to build and install some test = apps.

I’ve added a = do_compile_append-test() and do_install_append-test() for the additional = test components, and the recipe builds these ok. But I’m = struggling to get these added to the rootfs image.

I’ve listed the additional files in a =  FILES_${PN}-test=3D   , and added a   PACKAGES = +=3D “FILES_${PN}-test”  , and added  = IMAGE_INSTALL +=3D “myrecipe-test”   to the image = recipe.   However the do_rootfs() fails with

“Unable to locate package = myrecipe-test”

I added =

  RPROVIDES_${PN} +=3D = "myrecipe-test"

which = ‘resolves’ the error, but the additional files aren’t = appearing in the rootfs.

 

What am I = missing or getting wrong…?

The = components are being put into the rootfs if I do the additions without = the ‘-test’ suffix (i.e. just adding them to the base = recipe), but I’d like to have it as a separately-selectable option = in the image recipe(s).

 

 

 

------=_NextPart_000_21D8_01D1BBD3.741D0ED0--