Ver código fonte

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 anos atrás
pai
commit
4df50bd2ec
1 arquivos alterados com 7 adições e 3 exclusões
  1. 7 3
      recipes-support/swupdate/swupdate.inc

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

@@ -89,9 +89,13 @@ do_configure () {
 
 do_compile() {
   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
 
 }