mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
31
package/gptfdisk/0001-ldlibs.patch
Normal file
31
package/gptfdisk/0001-ldlibs.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
Add $(LDLIBS) support to enable clean static builds (for libintl).
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -Nura gptfdisk-0.8.10.orig/Makefile gptfdisk-0.8.10/Makefile
|
||||
--- gptfdisk-0.8.10.orig/Makefile 2015-05-01 08:45:14.667748141 -0300
|
||||
+++ gptfdisk-0.8.10/Makefile 2015-05-01 08:45:42.685699419 -0300
|
||||
@@ -14,19 +14,19 @@
|
||||
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) -luuid $(LDLIBS) -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 -lncursesw -o cgdisk
|
||||
+ $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -luuid -lncursesw $(LDLIBS) -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) -luuid -lpopt $(LDLIBS) -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
|
||||
+ $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) $(LDLIBS) -o fixparts
|
||||
|
||||
lint: #no pre-reqs
|
||||
lint $(SRCS)
|
||||
47
package/gptfdisk/Config.in
Normal file
47
package/gptfdisk/Config.in
Normal file
@@ -0,0 +1,47 @@
|
||||
comment "gptfdisk needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
|
||||
config BR2_PACKAGE_GPTFDISK
|
||||
bool "gptfdisk"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
select BR2_PACKAGE_GPTFDISK_GDISK if \
|
||||
!(BR2_PACKAGE_GPTFDISK_SGDISK || BR2_PACKAGE_GPTFDISK_CGDISK)
|
||||
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/
|
||||
|
||||
if BR2_PACKAGE_GPTFDISK
|
||||
|
||||
config BR2_PACKAGE_GPTFDISK_GDISK
|
||||
bool "interactive gdisk"
|
||||
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"
|
||||
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.
|
||||
|
||||
config BR2_PACKAGE_GPTFDISK_CGDISK
|
||||
bool "ncurses cgdisk"
|
||||
depends on BR2_USE_WCHAR # ncurses wchar
|
||||
select BR2_PACKAGE_NCURSES
|
||||
select BR2_PACKAGE_NCURSES_WCHAR # needed because of UTF-16
|
||||
help
|
||||
Install the ncurses-based GUID partition table (GPT)
|
||||
manipulator /usr/sbin/cgdisk.
|
||||
|
||||
endif
|
||||
11
package/gptfdisk/Config.in.host
Normal file
11
package/gptfdisk/Config.in.host
Normal file
@@ -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/
|
||||
6
package/gptfdisk/gptfdisk.hash
Normal file
6
package/gptfdisk/gptfdisk.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From http://sourceforge.net/projects/gptfdisk/files/gptfdisk/1.0.4/
|
||||
md5 5ecc3c44913bb6b53d3708d1ac7ac295 gptfdisk-1.0.4.tar.gz
|
||||
sha1 4c2d60bedd4eac1014727e3b126de96966205410 gptfdisk-1.0.4.tar.gz
|
||||
# Locally computed
|
||||
sha256 b663391a6876f19a3cd901d862423a16e2b5ceaa2f4a3b9bb681e64b9c7ba78d gptfdisk-1.0.4.tar.gz
|
||||
sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING
|
||||
55
package/gptfdisk/gptfdisk.mk
Normal file
55
package/gptfdisk/gptfdisk.mk
Normal file
@@ -0,0 +1,55 @@
|
||||
################################################################################
|
||||
#
|
||||
# gptfdisk
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GPTFDISK_VERSION = 1.0.4
|
||||
GPTFDISK_SITE = http://downloads.sourceforge.net/sourceforge/gptfdisk
|
||||
GPTFDISK_LICENSE = GPL-2.0+
|
||||
GPTFDISK_LICENSE_FILES = COPYING
|
||||
|
||||
GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_GDISK) += gdisk
|
||||
GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_SGDISK) += sgdisk
|
||||
GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_CGDISK) += cgdisk
|
||||
|
||||
GPTFDISK_DEPENDENCIES += util-linux
|
||||
ifeq ($(BR2_PACKAGE_GPTFDISK_SGDISK),y)
|
||||
GPTFDISK_DEPENDENCIES += popt
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_GPTFDISK_CGDISK),y)
|
||||
GPTFDISK_DEPENDENCIES += ncurses
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
# gptfdisk dependencies may link against libiconv, so we need to do so
|
||||
# as well when linking statically
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
GPTFDISK_DEPENDENCIES += libiconv
|
||||
GPTFDISK_LDLIBS += -liconv
|
||||
endif
|
||||
endif
|
||||
|
||||
define GPTFDISK_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
||||
LDLIBS='$(GPTFDISK_LDLIBS)' $(GPTFDISK_TARGETS_y)
|
||||
endef
|
||||
|
||||
define GPTFDISK_INSTALL_TARGET_CMDS
|
||||
for i in $(GPTFDISK_TARGETS_y); do \
|
||||
$(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \
|
||||
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)/sbin/sgdisk
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user