Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] pkg-generic.mk question
@ 2013-01-10 18:58 ANDY KENNEDY
  2013-01-11 12:53 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: ANDY KENNEDY @ 2013-01-10 18:58 UTC (permalink / raw)
  To: buildroot

All,

Consider the following (from pkg-generic.mk):

define inner-generic-package

<snip>

$(2)_TYPE                       =  $(5)

<snip>

$(2)_DIR        =  $$(BUILD_DIR)/$$($(2)_BASE_NAME)


The <PKG>_TYPE is set to "$" (5), however, the <PKG>_DIR is set to
"$$" (BUILD_DIR)/$$<the rest>.  My question is why the need for the $$
for BUILD_DIR?  I THINK I understand the reason for the
$$($(2)_BASE_NAME):  The eval will boil this down to $(<PKG>_BASE_NAME),
which will the get POST interrupted AFTER <PKG>_BASE_NAME is assigned
LATER, right?

But, I'm confused as to the reason for the $$(BUILD_DIR).  It is
assigned well before the reading of this file and is essentially a
static variable.

NOTE:  This question is for my own edification and learning.  I'm not
questioning the ability/logic of this Makefile as I know it works
perfectly.  I'm attempting to do something similar in a Makefile of my
own.

Thanks in advance for the information!

Andy

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

end of thread, other threads:[~2013-01-11 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-10 18:58 [Buildroot] pkg-generic.mk question ANDY KENNEDY
2013-01-11 12:53 ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox