All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Burton, Ross" <ross.burton@intel.com>
To: S.Jaritz@esa-grimma.de
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: how to configure the build packages of a makefile based libary
Date: Thu, 28 Apr 2016 17:16:00 +0100	[thread overview]
Message-ID: <CAJTo0LasFQc_JpTncGnmww=wa6TgCd2FGPb9rf84MDgEnCyhQA@mail.gmail.com> (raw)
In-Reply-To: <OF93501CEC.24CA3D84-ONC1257FA3.00576A53-C1257FA3.0058CC3A@esa-grimma.de>

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

On 28 April 2016 at 17:09, <S.Jaritz@esa-grimma.de> wrote:

> EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS}
> -I${S}/include' 'BUILDDIR=${S}' 'DESTDIR=${D}'"
>

Neater to pass DESTDIR via do_install, so remove DESTDIR from here.

However you want to tell it where PREFIX is, and that goes into the build
files, so add PREFIX=${prefix}.  This will put the install into the right
directory (/usr) instead of the default (/usr/local).


> inherit autotools-brokensep
>

You're not using autotools so don't do this.


> do_compile() {
>         oe_runmake all 'CC=${CC}'
> }
>
> do_install() {
>         oe_runmake install 'DESTDIR=${D}'
> }
>


> FILES_${PN} += "/user/local"


The workaround didn't work as you put "user" instead of "usr", but by
passing PREFIX you can remove this line as pulling all of /usr/local into
PN would break packaging.

Ross

[-- Attachment #2: Type: text/html, Size: 2272 bytes --]

  reply	other threads:[~2016-04-28 16:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-28  9:50 how to configure the build packages of a makefile based libary S.Jaritz
2016-04-28 10:51 ` Burton, Ross
2016-04-28 12:09   ` S.Jaritz
2016-04-28 12:44     ` Burton, Ross
2016-04-28 15:25       ` Fred Ollinger
2016-04-28 15:46         ` Burton, Ross
2016-04-28 16:09           ` Antwort: " S.Jaritz
2016-04-28 16:16             ` Burton, Ross [this message]
2016-04-28 16:16             ` Fred Ollinger
2016-04-28 16:18             ` YUKATHARSANI JEYACHANDRA
2016-04-28 16:25               ` Burton, Ross
2016-04-29  7:54                 ` Antwort: " S.Jaritz
2016-04-29  8:59                   ` Burton, Ross
2016-04-29  9:59                     ` Antwort: Re: " S.Jaritz
2016-04-29 11:11                       ` Burton, Ross
2016-04-29 14:01                         ` SIVA SUBRAMANIAN.P
2016-04-29 14:17                           ` Burton, Ross
2016-04-28 10:52 ` SIVA SUBRAMANIAN.P

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='CAJTo0LasFQc_JpTncGnmww=wa6TgCd2FGPb9rf84MDgEnCyhQA@mail.gmail.com' \
    --to=ross.burton@intel.com \
    --cc=S.Jaritz@esa-grimma.de \
    --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.