瀏覽代碼

package/rauc: add option to enable gpt support

GPT support was disabled by default before.

Signed-off-by: Marcus Hoffmann <marcus.hoffmann@othermo.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Marcus Hoffmann 3 年之前
父節點
當前提交
c2d3033ddc
共有 2 個文件被更改,包括 13 次插入0 次删除
  1. 6 0
      package/rauc/Config.in
  2. 7 0
      package/rauc/rauc.mk

+ 6 - 0
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

+ 7 - 0
package/rauc/rauc.mk

@@ -31,6 +31,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