瀏覽代碼

Fix build for swupdate_git

Changes in SWUpdate do not require to build specific target. Fix build
for git version.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Stefano Babic 8 年之前
父節點
當前提交
78c2e7c6df
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      recipes-support/swupdate/swupdate.inc

+ 7 - 3
recipes-support/swupdate/swupdate.inc

@@ -89,9 +89,13 @@ do_configure () {
 
 
 do_compile() {
 do_compile() {
   unset LDFLAGS
   unset LDFLAGS
-  oe_runmake swupdate_unstripped progress_unstripped
-  cp swupdate_unstripped swupdate
-  cp progress_unstripped progress
+  if [ "${@bb.utils.vercmp_string('${PV}', 'git')}" = "1"  ]; then
+    oe_runmake
+  else
+    oe_runmake swupdate_unstripped progress_unstripped
+    cp swupdate_unstripped swupdate
+    cp progress_unstripped progress
+  fi
 
 
 }
 }