From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 5D80BE00A4D; Wed, 26 Oct 2016 07:29:17 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [195.47.247.221 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mailrelay3.public.one.com (mailrelay3.public.one.com [195.47.247.221]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A2C7FE00A21 for ; Wed, 26 Oct 2016 07:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=visionweeding.com; s=20140924; h=from:subject:date:message-id:to:mime-version:content-type:in-reply-to: references; bh=DwlE4nTah25zoEbKzfn/k9Z0nSE/An6DfH6gg1wqH64=; b=P5cz/NI3RGkuHRVD5Z46h4QdXSJdLaUTMtZmztr951CemOSmsABs/Okolhsav1pb9tMS1KBOutvxh nUf8s4w0QEENCXI3pTAlohpliuCfJpqjr6INt9pQuv99TqEC+ghCuJjz0Nq3eTxnOflgRuuX2TsHwD gUPdPoZkB/tjdbRg= X-HalOne-Cookie: ec51ab2ad5ce08ccc5d0e3bc195877613629895f X-HalOne-ID: 8dd7d867-9b88-11e6-a591-b8ca3afa9d73 Received: from [192.168.1.194] (unknown [86.58.170.151]) by smtpfilter1.public.one.com (Halon Mail Gateway) with ESMTPSA for ; Wed, 26 Oct 2016 14:29:07 +0000 (UTC) To: yocto@yoctoproject.org References: <5810ADFC.2000309@visionweeding.com> From: Lars Larsen Message-ID: <5810BDB3.6090801@visionweeding.com> Date: Wed, 26 Oct 2016 16:29:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <5810ADFC.2000309@visionweeding.com> Subject: Re: how to add files to boot media hddimg/ISO SOLVED X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2016 14:29:17 -0000 Content-Type: multipart/alternative; boundary="------------060608060805040106070908" --------------060608060805040106070908 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit I manage to solve it, with a not so elegant solution I any one has an "authorized" solution please let me know in my local .conf I have INHERIT += "rootfsdebugfiles" ROOTFS_DEBUG_FILES += "\ ${TOPDIR}/[path to file]/sektionnumber.dat ${ISODIR}/sektionnumber.dat; \ ${TOPDIR}/[path to file]/sektionnumber.dat ${HDDDIR}/sektionnumber.dat; \ " -Lars On 2016-10-26 15:22, Lars Larsen wrote: > Hello yocto world > > I have a recipe that produce an ISO image and a hddimg image. > I need to add a file to the boot media root, alongside rootfs.img and > intrd - so it is NOT a part of the rootfs > > > inspired by bootimg.bbclass, I tried to add the following recipe to my > build > > > /DESCRIPTION = "Provide a sektionnumber.dat file on bootmedia (ISO and > hdd)"// > // > //LICENSE = "CLOSED"// > //BRANCH ?= "develop"// > //SRC_URI ="file://sektionnumber.dat;"// > //FILESEXTRAPATHS_prepend := "${THISDIR}/files:" // > // > // > //do_bootimg_prepend(){// > // install -d ${ISODIR}// > // install -m 0644 "${THISDIR}/files/sektionnumber.dat > ${ISODIR}/sektionnumber.dat// > // install -d ${HDDDIR}// > // install -m 0644 "${THISDIR}/files/sektionnumber.dat > ${HDDDIR}/sektionnumber.dat// > //} > > /but it is not recognized > > any suggestions ? > BR Lars > > > -- > > Best Regards > Lars Larsen > > F.Poulsen Engineering Aps > Tjørnager 16 > 4330 Hvalsø > Denmark > +45 29802784 > www.visionweeding.com > > > -- Best Regards Lars Larsen F.Poulsen Engineering Aps Tjørnager 16 4330 Hvalsø Denmark +45 29802784 www.visionweeding.com --------------060608060805040106070908 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit

I manage to solve it, with a not so elegant solution
I any one has an "authorized" solution please let me know

in my local .conf I have

INHERIT += "rootfsdebugfiles"


ROOTFS_DEBUG_FILES += "\
${TOPDIR}/[path to file]/sektionnumber.dat ${ISODIR}/sektionnumber.dat; \
${TOPDIR}/[path to file]/sektionnumber.dat ${HDDDIR}/sektionnumber.dat; \
"

-Lars

On 2016-10-26 15:22, Lars Larsen wrote:
Hello yocto world

I have a recipe that produce an ISO image and a hddimg image.
I need to add a file to the boot media root, alongside rootfs.img and intrd  - so it is NOT a part of the rootfs


inspired by bootimg.bbclass, I tried to add the following recipe to my build


DESCRIPTION = "Provide a sektionnumber.dat file on bootmedia (ISO and hdd)"

LICENSE = "CLOSED"
BRANCH ?= "develop"
SRC_URI ="file://sektionnumber.dat;"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"


do_bootimg_prepend(){
    install -d ${ISODIR}
    install -m 0644 "${THISDIR}/files/sektionnumber.dat ${ISODIR}/sektionnumber.dat
      install -d ${HDDDIR}
   install -m 0644 "${THISDIR}/files/sektionnumber.dat ${HDDDIR}/sektionnumber.dat
}

but it is not recognized

any suggestions ?
BR Lars


-- 

Best Regards
Lars Larsen 

F.Poulsen Engineering Aps
Tjørnager 16
4330 Hvalsø
Denmark
+45 29802784
www.visionweeding.com




-- 

Best Regards
Lars Larsen 

F.Poulsen Engineering Aps
Tjørnager 16
4330 Hvalsø
Denmark
+45 29802784
www.visionweeding.com

--------------060608060805040106070908--