소스 검색

swupdate: depend on libubootenv when selected

Use standalone libubootenv when CONFIG_UBOOT_NEWAPI is selected,
otherwise stick to u-boot-fw-utils.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Tested-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Diego Rondini 6 년 전
부모
커밋
fedd2230f6
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      recipes-support/swupdate/swupdate.inc

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

@@ -74,7 +74,10 @@ python () {
 
     if 'CONFIG_UBOOT=y\n' in features:
         depends = d.getVar('DEPENDS', False)
-        d.setVar('DEPENDS', depends + ' u-boot-fw-utils')
+        if 'CONFIG_UBOOT_NEWAPI=y\n' in features:
+            d.setVar('DEPENDS', depends + ' libubootenv')
+        else:
+            d.setVar('DEPENDS', depends + ' u-boot-fw-utils')
 
     if 'CONFIG_DOWNLOAD=y\n' in features or 'CONFIG_SURICATTA=y\n' in features:
         depends = d.getVar('DEPENDS', False)