From 9e1b30e53b2439cbafd596ae4669ed5b74879987 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Thu, 5 Jun 2014 15:44:41 -0400 Subject: introduce gptfdisk.bb GPT fdisk (gptfdisk) is a disk partitioning tool loosely modeled on Linux fdisk, but used for modifying GUID Partition Table (GPT) disks. When prepare disk device for ceph with ceph-disk, it's required sgdisk util from gptfdisk to perform disk partition. So add gptfdisk.bb. Signed-off-by: Vu Tran --- .../gptfdsik/files/fix-host-contamination.patch | 18 ++++++++++++ .../recipes-extended/gptfdsik/gptfdisk_0.8.10.bb | 32 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 meta-openstack/recipes-extended/gptfdsik/files/fix-host-contamination.patch create mode 100644 meta-openstack/recipes-extended/gptfdsik/gptfdisk_0.8.10.bb (limited to 'meta-openstack') diff --git a/meta-openstack/recipes-extended/gptfdsik/files/fix-host-contamination.patch b/meta-openstack/recipes-extended/gptfdsik/files/fix-host-contamination.patch new file mode 100644 index 0000000..8939cc1 --- /dev/null +++ b/meta-openstack/recipes-extended/gptfdsik/files/fix-host-contamination.patch @@ -0,0 +1,18 @@ +fix host contamination + +Make sure that the Makefile uses gcc cross +compiler from build system, but not use +the host gcc + +Signed-off-by: Vu Tran + +diff --git a/Makefile b/Makefile +index 1ae018e..4c23b45 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,5 +1,3 @@ +-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 diff --git a/meta-openstack/recipes-extended/gptfdsik/gptfdisk_0.8.10.bb b/meta-openstack/recipes-extended/gptfdsik/gptfdisk_0.8.10.bb new file mode 100644 index 0000000..57d437d --- /dev/null +++ b/meta-openstack/recipes-extended/gptfdsik/gptfdisk_0.8.10.bb @@ -0,0 +1,32 @@ +SUMMARY = "Disk partitioning tool for GUID Partition Table" +DESCRIPTION = "\ + GPT fdisk is a disk partitioning tool loosely modeled on \ + Linux fdisk, but used for modifying GUID Partition Table (GPT) disks. \ + The related FixParts utility fixes some common problems on Master Boot \ + Record (MBR) disks." +SECTION = "console/utils" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" + +PR = "r0" + +SRC_URI = "http://sourceforge.net/projects/${PN}/files/${PN}/${PV}/${PN}-${PV}.tar.gz \ + file://fix-host-contamination.patch \ +" + +SRC_URI[md5sum] = "9cf4246c181c324bdbd553fe9b348373" +SRC_URI[sha256sum] = "73e64151203ae0c347c488358e71ca582bb7fb7f0d66df86b71c42050390eb9b" + +do_install () { + install -d ${D}${base_sbindir} + install -m 755 ${S}/gdisk ${D}${base_sbindir}/ + install -m 755 ${S}/cgdisk ${D}${base_sbindir}/ + install -m 755 ${S}/sgdisk ${D}${base_sbindir}/ + install -m 755 ${S}/fixparts ${D}${base_sbindir}/ +} + +FILES_${PN} += "${base_sbindir}/gdisk \ + ${base_sbindir}/cgdisk \ + ${base_sbindir}/sgdisk \ + ${base_sbindir}/fixparts \ +" -- cgit v1.2.3-54-g00ecf