From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Wcvqc-0003Gr-H6 for ptxdist@pengutronix.de; Wed, 23 Apr 2014 14:00:19 +0200 Received: by mail-la0-f47.google.com with SMTP id pn19so674154lab.34 for ; Wed, 23 Apr 2014 05:00:12 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20140423065229.GB3804@pengutronix.de> References: <1398183719-30466-1-git-send-email-jon@ringle.org> <20140423065229.GB3804@pengutronix.de> Date: Wed, 23 Apr 2014 08:00:12 -0400 Message-ID: From: Jon Ringle Subject: Re: [ptxdist] [PATCH v3] image_tgz: Make label optional Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" On Wed, Apr 23, 2014 at 2:52 AM, Michael Olbrich wrote: > On Tue, Apr 22, 2014 at 12:21:59PM -0400, jon@ringle.org wrote: >> From: Jon Ringle >> >> Signed-off-by: Jon Ringle > > Thanks, applied with a followup patch. It still looks good here. Can you > check that I didn't break anything for you? Tested with and w/o label and working as expected. Thanks! > > Michael > >> --- >> platforms/image_tgz.in | 14 ++++++++++++-- >> rules/post/image_tgz.make | 8 ++++++-- >> 2 files changed, 18 insertions(+), 4 deletions(-) >> >> diff --git a/platforms/image_tgz.in b/platforms/image_tgz.in >> index 17b0aed..8cda6f6 100644 >> --- a/platforms/image_tgz.in >> +++ b/platforms/image_tgz.in >> @@ -1,8 +1,18 @@ >> ## SECTION=image >> >> -config IMAGE_TGZ >> +menuconfig IMAGE_TGZ >> bool >> - prompt "Generate images/root.tgz" >> + prompt "Generate images/root.tgz " >> help >> Build a tar.gz archive of the root filesystem, containing the >> right owner/group and access permissions. >> + >> +if IMAGE_TGZ >> +config IMAGE_TGZ_LABEL >> + string >> + prompt "label" >> + default "${PTXCONF_PROJECT_VENDOR}-${PTXCONF_PROJECT}${PTXCONF_PROJECT_VERSION}" >> + help >> + This string gets expanded to form the label. An empty string produces no label. >> + >> +endif >> diff --git a/rules/post/image_tgz.make b/rules/post/image_tgz.make >> index 019077d..bbf3edf 100644 >> --- a/rules/post/image_tgz.make >> +++ b/rules/post/image_tgz.make >> @@ -11,11 +11,15 @@ >> SEL_ROOTFS-$(PTXCONF_IMAGE_TGZ) += $(IMAGEDIR)/root.tgz >> >> ifdef PTXCONF_IMAGE_TGZ >> +ifneq ($(call remove_quotes,$(PTXCONF_IMAGE_TGZ_LABEL)),) >> +IMAGE_TGZ_LABEL="--label $(PTXCONF_IMAGE_TGZ_LABEL)" >> +endif >> + >> $(IMAGEDIR)/root.tgz: $(STATEDIR)/image_working_dir >> - @echo -n "Creating root.tgz from working dir with label..." >> + @echo -n "Creating root.tgz from working dir: ${IMAGE_TGZ_LABEL} " >> @cd $(image/work_dir); \ >> (awk -F: $(DOPERMISSIONS) $(image/permissions) && \ >> - ( echo -n "tar --label '${PTXCONF_PROJECT_VENDOR}-${PTXCONF_PROJECT}${PTXCONF_PROJECT_VERSION}' -zcf "; \ >> + ( echo -n "tar ${IMAGE_TGZ_LABEL} -zcf "; \ >> echo -n "$@ ." ) \ >> ) | $(FAKEROOT) -- >> @echo "done." >> -- >> 1.8.5.4 >> >> >> -- >> ptxdist mailing list >> ptxdist@pengutronix.de >> > > -- > 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 -- ptxdist mailing list ptxdist@pengutronix.de