mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
gdisk: rename to gptfdisk
In order to match the new upstream name, rename the gdisk package to gptfdisk. We add the relevant legacy configuration options to ensure a smooth transition for users. [Peter: fixup Config.in indentation] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
committed by
Peter Korsgaard
parent
7cbb30115b
commit
29b83f0527
36
package/gptfdisk/Config.in
Normal file
36
package/gptfdisk/Config.in
Normal file
@@ -0,0 +1,36 @@
|
||||
config BR2_PACKAGE_GPTFDISK
|
||||
bool "gptfdisk"
|
||||
depends on BR2_LARGEFILE
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_WCHAR # 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/
|
||||
|
||||
config BR2_PACKAGE_GPTFDISK_GDISK
|
||||
bool "interactive gdisk"
|
||||
depends on BR2_PACKAGE_GPTFDISK
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
help
|
||||
Install the interactive GUID partition table (GPT) manipulator
|
||||
/usr/sbin/gdisk which is modelled after and quite similar in use
|
||||
to the traditional MBR based fdisk tool.
|
||||
|
||||
config BR2_PACKAGE_GPTFDISK_SGDISK
|
||||
bool "command line sgdisk"
|
||||
depends on BR2_PACKAGE_GPTFDISK
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
select BR2_PACKAGE_POPT
|
||||
help
|
||||
Install the command-line GUID partition table (GPT) manipulator
|
||||
/usr/sbin/sgdisk which is named after the traditional MBR based
|
||||
sfdisk tool albeit with an entirely different option syntax.
|
||||
|
||||
comment "gptfdisk requires a toolchain with LARGEFILE/WCHAR/C++ support enabled"
|
||||
depends on !(BR2_LARGEFILE && BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR)
|
||||
43
package/gptfdisk/gptfdisk-001-no-utf16.patch
Normal file
43
package/gptfdisk/gptfdisk-001-no-utf16.patch
Normal file
@@ -0,0 +1,43 @@
|
||||
[PATCH] Disable UTF16 support
|
||||
|
||||
libicu is quite large, and unicode partition names are uncommon.
|
||||
|
||||
Signed-off-by: Justin Maggard <jmaggard10@gmail.com>
|
||||
---
|
||||
diff -ur gdisk-0.8.5/Makefile gptfdisk-0.8.5/Makefile
|
||||
--- gdisk-0.8.5/Makefile 2012-05-30 08:38:43.000000000 -0700
|
||||
+++ gptfdisk-0.8.5/Makefile 2012-06-05 11:38:23.710597974 -0700
|
||||
@@ -1,8 +1,8 @@
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
CFLAGS+=-D_FILE_OFFSET_BITS=64
|
||||
-CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16
|
||||
-#CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64
|
||||
+#CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16
|
||||
+CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64
|
||||
LDFLAGS+=
|
||||
LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix
|
||||
MBR_LIBS=support diskio diskio-unix basicmbr mbrpart
|
||||
@@ -14,16 +14,16 @@
|
||||
all: cgdisk gdisk sgdisk fixparts
|
||||
|
||||
gdisk: $(LIB_OBJS) gdisk.o gpttext.o
|
||||
-# $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -luuid -o gdisk
|
||||
- $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -licuio -licuuc -luuid -o gdisk
|
||||
+ $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -luuid -o gdisk
|
||||
+# $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -licuio -licuuc -luuid -o gdisk
|
||||
|
||||
cgdisk: $(LIB_OBJS) cgdisk.o gptcurses.o
|
||||
-# $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -luuid -lncurses -o cgdisk
|
||||
- $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -licuio -licuuc -luuid -lncurses -o cgdisk
|
||||
+ $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -luuid -lncurses -o cgdisk
|
||||
+# $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -licuio -licuuc -luuid -lncurses -o cgdisk
|
||||
|
||||
sgdisk: $(LIB_OBJS) sgdisk.o gptcl.o
|
||||
-# $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -luuid -lpopt -o sgdisk
|
||||
- $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -licuio -licuuc -luuid -lpopt -o sgdisk
|
||||
+ $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -luuid -lpopt -o sgdisk
|
||||
+# $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -licuio -licuuc -luuid -lpopt -o sgdisk
|
||||
|
||||
fixparts: $(MBR_LIB_OBJS) fixparts.o
|
||||
$(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixparts
|
||||
38
package/gptfdisk/gptfdisk.mk
Normal file
38
package/gptfdisk/gptfdisk.mk
Normal file
@@ -0,0 +1,38 @@
|
||||
#############################################################
|
||||
#
|
||||
# gptfdisk
|
||||
#
|
||||
#############################################################
|
||||
|
||||
GPTFDISK_VERSION = 0.8.6
|
||||
GPTFDISK_SITE = http://downloads.sourceforge.net/sourceforge/gptfdisk
|
||||
|
||||
GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_GDISK) += gdisk
|
||||
GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_SGDISK) += sgdisk
|
||||
|
||||
ifneq ($(GPTFDISK_TARGETS_y),)
|
||||
|
||||
GPTFDISK_DEPENDENCIES += util-linux
|
||||
ifeq ($(BR2_PACKAGE_GPTFDISK_SGDISK),y)
|
||||
GPTFDISK_DEPENDENCIES += popt
|
||||
endif
|
||||
|
||||
|
||||
define GPTFDISK_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" \
|
||||
-C $(@D) $(GPTFDISK_TARGETS_y)
|
||||
endef
|
||||
|
||||
define GPTFDISK_INSTALL_TARGET_CMDS
|
||||
for i in $(GPTFDISK_TARGETS_y); do \
|
||||
$(INSTALL) -D $(@D)/$$i $(TARGET_DIR)/usr/sbin/; \
|
||||
done
|
||||
endef
|
||||
|
||||
define GPTFDISK_UNINSTALL_TARGET_CMDS
|
||||
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,$(GPTFDISK_TARGETS_y))
|
||||
endef
|
||||
|
||||
endif
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user