mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <post@lespocky.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v3] image_tgz: Make label optional
Date: Mon, 26 May 2014 09:13:25 +0200	[thread overview]
Message-ID: <da91d12e9b9b07a676536b610f768c8a@idefix.lespocky.dyndns.org> (raw)
In-Reply-To: <843b581c30123e166a3aadbd0bbfcb6e@idefix.lespocky.dyndns.org>

Hello, 

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.

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-05-26  7:13 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 [this message]
2014-06-02  9:17       ` Michael Olbrich
  -- 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=da91d12e9b9b07a676536b610f768c8a@idefix.lespocky.dyndns.org \
    --to=post@lespocky.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