소스 검색

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 년 전
부모
커밋
d9a9f66505
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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