Browse Source

Revert "Use find_cfgs() helper from cml1.bbclass"

This reverts commit dbd6d4ac5ed9d3d1e5533500145451d11cb5c743.

find_cfg() is factorized in later version

Signed-off-by: Stefano Babic <sbabic@denx.de>
Stefano Babic 5 năm trước cách đây
mục cha
commit
920dacd1ee
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      recipes-support/swupdate/swupdate.inc

+ 4 - 0
recipes-support/swupdate/swupdate.inc

@@ -86,6 +86,10 @@ EXTRA_OEMAKE += " O=${B} HOSTCC="${BUILD_CC}" HOSTCXX="${BUILD_CXX}" LD="${CC}"
 
 DEPENDS += "kern-tools-native"
 
+# returns all the elements from the src uri that are .cfg files
+def find_cfgs(d):
+    return [s for s in src_patches(d, True) if s.endswith('.cfg')]
+
 python () {
     import re