mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Using CMake/CPack install info in targetinstall step
Date: Thu, 9 Apr 2015 10:50:50 +0200	[thread overview]
Message-ID: <20150409085050.GH21218@pengutronix.de> (raw)
In-Reply-To: <E0CB834DD9BF7546A8B709A96E2ECAC301551235CA73@Exchange.scs-ad.scs.ch>

On Wed, Apr 08, 2015 at 11:08:54AM +0200, Dörfler Florian wrote:
> I wonder if I can simplify the install step for a CMake based target package
> and need a sanity check and a pointer to some info:
> 
> If I have understood, then the flow of the compiled packet's output is the following:
> 1) the "make install" step of the build of a packet copies the relevant files
> binaries/headers to the platform-<xyz>/sysroot-target/ directory

rNnot quite: In pkg.install "make install" installs to
platform-<xyz>/packages/<pkg>/ and int pkg.install.post everything there is
copied to sysroot-target/ (with some path fixups).

> 2)  $(call install_copy, ...) and friends copy the files needed in the
> root FS to platform-<xyz>/root and create a packet
> 
> I could like to try and get rid of one of these lists of file to copy: If
> I use CMake to build the packet in step 1), I have already described the
> installation directions pretty detailed. I wonder if I can reuse that
> info for step 2).
> 
> The way I would go about it is this: I put a little more info into the
> CMakeLists.txt file and use CPack to create the .ipkg packet. Then I
> smuggle this package into the install flow.

No need for that. platform-<xyz>/packages/<pkg>/ contains all the files
installed by "make install", so just use install_tree in targetinstall:

	@$(call install_tree, <pkg>, 0, 0, -, /)


Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2015-04-09  8:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08  9:08 Dörfler Florian
2015-04-09  8:50 ` Michael Olbrich [this message]
2015-04-09  9:36   ` Dörfler Florian
2015-04-09  9:46     ` Michael Olbrich
2015-06-02 11:42   ` Dörfler Florian

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=20150409085050.GH21218@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --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