summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/Config.in.host1
-rw-r--r--package/gptfdisk/Config.in.host11
-rw-r--r--package/gptfdisk/gptfdisk.mk11
3 files changed, 23 insertions, 0 deletions
diff --git a/package/Config.in.host b/package/Config.in.host
index ce1b6bcad8..d757316c18 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -12,6 +12,7 @@ menu "Host utilities"
source "package/genext2fs/Config.in.host"
source "package/genimage/Config.in.host"
source "package/genpart/Config.in.host"
+ source "package/gptfdisk/Config.in.host"
source "package/imx-usb-loader/Config.in.host"
source "package/jq/Config.in.host"
source "package/lpc3250loader/Config.in.host"
diff --git a/package/gptfdisk/Config.in.host b/package/gptfdisk/Config.in.host
new file mode 100644
index 0000000000..fb7c682d08
--- /dev/null
+++ b/package/gptfdisk/Config.in.host
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_HOST_GPTFDISK
+ bool "host gptfdisk"
+ select BR2_PACKAGE_HOST_UTIL_LINUX
+ help
+ GPT fdisk (consisting of the gdisk and sgdisk programs) is a
+ text-mode partitioning tool that works on Globally Unique
+ Identifier (GUID) Partition Table (GPT) disks, rather than
+ on the more common (through 2010) Master Boot Record (MBR)
+ partition tables.
+
+ http://www.rodsbooks.com/gdisk/
diff --git a/package/gptfdisk/gptfdisk.mk b/package/gptfdisk/gptfdisk.mk
index abfddfb978..274591c7d4 100644
--- a/package/gptfdisk/gptfdisk.mk
+++ b/package/gptfdisk/gptfdisk.mk
@@ -46,4 +46,15 @@ define GPTFDISK_INSTALL_TARGET_CMDS
done
endef
+HOST_GPTFDISK_DEPENDENCIES = host-util-linux host-popt
+
+define HOST_GPTFDISK_BUILD_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) sgdisk
+endef
+
+define HOST_GPTFDISK_INSTALL_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/sgdisk $(HOST_DIR)/usr/sbin/sgdisk
+endef
+
$(eval $(generic-package))
+$(eval $(host-generic-package))
OpenPOWER on IntegriCloud