summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-extended
diff options
context:
space:
mode:
authorVu Tran <vu.tran@windriver.com>2014-06-05 15:44:41 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-06-09 09:26:53 -0400
commit1a21748b3cd2476e99f7326efebc3aaa87772ed8 (patch)
treee13af1d3145c3f8dd08769960d817136126abc14 /meta-openstack/recipes-extended
parentb06874fd38f3c2e77fb6f1950f4f70a3dbeca418 (diff)
downloadmeta-cloud-services-1a21748b3cd2476e99f7326efebc3aaa87772ed8.tar.gz
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 <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-extended')
-rw-r--r--meta-openstack/recipes-extended/gptfdsik/files/fix-host-contamination.patch18
-rw-r--r--meta-openstack/recipes-extended/gptfdsik/gptfdisk_0.8.10.bb32
2 files changed, 50 insertions, 0 deletions
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 @@
1fix host contamination
2
3Make sure that the Makefile uses gcc cross
4compiler from build system, but not use
5the host gcc
6
7Signed-off-by: Vu Tran <vu.tran@windriver.com>
8
9diff --git a/Makefile b/Makefile
10index 1ae018e..4c23b45 100644
11--- a/Makefile
12+++ b/Makefile
13@@ -1,5 +1,3 @@
14-CC=gcc
15-CXX=g++
16 CFLAGS+=-D_FILE_OFFSET_BITS=64
17 #CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16
18 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 @@
1SUMMARY = "Disk partitioning tool for GUID Partition Table"
2DESCRIPTION = "\
3 GPT fdisk is a disk partitioning tool loosely modeled on \
4 Linux fdisk, but used for modifying GUID Partition Table (GPT) disks. \
5 The related FixParts utility fixes some common problems on Master Boot \
6 Record (MBR) disks."
7SECTION = "console/utils"
8LICENSE = "GPLv2"
9LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
10
11PR = "r0"
12
13SRC_URI = "http://sourceforge.net/projects/${PN}/files/${PN}/${PV}/${PN}-${PV}.tar.gz \
14 file://fix-host-contamination.patch \
15"
16
17SRC_URI[md5sum] = "9cf4246c181c324bdbd553fe9b348373"
18SRC_URI[sha256sum] = "73e64151203ae0c347c488358e71ca582bb7fb7f0d66df86b71c42050390eb9b"
19
20do_install () {
21 install -d ${D}${base_sbindir}
22 install -m 755 ${S}/gdisk ${D}${base_sbindir}/
23 install -m 755 ${S}/cgdisk ${D}${base_sbindir}/
24 install -m 755 ${S}/sgdisk ${D}${base_sbindir}/
25 install -m 755 ${S}/fixparts ${D}${base_sbindir}/
26}
27
28FILES_${PN} += "${base_sbindir}/gdisk \
29 ${base_sbindir}/cgdisk \
30 ${base_sbindir}/sgdisk \
31 ${base_sbindir}/fixparts \
32"