diff options
Diffstat (limited to 'meta/recipes-core/musl/bsd-headers.bb')
-rw-r--r-- | meta/recipes-core/musl/bsd-headers.bb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/bsd-headers.bb b/meta/recipes-core/musl/bsd-headers.bb new file mode 100644 index 0000000000..c9945d45eb --- /dev/null +++ b/meta/recipes-core/musl/bsd-headers.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | # Copyright (C) 2016 Khem Raj <raj.khem@gmail.com> | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | SUMMARY = "BSD compatible headers" | ||
5 | LICENSE = "BSD-3-Clause & BSD-2-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://sys-queue.h;beginline=1;endline=32;md5=c6352b0f03bb448600456547d334b56f" | ||
7 | SECTION = "devel" | ||
8 | |||
9 | SRC_URI = "file://sys-queue.h \ | ||
10 | file://sys-tree.h \ | ||
11 | file://sys-cdefs.h \ | ||
12 | " | ||
13 | do_configure[noexec] = "1" | ||
14 | do_compile[noexec] = "1" | ||
15 | |||
16 | INHIBIT_DEFAULT_DEPS = "1" | ||
17 | |||
18 | S = "${WORKDIR}" | ||
19 | |||
20 | do_install() { | ||
21 | install -Dm 0644 ${S}/sys-queue.h ${D}${includedir}/sys/queue.h | ||
22 | install -Dm 0644 ${S}/sys-tree.h ${D}${includedir}/sys/tree.h | ||
23 | install -Dm 0644 ${S}/sys-cdefs.h ${D}${includedir}/sys/cdefs.h | ||
24 | } | ||
25 | # | ||
26 | # We will skip parsing for non-musl systems | ||
27 | # | ||
28 | |||
29 | COMPATIBLE_HOST = ".*-musl.*" | ||
30 | RDEPENDS_${PN}-dev = "" | ||
31 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" | ||