All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Schwarz <eas@sw-optimization.com>
To: Jerry Lian <jerry.lian@gmail.com>
Cc: Yocto list discussion <yocto@yoctoproject.org>
Subject: Re: Yocto SDK: how to deploy application with step "make install" to target?
Date: Fri, 01 Dec 2017 16:37:34 +0100	[thread overview]
Message-ID: <6bf472a2260f6ba66c3b759b7f30a0b2@sw-optimization.com> (raw)
In-Reply-To: <CAE0QtjNKpPWUq---XQY4i2Z7ovsE1HH9xMND=kuY6YCPm0rMnw@mail.gmail.com>

Am 01.12.2017 16:15, schrieb Jerry Lian:

> Thanks Eric for your explanation!
> * (I know I can build the app within yocto build, but sometimes I 
> prefer the SDK method outside yocto build.)
> 
> * So just copy manually? I thought there are some tricks  that I don't 
> know.
> 

Acutally that's how we are doing it ...

> Now I have follow-up question:
> * It seems that "make install" will copy different files to different 
> folders
> * Can I do like these:?
> --- make
> --- copy (via scp)
> --- make install
> * Or it needs to be:
> --- make
> --- make install

Install the cross-compiled stuff on your local disc e.g. into a 
"transfer" directory. Then copy it to the target.
On the target 'cp -Rfa <transfer-dir>/* /' should do it if the basic 
directory structure fits to your rootFS.

> --- copy (via scp) -----then how do I know: what files to go which 
> folder?
> --- can you explain:
> "... you may supply a custom install prefix directory to configure." 
> --- how?
> 

There is IMHO no standardized variable available. Just look into the 
configure script how the variable is named and if it is actually 
available at all.

> Thanks!
> 
> On Fri, Dec 1, 2017 at 9:34 AM, Eric Schwarz <eas@sw-optimization.com> 
> wrote:
> Am 01.12.2017 15:16, schrieb Eric Schwarz:
> 
> Hi Jerry,
> 
> Am 01.12.2017 15:07, schrieb Jerry Lian:
> 
> I am new to embedded linux, and some concepts confuse me:
> * I have downloaded an Autotools-based application to run on my board.
> * If I boot the board with original image/original SDK, I normally 
> build/install it with steps:
> ----- ./bootstrap
> ----- ./configure
> ----- make
> ----- make install
> You may build your app within yocto build process so your application 
> is contained in your rootFS directly.
> 
> * Now if I boot the board with yocto image without SDK, how can I 
> deploy the application?
> ---- (surely I do "bitbake -c populate_sdk some-image", and source the 
> environment!)
> 
> ----- ./bootstrap (Yocto SDK on host)
> ----- ./configure (Yocto SDK on host)
> ----- make         (Yocto SDK on host)
> ----- make install (???)
> If you build it w/ the SDK outside of the yocto build process just 
> install it to a local directory and copy all the stuff w/ e.g. scp onto 
> your boards rootFS.
  ... you may supply a custom install prefix directory to configure.

>> * How to do "make install"? (I want to install it on target, but how?)
>> 
>> Thanks!
> 
> Cheers
> Eric


  reply	other threads:[~2017-12-01 15:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-01 14:07 Yocto SDK: how to deploy application with step "make install" to target? Jerry Lian
2017-12-01 14:16 ` Eric Schwarz
2017-12-01 14:34   ` Eric Schwarz
2017-12-01 15:15     ` Jerry Lian
2017-12-01 15:37       ` Eric Schwarz [this message]
2017-12-01 15:58         ` Jerry Lian
2017-12-01 16:30           ` Eric Schwarz
2017-12-01 16:56             ` Jerry Lian
2017-12-03 14:17       ` Philip Balister
2017-12-04 21:38         ` Jerry Lian

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=6bf472a2260f6ba66c3b759b7f30a0b2@sw-optimization.com \
    --to=eas@sw-optimization.com \
    --cc=jerry.lian@gmail.com \
    --cc=yocto@yoctoproject.org \
    /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 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.