summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2019-06-13 08:01:11 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-14 22:48:22 +0100
commitb168b3ac94f2a35eea0bbb82ddd67e466dbfb5ba (patch)
tree55d47230428ce56465571ed182ce110b3af7f36c
parent26780cbde13d1d60932ca0dc01ee688fd7014a38 (diff)
downloadpoky-b168b3ac94f2a35eea0bbb82ddd67e466dbfb5ba.tar.gz
serf: cleanup recipe
* Inherit scons bbclass and use the task definitions from there. * Remove the DEPENDS on python3-scons-native that is already present in scons class. (From OE-Core rev: 1522f09a4dd21fef177d514cb4d37e94d140dd33) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/serf/serf_1.3.9.bb23
1 files changed, 12 insertions, 11 deletions
diff --git a/meta/recipes-support/serf/serf_1.3.9.bb b/meta/recipes-support/serf/serf_1.3.9.bb
index 706c86be47..92cd5ca061 100644
--- a/meta/recipes-support/serf/serf_1.3.9.bb
+++ b/meta/recipes-support/serf/serf_1.3.9.bb
@@ -14,18 +14,19 @@ SRC_URI[sha256sum] = "549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf
14LICENSE = "Apache-2.0" 14LICENSE = "Apache-2.0"
15LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" 15LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
16 16
17DEPENDS = "python3-scons-native openssl apr apr-util util-linux expat" 17inherit scons
18 18
19do_compile() { 19DEPENDS += " openssl apr apr-util util-linux expat"
20 ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} \
21 CC="${CC}" \
22 APR=`which apr-1-config` APU=`which apu-1-config` \
23 CFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" \
24 OPENSSL="${STAGING_EXECPREFIXDIR}"
25}
26 20
27do_install() { 21EXTRA_OESCONS = " \
28 ${STAGING_BINDIR_NATIVE}/scons PREFIX=${D}${prefix} LIBDIR=${D}${libdir} install 22 LIBDIR=${libdir} \
29} 23 --install-sandbox=${D} \
24 CC="${CC}" \
25 CFLAGS="${CFLAGS}" \
26 LINKFLAGS="${LDFLAGS}" \
27 APR=`which apr-1-config` \
28 APU=`which apu-1-config` \
29 OPENSSL="${STAGING_EXECPREFIXDIR}" \
30 "
30 31
31BBCLASSEXTEND = "native" 32BBCLASSEXTEND = "native"