mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v2 1/2] dtc: Seperate path and filename of dts
Date: Wed, 11 Jun 2014 08:29:55 +0200	[thread overview]
Message-ID: <20140611062955.GM4904@pengutronix.de> (raw)
In-Reply-To: <20140516064516.GA25124@omega>

Hi,

I've rewritten the patch taking these issues into account.
I'll merge it after the release.

On Fri, May 16, 2014 at 08:45:19AM +0200, Alexander Aring wrote:
> I detected a new issue with this patch.
> 
> 
> First:
> 
> Before it was possible to have something like:
> 
> PTXCONF_DTC_OFTREE_DTS="/bar/foo/foobar.dts /foo/bar/barfoo.dts"
> 
> These files have a different basename. With your patch the basename must
> be one unique basename. I mean okay, we could drop this and force the
> ptxdist users that all dts files need to be under one location.
> 
> or
> 
> we make a for-each to search all directories of DTS_PATH, then we could
> configure something like that:
> 
> DTC_OFTREE_DTS_PATHS="/bar/foo /foo/bar"
> DTC_OFTREE_DTS="foobar.dts barfoo.dts"

I've used ':' as a separater for the path.

> Second:
> 
> We should write some migrate sed pattern for
> "scripts/migrate/migrate_ptx". I think this becomes a little bit
> complicated, if you like I can try to help you there. ;)

Doing this correctly in sed seems rather complex:
- don't do anything if DTC_OFTREE_DTS_PATHS is already set
- move all directories to DTC_OFTREE_DTS_PATHS
- make them unique

Instead I've done this backwards compatible: Don't add DTC_OFTREE_DTS_PATHS
if the filename starts with '/'.

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

  reply	other threads:[~2014-06-11  6:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-15  9:10 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
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 [this message]
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=20140611062955.GM4904@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