浏览代码

swupdate: fix building 2016.07 version

progress interface has been added in v2016.10-rc1,
so the makefile progress targets are missing in
the previous release and its building is broken.
Fix it.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Anatolij Gustschin 9 年之前
父节点
当前提交
cad5e257f3
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      recipes-support/swupdate/swupdate.inc

+ 6 - 2
recipes-support/swupdate/swupdate.inc

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