diff options
Diffstat (limited to 'meta/recipes-core/musl/libucontext_git.bb')
-rw-r--r-- | meta/recipes-core/musl/libucontext_git.bb | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/meta/recipes-core/musl/libucontext_git.bb b/meta/recipes-core/musl/libucontext_git.bb index 0b64867ce0..d8ae8242c5 100644 --- a/meta/recipes-core/musl/libucontext_git.bb +++ b/meta/recipes-core/musl/libucontext_git.bb | |||
@@ -11,7 +11,8 @@ DEPENDS = "" | |||
11 | PV = "1.1+${SRCPV}" | 11 | PV = "1.1+${SRCPV}" |
12 | SRCREV = "335ee864ef6f4a5d4b525453fd9dbfb3507cfecc" | 12 | SRCREV = "335ee864ef6f4a5d4b525453fd9dbfb3507cfecc" |
13 | SRC_URI = "git://github.com/kaniini/libucontext \ | 13 | SRC_URI = "git://github.com/kaniini/libucontext \ |
14 | " | 14 | file://0001-meson-Add-option-to-pass-cpu.patch \ |
15 | " | ||
15 | 16 | ||
16 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
17 | 18 | ||
@@ -49,16 +50,5 @@ def map_kernel_arch(a, d): | |||
49 | return a | 50 | return a |
50 | bb.error("cannot map '%s' to a linux kernel architecture" % a) | 51 | bb.error("cannot map '%s' to a linux kernel architecture" % a) |
51 | 52 | ||
52 | export ARCH = "${@map_kernel_arch(d.getVar('TARGET_ARCH'), d)}" | 53 | EXTRA_OEMESON = "-Dcpu=${@map_kernel_arch(d.getVar('TARGET_ARCH'), d)}" |
53 | 54 | inherit meson | |
54 | CFLAGS += "-Iarch/${ARCH} -Iarch/common" | ||
55 | |||
56 | EXTRA_OEMAKE = "CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}' LIBDIR='${base_libdir}'" | ||
57 | |||
58 | do_compile() { | ||
59 | oe_runmake ARCH=${ARCH} | ||
60 | } | ||
61 | |||
62 | do_install() { | ||
63 | oe_runmake ARCH="${ARCH}" DESTDIR="${D}" install | ||
64 | } | ||