Explorar el Código

swupdate: Disable partition algorith when LTO is enabled

-flto-partition=none is needed when building with -flto
Use += to add libconfig to depends, so it does not overwrite the
programmatically added dependencies

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj hace 5 años
padre
commit
02192c7fed
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      recipes-support/swupdate/swupdate.inc

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

@@ -1,7 +1,7 @@
 SUMMARY="Image updater for Yocto projects"
 DESCRIPTION = "Application for automatic software update from USB Pen"
 SECTION="swupdate"
-DEPENDS = "libconfig"
+DEPENDS += "libconfig"
 
 # SWUpdate licensing is described in the following pages:
 # https://sbabic.github.io/swupdate/licensing.html
@@ -30,6 +30,8 @@ SRC_URI = "git://github.com/sbabic/swupdate.git;protocol=https \
     file://90-start-progress \
 "
 
+LTOEXTRA += "-flto-partition=none"
+
 PACKAGES =+ " \
     ${PN}-client \
     ${PN}-lua \