Skip to contentSkip to conversation

how to add files to boot media hddimg/ISO

DISCUSSION Lars Larsen 1 participant 2 messages Oct 26, 2016

lore
Share & tools
lore
#0 lore raw

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

Signature · 9 lines
Best Regards
Lars Larsen

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

Re: how to add files to boot media hddimg/ISO SOLVED

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

Quoted 44 lines · Lars Larsen

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

Signature · 9 lines
Best Regards
Lars Larsen

F.Poulsen Engineering Aps
Tjørnager 16
4330 Hvalsø
Denmark
+45 29802784
www.visionweeding.com
Signature · 9 lines
Best Regards
Lars Larsen

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