diff mbox series

package/rauc: add option to enable gpt support

Message ID 20220217142120.576220-1-marcus.hoffmann@othermo.de
State Accepted
Headers show
Series package/rauc: add option to enable gpt support | expand

Commit Message

Marcus Hoffmann Feb. 17, 2022, 2:21 p.m. UTC
GPT support was disabled by default before.

Signed-off-by: Marcus Hoffmann <marcus.hoffmann@othermo.de>
---
 package/rauc/Config.in | 6 ++++++
 package/rauc/rauc.mk   | 7 +++++++
 2 files changed, 13 insertions(+)

Comments

Peter Korsgaard May 10, 2022, 8:26 p.m. UTC | #1
>>>>> "Marcus" == Marcus Hoffmann <marcus.hoffmann@othermo.de> writes:

 > GPT support was disabled by default before.
 > Signed-off-by: Marcus Hoffmann <marcus.hoffmann@othermo.de>

Committed, thanks.
diff mbox series

Patch

diff --git a/package/rauc/Config.in b/package/rauc/Config.in
index b4f7b81948..2ea51f5bad 100644
--- a/package/rauc/Config.in
+++ b/package/rauc/Config.in
@@ -25,6 +25,12 @@  config BR2_PACKAGE_RAUC_DBUS
 	  This option enables support for controlling rauc through
 	  D-Bus.
 
+config BR2_PACKAGE_RAUC_GPT
+	bool "GPT support"
+	select BR2_PACKAGE_UTIL_LINUX_LIBFDISK
+	help
+	    This option enables support for GPT partition tables.
+
 config BR2_PACKAGE_RAUC_NETWORK
 	bool "network support"
 	select BR2_PACKAGE_LIBCURL
diff --git a/package/rauc/rauc.mk b/package/rauc/rauc.mk
index 39f5255812..0a631c4092 100644
--- a/package/rauc/rauc.mk
+++ b/package/rauc/rauc.mk
@@ -19,6 +19,13 @@  else
 RAUC_CONF_OPTS += --disable-service
 endif
 
+ifeq ($(BR2_PACKAGE_RAUC_GPT),y)
+RAUC_CONF_OPTS += --enable-gpt
+RAUC_DEPENDENCIES += util-linux-libs
+else
+RAUC_CONF_OPTS += --disable-gpt
+endif
+
 ifeq ($(BR2_PACKAGE_RAUC_NETWORK),y)
 RAUC_CONF_OPTS += --enable-network
 RAUC_DEPENDENCIES += libcurl