From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v2 2/2] barebox_mlo: use images/barebox-*-mlo.img as images
Date: Wed, 11 Jun 2014 08:30:30 +0200 [thread overview]
Message-ID: <20140611063030.GN4904@pengutronix.de> (raw)
In-Reply-To: <1400145009-4662-2-git-send-email-t.gamez@phytec.de>
On Thu, May 15, 2014 at 11:10:09AM +0200, Teresa Gámez wrote:
> New barebox versions may create multiple MLO images.
> Adapted barebox_mlo rule to handle this.
>
> Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Thanks, applied.
Michael
> ---
> Changes in v2:
> - Reworked second if statement
> - Added tick marks
>
> rules/barebox_mlo.make | 15 ++++++++++++---
> 1 files changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/rules/barebox_mlo.make b/rules/barebox_mlo.make
> index 3c53575..f90955c 100644
> --- a/rules/barebox_mlo.make
> +++ b/rules/barebox_mlo.make
> @@ -76,9 +76,18 @@ $(STATEDIR)/barebox_mlo.install:
> $(STATEDIR)/barebox_mlo.targetinstall:
> @$(call targetinfo)
> # #barebox renamed barebox.bin.ift to MLO, so fall back to barebox.bin.ift
> - @ptxd_get_path "$(BAREBOX_MLO_DIR)/MLO" \
> - "$(BAREBOX_MLO_DIR)/barebox.bin.ift" && \
> - install -D -m644 "$${ptxd_reply}" "$(IMAGEDIR)/MLO"
> + @rm -f $(IMAGEDIR)/MLO
> + @for image in `ls $(BAREBOX_MLO_DIR)/images/barebox-*-mlo.img`; do \
> + install -D -m644 $$image $(IMAGEDIR)/`basename $$image`; \
> + if [ ! -e "$(IMAGEDIR)/MLO" ]; then \
> + ln -sf `basename $$image` $(IMAGEDIR)/MLO; \
> + fi; \
> + done
> + @if [ ! -e "$(IMAGEDIR)/MLO" ]; then \
> + ptxd_get_path "$(BAREBOX_MLO_DIR)/MLO" \
> + "$(BAREBOX_MLO_DIR)/barebox.bin.ift" && \
> + install -D -m644 "$${ptxd_reply}" "$(IMAGEDIR)/MLO"; \
> + fi
>
> @$(call touch)
>
> --
> 1.7.0.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
next prev parent reply other threads:[~2014-06-11 6:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-15 9:10 [ptxdist] [PATCH v2 1/2] dtc: Seperate path and filename of dts Teresa Gámez
2014-05-15 9:10 ` [ptxdist] [PATCH v2 2/2] barebox_mlo: use images/barebox-*-mlo.img as images Teresa Gámez
2014-06-11 6:30 ` Michael Olbrich [this message]
2014-05-15 9:38 ` [ptxdist] [PATCH v2 1/2] dtc: Seperate path and filename of dts Alexander Aring
2014-05-16 6:45 ` Alexander Aring
2014-06-11 6:29 ` Michael Olbrich
2014-06-20 7:23 ` Alexander Aring
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=20140611063030.GN4904@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