mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: Guillermo Rodriguez Garcia <guille.rodriguez@gmail.com>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] TF-A FIP format and U-Boot
Date: Fri, 1 Oct 2021 14:27:03 +0200	[thread overview]
Message-ID: <20211001122703.ne7cannfgjoi6tsv@pengutronix.de> (raw)
In-Reply-To: <CABDcavbjpQu9ToNOCSh7hJp3+XLjx3V4C_C=+P-dBTg9iH_EjQ@mail.gmail.com>

On Thu, Sep 30, 2021 at 02:10:15PM +0200, Guillermo Rodriguez Garcia wrote:
> > So for such a use-case, the files must be installed in the install stage.
> > Note, that you cannot install the files into platform/images:
> > 'ptxdist clean root' will remove that but only cleans the targetinstall
> > stages, so afterwards the files will be missing.
> >
> > So I suggest the files are installed to
> > $(<PKG>_PKGDIR)/usr/lib/<something>/
> > The install stage will then copy the files to sysroot-target and the next
> > package can find the files there.
> >
> 
> Uhm, the files themselves are not needed in the target fs; they are only
> required as intermediate files to build the FIP image.
> Should I still copy them to sysroot-target?

Yes. sysroot-target is not the contents of the image yet, but only the
staging area where target packages install their files. This is done
because in the install stage PTXdist uses the package's build system to
install files, which sometimes installs many more files that you maybe
don't want in your target. In the targetinstall stage you have to pick
them from sysroot-target into the image explicitly with the
$(call install_*) macros.

 - Roland

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


      parent reply	other threads:[~2021-10-01 12:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CABDcava0P+Due6kCja2emEX5hR+V8fHbCuJJK2dFJRJTnwoJiQ@mail.gmail.com>
2021-09-30 10:55 ` Michael Olbrich
     [not found]   ` <CABDcavbjpQu9ToNOCSh7hJp3+XLjx3V4C_C=+P-dBTg9iH_EjQ@mail.gmail.com>
2021-10-01 12:27     ` Roland Hieber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211001122703.ne7cannfgjoi6tsv@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=guille.rodriguez@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox