All of lore.kernel.org
 help / color / mirror / Atom feed
* help needed: Need pass variable to autotools .configure
@ 2013-11-04  3:06 Nelson, Sam
  2013-11-04  3:52 ` Denys Dmytriyenko
  2013-11-04  5:47 ` Siddharth Heroor
  0 siblings, 2 replies; 3+ messages in thread
From: Nelson, Sam @ 2013-11-04  3:06 UTC (permalink / raw)
  To: meta-arago@arago-project.org; +Cc: Ring, Chris

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

Currently , my recipe inherits autotools.
I would like update recipe to pass an environment variable define like the following when executing ./configure command.
VAR_NAME=<dir_name>

Appreciate help on how this can be achieved in the recipe.
With regards,
Sam

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: help needed: Need pass variable to autotools .configure
  2013-11-04  3:06 help needed: Need pass variable to autotools .configure Nelson, Sam
@ 2013-11-04  3:52 ` Denys Dmytriyenko
  2013-11-04  5:47 ` Siddharth Heroor
  1 sibling, 0 replies; 3+ messages in thread
From: Denys Dmytriyenko @ 2013-11-04  3:52 UTC (permalink / raw)
  To: Nelson, Sam; +Cc: meta-arago@arago-project.org, Ring, Chris

On Mon, Nov 04, 2013 at 03:06:28AM +0000, Nelson, Sam wrote:
> Currently , my recipe inherits autotools.

> I would like update recipe to pass an environment variable define like the 
> following when executing ./configure command.

> VAR_NAME=<dir_name>
> 
> Appreciate help on how this can be achieved in the recipe.

Sam,

To pass something to a ./configure script, you need EXTRA_OECONF:

EXTRA_OECONF += "VAR_NAME=<dir_name>"

Similarly, to pass something to a Makefile, you need EXTRA_OEMAKE:

EXTRA_OEMAKE += "VAR_NAME=<dir_name>"

-- 
Denys


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: help needed: Need pass variable to autotools .configure
  2013-11-04  3:06 help needed: Need pass variable to autotools .configure Nelson, Sam
  2013-11-04  3:52 ` Denys Dmytriyenko
@ 2013-11-04  5:47 ` Siddharth Heroor
  1 sibling, 0 replies; 3+ messages in thread
From: Siddharth Heroor @ 2013-11-04  5:47 UTC (permalink / raw)
  To: Nelson, Sam, meta-arago@arago-project.org; +Cc: Ring, Chris

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

Hi Sam,
On 11/4/2013 8:36 AM, Nelson, Sam wrote:
>
> Currently , my recipe inherits autotools.
>
> I would like update recipe to pass an environment variable define like 
> the following when executing ./configure command.
>
> VAR_NAME=<dir_name>
>

You could use EXTRA_OECONF to pass extra variables to configure. 
Something like

VAR_NAME = "${S}/foo/bar"
EXTRA_OECONF += "${VAR_NAME}"

> Appreciate help on how this can be achieved in the recipe.
>
> With regards,
>
> Sam
>
>
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-04  5:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-04  3:06 help needed: Need pass variable to autotools .configure Nelson, Sam
2013-11-04  3:52 ` Denys Dmytriyenko
2013-11-04  5:47 ` Siddharth Heroor

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.