Skip to contentSkip to conversation

package/mender-update-modules: add missing BR2_USE_MMU dependencies

PATCH Applied Thomas Petazzoni via buildroot 1 participant 3 messages Oct 14 – Oct 30

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mender-update-modules: add missing BR2_USE_MMU dependencies

BR2_PACKAGE_MENDER_UPDATE_MODULES_RPM selects BR2_PACKAGE_RPM without replicating its BR2_USE_MMU dependency.

BR2_PACKAGE_MENDER_UPDATE_MODULES_SWU selects BR2_PACKAGE_SWUPDATE without replicating its BR2_USE_MMU dependency.

This commit fixes that by properly propagating the missing dependencies. There is in practice no functional change:
BR2_PACKAGE_MENDER_UPDATE_MODULES depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS and go is only supported on MMU-capable CPU architectures. But since there is no formal relationship between BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS and BR2_USE_MMU, automatic validation cannot infer that BR2_PACKAGE_MENDER_UPDATE_MODULES cannot be selected on !MMU systems.

Fixes a474642fdcd8c69e12126bbe8304479aa855d916 ("package/mender-update-modules: new package")
---
 package/mender-update-modules/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/mender-update-modules/Config.in +4 -0
index 4c60aece14..1fd7384f59 100644
@@ -212,6 +212,7 @@ config BR2_PACKAGE_MENDER_UPDATE_MODULES_RPM
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	depends on BR2_PACKAGE_LUA && !BR2_PACKAGE_LUA_5_1
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_MMU # rpm
 	select BR2_PACKAGE_RPM
 	help
 	  The Rpm Update Module updates software on the device using
@@ -224,6 +225,7 @@ config BR2_PACKAGE_MENDER_UPDATE_MODULES_RPM
 	  https://github.com/mendersoftware/mender-update-modules/tree/master/rpm
 
 comment "rpm needs a toolchain w/ dynamic library, threads and lua >= 5.3"
+	depends on BR2_USE_MMU
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
 		|| !BR2_PACKAGE_LUA || BR2_PACKAGE_LUA_5_1
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
@@ -232,6 +234,7 @@ config BR2_PACKAGE_MENDER_UPDATE_MODULES_SWU
 	bool "swupdate"
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # swupdate
+	depends on BR2_USE_MMU # swupdate
 	select BR2_PACKAGE_JQ # runtime
 	select BR2_PACKAGE_SWUPDATE
 	help
@@ -244,6 +247,7 @@ config BR2_PACKAGE_MENDER_UPDATE_MODULES_SWU
 	  https://github.com/mendersoftware/mender-update-modules/tree/master/swu
 
 comment "swupdate support needs a toolchain w/ dynamic library"
+	depends on BR2_USE_MMU
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on BR2_STATIC_LIBS
 
Signature · 6 lines
2.56.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 15 lines · Thomas Petazzoni via buildroot

BR2_PACKAGE_MENDER_UPDATE_MODULES_RPM selects BR2_PACKAGE_RPM without replicating its BR2_USE_MMU dependency.

BR2_PACKAGE_MENDER_UPDATE_MODULES_SWU selects BR2_PACKAGE_SWUPDATE without replicating its BR2_USE_MMU dependency.

This commit fixes that by properly propagating the missing dependencies. There is in practice no functional change:
BR2_PACKAGE_MENDER_UPDATE_MODULES depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS and go is only supported on MMU-capable CPU architectures. But since there is no formal relationship between BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS and BR2_USE_MMU, automatic validation cannot infer that BR2_PACKAGE_MENDER_UPDATE_MODULES cannot be selected on !MMU systems.

Quoted 2 lines
Fixes a474642fdcd8c69e12126bbe8304479aa855d916 ("package/mender-update-modules: new package")

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Thomas Petazzoni via buildroot

In reply of:

Quoted 15 lines

BR2_PACKAGE_MENDER_UPDATE_MODULES_RPM selects BR2_PACKAGE_RPM without replicating its BR2_USE_MMU dependency.

BR2_PACKAGE_MENDER_UPDATE_MODULES_SWU selects BR2_PACKAGE_SWUPDATE without replicating its BR2_USE_MMU dependency.

This commit fixes that by properly propagating the missing dependencies. There is in practice no functional change:
BR2_PACKAGE_MENDER_UPDATE_MODULES depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS and go is only supported on MMU-capable CPU architectures. But since there is no formal relationship between BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS and BR2_USE_MMU, automatic validation cannot infer that BR2_PACKAGE_MENDER_UPDATE_MODULES cannot be selected on !MMU systems.

Quoted 2 lines
Fixes a474642fdcd8c69e12126bbe8304479aa855d916 ("package/mender-update-modules: new package")

Applied to 2026.08.x. Thanks

Quoted 33 lines
---
 package/mender-update-modules/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/mender-update-modules/Config.in +3 -0
index 4c60aece14..1fd7384f59 100644
@@ -212,6 +212,7 @@ config BR2_PACKAGE_MENDER_UPDATE_MODULES_RPM
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	depends on BR2_PACKAGE_LUA && !BR2_PACKAGE_LUA_5_1
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_MMU # rpm
 	select BR2_PACKAGE_RPM
 	help
 	  The Rpm Update Module updates software on the device using
@@ -224,6 +225,7 @@ config BR2_PACKAGE_MENDER_UPDATE_MODULES_RPM
 	  https://github.com/mendersoftware/mender-update-modules/tree/master/rpm
 
 comment "rpm needs a toolchain w/ dynamic library, threads and lua >= 5.3"
+	depends on BR2_USE_MMU
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
 		|| !BR2_PACKAGE_LUA || BR2_PACKAGE_LUA_5_1
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
@@ -232,6 +234,7 @@ config BR2_PACKAGE_MENDER_UPDATE_MODULES_SWU
 	bool "swupdate"
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # swupdate
+	depends on BR2_USE_MMU # swupdate
 	select BR2_PACKAGE_JQ # runtime
 	select BR2_PACKAGE_SWUPDATE
 	help

package/mender-update-modules/Config.in config BR2_PACKAGE_MENDER_UPDATE_MODULES_SWU · line 253

Quoted 7 lines
package/mender-update-modules/Config.in +1 -0
@@ -244,6 +247,7 @@ config BR2_PACKAGE_MENDER_UPDATE_MODULES_SWU
 	  https://github.com/mendersoftware/mender-update-modules/tree/master/swu
 
 comment "swupdate support needs a toolchain w/ dynamic library"
+	depends on BR2_USE_MMU
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on BR2_STATIC_LIBS
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot