diff options
Diffstat (limited to 'meta/recipes-extended/mdadm/mdadm_3.3.1.bb')
-rw-r--r-- | meta/recipes-extended/mdadm/mdadm_3.3.1.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/mdadm_3.3.1.bb b/meta/recipes-extended/mdadm/mdadm_3.3.1.bb new file mode 100644 index 0000000000..59bc587ef9 --- /dev/null +++ b/meta/recipes-extended/mdadm/mdadm_3.3.1.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | SUMMARY = "Tool for managing software RAID under Linux" | ||
2 | HOMEPAGE = "http://www.kernel.org/pub/linux/utils/raid/mdadm/" | ||
3 | |||
4 | # Some files are GPLv2+ while others are GPLv2. | ||
5 | LICENSE = "GPLv2 & GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
7 | file://mdmon.c;beginline=4;endline=18;md5=af7d8444d9c4d3e5c7caac0d9d34039d \ | ||
8 | file://mdadm.h;beglinlne=4;endline=22;md5=462bc9936ac0d3da110191a3f9994161" | ||
9 | |||
10 | |||
11 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ | ||
12 | file://mdadm-3.2.2_fix_for_x32.patch \ | ||
13 | file://gcc-4.9.patch \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[md5sum] = "4227d48de62dfb217c92fa0c54171bbe" | ||
17 | SRC_URI[sha256sum] = "d8c74112cfd77bdc1dbc1291fe8d9243c76d91bfa276fcb95f2a75ca7717ab02" | ||
18 | |||
19 | CFLAGS += "-fno-strict-aliasing" | ||
20 | |||
21 | inherit autotools-brokensep | ||
22 | |||
23 | # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header | ||
24 | do_configure_prepend () { | ||
25 | sed -i -e '/.*ansidecl.h.*/d' ${S}/sha1.h | ||
26 | } | ||
27 | |||
28 | EXTRA_OEMAKE = "CHECK_RUN_DIR=0" | ||
29 | # PPC64 and MIPS64 uses long long for u64 in the kernel, but powerpc's asm/types.h | ||
30 | # prevents 64-bit userland from seeing this definition, instead defaulting | ||
31 | # to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get | ||
32 | # int-ll64.h included | ||
33 | EXTRA_OEMAKE_append_powerpc64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__' | ||
34 | EXTRA_OEMAKE_append_mips64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__' | ||
35 | |||
36 | do_compile() { | ||
37 | oe_runmake | ||
38 | } | ||
39 | |||
40 | do_install() { | ||
41 | export STRIP="" | ||
42 | autotools_do_install | ||
43 | } | ||
44 | |||
45 | FILES_${PN} += "${base_libdir}/udev/rules.d/*.rules" | ||