mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] typo in ptxd_make_world_common.make?
@ 2016-09-19 10:11 Alexander Aring
  2016-09-21 13:31 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Aring @ 2016-09-19 10:11 UTC (permalink / raw)
  To: ptxdist


Hi,

I currently try to use some install_copy command with $(FOO_BUILDDIR)
location for testing purpose.

Then I tried a grep on ptxdist rules file to look for an example (I
think this exists somewhere), I did a grep on "BUILD_DIR" which is wrong
and I got some hit at [0].

Should:

pkg_build_dir="$(call ptx/escape,$($(1)_BUILD_DIR))"

not be:

pkg_build_dir="$(call ptx/escape,$($(1)_BUILDDIR))"

and $(1) is the FOO replacement, so far I understood?

- Alex

[0] https://git.platon.pengutronix.de/cgit/ptxdist/tree/rules/post/ptxd_make_world_common.make#n86

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] typo in ptxd_make_world_common.make?
  2016-09-19 10:11 [ptxdist] typo in ptxd_make_world_common.make? Alexander Aring
@ 2016-09-21 13:31 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2016-09-21 13:31 UTC (permalink / raw)
  To: ptxdist

Hi,

On Mon, Sep 19, 2016 at 12:11:04PM +0200, Alexander Aring wrote:
> I currently try to use some install_copy command with $(FOO_BUILDDIR)
> location for testing purpose.
> 
> Then I tried a grep on ptxdist rules file to look for an example (I
> think this exists somewhere), I did a grep on "BUILD_DIR" which is wrong
> and I got some hit at [0].
> 
> Should:
> 
> pkg_build_dir="$(call ptx/escape,$($(1)_BUILD_DIR))"
> 
> not be:
> 
> pkg_build_dir="$(call ptx/escape,$($(1)_BUILDDIR))"
> 
> and $(1) is the FOO replacement, so far I understood?

The whole thing is a bit tricky because some of the logic (foo OOT) is in
the shell code, and that's not available in your makefile.

If you don't build out of tree, then just use FOO_DIR and ignore the rest.
If you want to build out of tree, then you can:

1.
 - set FOO_BUILD_OOT = YES
 - use $(FOO_DIR)-build/
2.
 - set FOO_BUILD_DIR = $(FOO_DIR)-build
 - use $(FOO_BUILD_DIR)

Setting FOO_BUILD_DIR to anything other than FOO_DIR implies OOT.
Not that FOO_BUILD_OOT and FOO_BUILD_DIR follow the same naming theme.

FOO_BUILDDIR is a really old variable that is used the as a fallback for
FOO_BUILD_DIR if set, but should not be used. We should really remove the
handling for this.

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

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

end of thread, other threads:[~2016-09-21 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-19 10:11 [ptxdist] typo in ptxd_make_world_common.make? Alexander Aring
2016-09-21 13:31 ` Michael Olbrich

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