[yocto] Creating a file within a recipe

Burton, Ross ross.burton at intel.com
Fri Jun 28 12:53:34 PDT 2019


The bash parser does have some bugs, and I think you just found one.
Probably easier to have a template on disk in SRC_URI, and sed in the
value you want.

Ross

On Fri, 28 Jun 2019 at 19:35, Aaron Biver <aaron.biver at gmail.com> wrote:
>
> I'd like to be able to create a file using the cat command in a recipe.  The sub-goal is to have the file created somewhere I can actually find it:
>
> do_create_tebf0808() {
> cat > tebf0808.bif <<EOF
> all:
> {
>     ${LATEST_TEBF0808_FW}
> }
> EOF
> }
>
> This fails at the "EOF" line:
> ERROR: ParseError at ...firmware.bb:43: unparsed line: 'EOF'                                        | ETA:  --:--:--
>
> Maybe sed would work better?
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list