mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
liburing: Do not build examples on risc/musl
it needs ucontext for building examples and its not implemented yet for riscv Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
7b7a8412a4
commit
d982e00d59
|
|
@ -0,0 +1,30 @@
|
|||
From 3ee2f1e231bde18a99f86da747a9b8feca3c179d Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 17 Feb 2021 19:18:16 -0800
|
||||
Subject: [PATCH] do not build examples
|
||||
|
||||
examples need ucontext and some architectures on musl do not have it
|
||||
implemented e.g. riscv
|
||||
|
||||
Upstream-Status: Inappropriate [Arch-Specific]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Makefile | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 948e004..8b63024 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -11,7 +11,6 @@ default: all
|
||||
all:
|
||||
@$(MAKE) -C src
|
||||
@$(MAKE) -C test
|
||||
- @$(MAKE) -C examples
|
||||
|
||||
partcheck: all
|
||||
@echo "make partcheck => TODO add tests with out kernel support"
|
||||
--
|
||||
2.30.1
|
||||
|
||||
|
|
@ -12,6 +12,9 @@ LIC_FILES_CHKSUM = "file://README;beginline=41;endline=44;md5=d51b5805e2a675685e
|
|||
SRC_URI = "git://github.com/axboe/liburing.git;branch=master;protocol=https \
|
||||
file://0001-test-Fix-build-on-32bit-architectures-with-6bit-time.patch \
|
||||
"
|
||||
SRC_URI_append_libc-musl_riscv64 = " file://0001-do-not-build-examples.patch "
|
||||
SRC_URI_append_libc-musl_riscv32 = " file://0001-do-not-build-examples.patch "
|
||||
|
||||
SRCREV = "45f0735219a615ae848033c47c7e2d85d101d43e"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
|
@ -20,7 +23,9 @@ XCFLAGS = "-pthread"
|
|||
XCFLAGS_append_libc-musl = " -lucontext"
|
||||
|
||||
EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'LDFLAGS=${LDFLAGS}' 'XCFLAGS=${XCFLAGS}' 'BUILDDIR=${S}'"
|
||||
|
||||
do_configure() {
|
||||
${S}/configure --prefix=${prefix}
|
||||
}
|
||||
do_install () {
|
||||
oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user