diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-06-05 15:44:41 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-06-09 09:26:53 -0400 |
| commit | 1a21748b3cd2476e99f7326efebc3aaa87772ed8 (patch) | |
| tree | e13af1d3145c3f8dd08769960d817136126abc14 /meta-openstack/recipes-extended | |
| parent | b06874fd38f3c2e77fb6f1950f4f70a3dbeca418 (diff) | |
| download | meta-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.patch | 18 | ||||
| -rw-r--r-- | meta-openstack/recipes-extended/gptfdsik/gptfdisk_0.8.10.bb | 32 |
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 @@ | |||
| 1 | fix host contamination | ||
| 2 | |||
| 3 | Make sure that the Makefile uses gcc cross | ||
| 4 | compiler from build system, but not use | ||
| 5 | the host gcc | ||
| 6 | |||
| 7 | Signed-off-by: Vu Tran <vu.tran@windriver.com> | ||
| 8 | |||
| 9 | diff --git a/Makefile b/Makefile | ||
| 10 | index 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 @@ | |||
| 1 | SUMMARY = "Disk partitioning tool for GUID Partition Table" | ||
| 2 | DESCRIPTION = "\ | ||
| 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." | ||
| 7 | SECTION = "console/utils" | ||
| 8 | LICENSE = "GPLv2" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" | ||
| 10 | |||
| 11 | PR = "r0" | ||
| 12 | |||
| 13 | SRC_URI = "http://sourceforge.net/projects/${PN}/files/${PN}/${PV}/${PN}-${PV}.tar.gz \ | ||
| 14 | file://fix-host-contamination.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | SRC_URI[md5sum] = "9cf4246c181c324bdbd553fe9b348373" | ||
| 18 | SRC_URI[sha256sum] = "73e64151203ae0c347c488358e71ca582bb7fb7f0d66df86b71c42050390eb9b" | ||
| 19 | |||
| 20 | do_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 | |||
| 28 | FILES_${PN} += "${base_sbindir}/gdisk \ | ||
| 29 | ${base_sbindir}/cgdisk \ | ||
| 30 | ${base_sbindir}/sgdisk \ | ||
| 31 | ${base_sbindir}/fixparts \ | ||
| 32 | " | ||
