All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] tisdk-image: change to regex matching
@ 2014-02-05 20:04 Chase Maupin
  2014-02-05 20:04 ` [PATCH 2/6] arago-source-ipk: Add Keystone sourceipk settings Chase Maupin
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Chase Maupin @ 2014-02-05 20:04 UTC (permalink / raw)
  To: meta-arago

* As described in the comments of the tisdk-image.bbclass you can now
  specify "or" matches for devices that do not have a consistent naming
  for their DTB files using the regex matching.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
---
 meta-arago-distro/classes/tisdk-image.bbclass |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/meta-arago-distro/classes/tisdk-image.bbclass b/meta-arago-distro/classes/tisdk-image.bbclass
index c365eaa..59e467a 100644
--- a/meta-arago-distro/classes/tisdk-image.bbclass
+++ b/meta-arago-distro/classes/tisdk-image.bbclass
@@ -532,12 +532,17 @@ do_sdk_image () {
     fi
 
     # Copy the DTB files if they exist.
-    # NOTE: For simplicity remove the uImage- prefix on the dtb files.  Get just the symlink
-    #       files for a cleaner name.  Use the DTB_FILTER variable to allow finding the
-    #       dtb files for only that MACHINE type
+    # NOTE: For simplicity remove the uImage- prefix on the dtb files.  Get
+    # just the symlink files for a cleaner name.  Use the DTB_FILTER variable
+    # to allow finding the dtb files for only that MACHINE type
+    # NOTE: The DTB_FILTER variable is interpreted as a regex which means
+    #       that for cases where the DTB files to be selected do not have
+    #       a common naming you can use something line filter1\|filter2 which
+    #       will be interpreted as an "or" and allow matching both expressions.
+    #       The \| is important for delimiting these values.
     if [ "${DTB_FILTER}" != "unknown" ]
     then
-        for f in `find ${DEPLOY_DIR_IMAGE} -type l -name "*${DTB_FILTER}*.dtb"`
+        for f in `find ${DEPLOY_DIR_IMAGE} -type l -regex ".*\(${DTB_FILTER}\).*\.dtb"`
         do
             dtb_file=`basename $f | sed s/.Image-//`
             cp $f ${prebuilt_dir}/${dtb_file}
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-02-06 15:28 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 20:04 [PATCH 1/6] tisdk-image: change to regex matching Chase Maupin
2014-02-05 20:04 ` [PATCH 2/6] arago-source-ipk: Add Keystone sourceipk settings Chase Maupin
2014-02-05 20:04 ` [PATCH 3/6] tisdk-amsdk-sdk-host: remove pinmux for keystone devices Chase Maupin
2014-02-06  0:04   ` Denys Dmytriyenko
2014-02-06  0:15     ` Nelson, Sam
2014-02-05 20:04 ` [PATCH 4/6] arago-base-tisdk-image: add keystone support Chase Maupin
2014-02-06  0:00   ` Denys Dmytriyenko
2014-02-06 12:45     ` Maupin, Chase
2014-02-06 15:18       ` Denys Dmytriyenko
2014-02-06 15:24         ` Maupin, Chase
2014-02-06 15:28           ` Denys Dmytriyenko
2014-02-05 20:04 ` [PATCH 5/6] arago-core-tisdk-image: add support for keystone devices Chase Maupin
2014-02-05 18:47   ` Denys Dmytriyenko
2014-02-05 18:58     ` Maupin, Chase
2014-02-05 20:04 ` [PATCH 6/6] mmc-utils: add mmc-utils for working with eMMC devices Chase Maupin
2014-02-05 18:43   ` Denys Dmytriyenko
2014-02-05 18:58     ` Maupin, Chase

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.