This reverts commit dbd6d4ac5ed9d3d1e5533500145451d11cb5c743. find_cfg() is factorized in later version Signed-off-by: Stefano Babic <sbabic@denx.de>
@@ -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