diff options
author | Malte Starostik <m-starostik@versanet.de> | 2011-02-27 16:19:45 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-04-25 23:28:59 +0200 |
commit | 7d5a772f63660b84c7c755518fd91cb1a7c7d0c7 (patch) | |
tree | 83a941e304e206e83954beb33cccaf42d2dc0582 /package/gdisk/gdisk.mk | |
parent | 648d33d6142329151ca1ef61b50649477574c684 (diff) | |
download | buildroot-novena-7d5a772f63660b84c7c755518fd91cb1a7c7d0c7.tar.gz buildroot-novena-7d5a772f63660b84c7c755518fd91cb1a7c7d0c7.zip |
New package: gdisk
This includes two separately configurable parition manipulation
utilities: gdsik and sgdisk are to GPT disks what fdisk and sfdisk are
in MBR land.
[Peter: patch source, fix typos, fix partial build, pass correct flags]
Signed-off-by: Malte Starostik <m-starostik@versanet.de>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/gdisk/gdisk.mk')
-rw-r--r-- | package/gdisk/gdisk.mk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/package/gdisk/gdisk.mk b/package/gdisk/gdisk.mk new file mode 100644 index 000000000..ef4627d8e --- /dev/null +++ b/package/gdisk/gdisk.mk @@ -0,0 +1,39 @@ +############################################################# +# +# gdisk +# +############################################################# + +GDISK_VERSION = 0.6.14 +GDISK_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/gptfdisk +GDISK_SOURCE = gdisk-$(GDISK_VERSION).tgz + +GDISK_TARGETS_$(BR2_PACKAGE_GDISK_GDISK) += gdisk +GDISK_TARGETS_$(BR2_PACKAGE_GDISK_SGDISK) += sgdisk + +ifneq ($(GDISK_TARGETS_y),) + +GDISK_DEPENDENCIES += e2fsprogs +ifeq ($(BR2_PACKAGE_GDISK_SGDISK),y) + GDISK_DEPENDENCIES += popt +endif + + +define GDISK_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" \ + -C $(@D) $(GDISK_TARGETS_y) +endef + +define GDISK_INSTALL_TARGET_CMDS + for i in $(GDISK_TARGETS_y); do \ + $(INSTALL) -D $(@D)/$$i $(TARGET_DIR)/usr/sbin/; \ + done +endef + +define GDISK_UNINSTALL_TARGET_CMDS + rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,$(GDISK_TARGETS_y)) +endef + +endif + +$(eval $(call GENTARGETS,package,gdisk)) |