diff mbox series

[meta-swupdate] Append Lua to DEPENDS by default

Message ID 00b7e7e1-2640-4fec-be61-6e84f6f158f9@gmail.com
State Rejected
Delegated to: Stefano Babic
Headers show
Series [meta-swupdate] Append Lua to DEPENDS by default | expand

Commit Message

Matt Wood March 1, 2024, 7:12 p.m. UTC
This addresses the case where make savedefconfig is used to export a
defconfig.  Because CONFIG_LUA has a default value of y it is not set
in the defconfig file and a build error occurs.

Signed-off-by: Matt Wood <matt.wood@microchip.com>
---
 recipes-support/swupdate/swupdate.inc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc
index 188c25c..4c2de8c 100644
--- a/recipes-support/swupdate/swupdate.inc
+++ b/recipes-support/swupdate/swupdate.inc
@@ -93,7 +93,7 @@  B = "${WORKDIR}/build"
 
 EXTRA_OEMAKE += " O=${B} HOSTCC="${BUILD_CC}" HOSTCXX="${BUILD_CXX}" LD="${CC}" DESTDIR="${D}" LIBDIR="${libdir}" V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX} SKIP_STRIP=y"
 
-DEPENDS += "kern-tools-native"
+DEPENDS += "kern-tools-native lua"
 
 python () {
     import re
@@ -154,9 +154,6 @@  python () {
     if 'CONFIG_ARCHIVE=y\n' in features:
         depends += ' libarchive'
 
-    if 'CONFIG_LUA=y\n' in features:
-        depends += ' lua'
-
     if 'CONFIG_UBOOT=y\n' in features:
         depends += ' libubootenv'
         rdepends += ' libubootenv'