소스 검색

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 5 년 전
부모
커밋
02192c7fed
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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 \