* 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 <[email protected]>
---
 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

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to