hello, 
Thanks but it don't work ,

I will prepare a test rule & a test package for monday in order to test the different solutions & I will publish the log

regards
marc




2014-06-20 15:37 GMT+02:00 Michael Olbrich <m.olbrich@pengutronix.de>:
Hi,

On Fri, Jun 20, 2014 at 03:05:43PM +0200, marc doz wrote:
> I’m writing a recipe & I’m using install_copy & install_tree function in my
> recipe foo.make
>
> $(call install_copy, foo, 0, 0, 0755, $(FOO_DIR)/AAA/foo$1.bar,
> /AAA/foo$1.bar)
>
> $(call install_tree, foo, 0, 0, 0755, $(FOO_DIR)/AAA/, /AAA/)
>
>
> I would like to avoid the substitution of $1 because the file name that I
> would like embed is really foo$1.bar  & ptxdist try to copy foo.bar with
> install_copy & install_tree..
>
>
> Do you know  a way for escaping the $ ?
>
>
> $$ don’t seem work

$(call install_copy, foo, 0, 0, 0755, -, /AAA/foo$$1.bar)

should work, at least with the current ptxdist. I'm not sure about
ptxdist-2012.03.0, that's rather old. What error do you get? Maybe you need
to escape it again (for make or shell).

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