All of lore.kernel.org
 help / color / mirror / Atom feed
* how to add files to boot media hddimg/ISO
@ 2016-10-26 13:22 Lars Larsen
  2016-10-26 14:29 ` how to add files to boot media hddimg/ISO SOLVED Lars Larsen
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Larsen @ 2016-10-26 13:22 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1004 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 1770 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to add files to boot media hddimg/ISO SOLVED
  2016-10-26 13:22 how to add files to boot media hddimg/ISO Lars Larsen
@ 2016-10-26 14:29 ` Lars Larsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Larsen @ 2016-10-26 14:29 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1643 bytes --]



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


[-- Attachment #2: Type: text/html, Size: 3046 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-26 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-26 13:22 how to add files to boot media hddimg/ISO Lars Larsen
2016-10-26 14:29 ` how to add files to boot media hddimg/ISO SOLVED Lars Larsen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.