From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v3] image_tgz: Make label optional
Date: Mon, 2 Jun 2014 11:17:28 +0200 [thread overview]
Message-ID: <20140602091728.GN26228@pengutronix.de> (raw)
In-Reply-To: <da91d12e9b9b07a676536b610f768c8a@idefix.lespocky.dyndns.org>
On Mon, May 26, 2014 at 09:13:25AM +0200, Alexander Dahl wrote:
> Am 2014-05-21 17:03, schrieb Alexander Dahl:
> > I'm not sure how to fix this, no time anymore today, so I let you know
> > this way.
>
> Though I'm not entirely certain about some things in Makefiles I have a
> solution which works for me:
>
>
> % colordiff -bus ~/src/ptxdist/rules/post/image_tgz.make
> rules/post/image_tgz.make :(
> --- /home/adahl/src/ptxdist/rules/post/image_tgz.make 2014-04-28
> 12:59:13.430666724 +0200
> +++ rules/post/image_tgz.make 2014-05-26 09:00:10.981436285 +0200
> @@ -13,7 +13,7 @@
> ifdef PTXCONF_IMAGE_TGZ
> IMAGE_TGZ_LABEL := $(call remove_quotes,$(PTXCONF_IMAGE_TGZ_LABEL))
> ifneq ($(IMAGE_TGZ_LABEL),)
> -IMAGE_TGZ_LABEL_ARGS="--label '$(IMAGE_TGZ_LABEL)'"
> +IMAGE_TGZ_LABEL_ARGS=--label '$(IMAGE_TGZ_LABEL)'
> endif
>
> $(IMAGEDIR)/root.tgz: $(STATEDIR)/image_working_dir
>
>
> So I removed the quotes when assigning IMAGE_TGZ_LABEL_ARGS because
> later in line 23 ${IMAGE_TGZ_LABEL_ARGS} was expanded to "something"
> which led to
>
> echo -n "tar "--label 'foo bar baz-myproject-2014.03.1'" -zcf ";
>
> which is obviously wrong. With my change this is
>
> echo -n "tar --label 'foo bar baz-myproject-2014.03.1' -zcf ";
>
> But as I said, I'm not sure if this assignement is valid in Makefiles
> and I don't know (yet) what's the difference between $(something) and
> ${something} in a Makefile.
I don't think there is a difference between $(something) and ${something}
in a Makefile. This is the correct fix. I've pushed it.
Thanks,
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
next prev parent reply other threads:[~2014-06-02 9:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-22 16:21 jon
2014-04-23 6:52 ` Michael Olbrich
2014-04-23 12:00 ` Jon Ringle
2014-05-21 15:03 ` Alexander Dahl
2014-05-26 7:13 ` Alexander Dahl
2014-06-02 9:17 ` Michael Olbrich [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-04-17 15:11 jon
2014-04-22 15:58 ` Jon Ringle
2014-04-22 16:08 ` Michael Olbrich
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=20140602091728.GN26228@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox