summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/erlang/erlang_R15B.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/erlang/erlang_R15B.bb')
-rw-r--r--meta-openstack/recipes-devtools/erlang/erlang_R15B.bb57
1 files changed, 57 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/erlang/erlang_R15B.bb b/meta-openstack/recipes-devtools/erlang/erlang_R15B.bb
new file mode 100644
index 0000000..bb9448a
--- /dev/null
+++ b/meta-openstack/recipes-devtools/erlang/erlang_R15B.bb
@@ -0,0 +1,57 @@
1include erlang.inc
2DEPENDS += "erlang-native openssl"
3
4PR = "r3"
5
6TARGET_CC_ARCH += "${LDFLAGS}"
7
8EXTRA_OEMAKE = "BUILD_CC='${BUILD_CC}'"
9
10EXTRA_OECONF = "--with-ssl=${STAGING_DIR_HOST}${layout_exec_prefix}"
11
12EXTRA_OECONF_append_arm = " --disable-smp-support --disable-hipe"
13EXTRA_OECONF_append_armeb = " --disable-smp-support --disable-hipe"
14EXTRA_OECONF_append_mipsel = " --disable-smp-support --disable-hipe"
15EXTRA_OECONF_append_sh3 = " --disable-smp-support --disable-hipe"
16EXTRA_OECONF_append_sh4 = " --disable-smp-support --disable-hipe"
17
18NATIVE_BIN = "${TMPDIR}/work/erlang-native-${PV}-${PR}/otp_src_${UPSTREAM_VERSION}/bin"
19
20do_configure() {
21
22 cd ${S}/erts; autoreconf; cd -
23
24 . ${CONFIG_SITE}
25
26 ac_cv_prog_javac_ver_1_2=no \
27 ac_cv_prog_javac_ver_1_5=no \
28 SHLIB_LD='${CC}' \
29 oe_runconf
30
31 sed -i -e 's|$(ERL_TOP)/bin/dialyzer|${NATIVE_BIN}/dialyzer --output_plt $@ -pa $(ERL_TOP)/lib/kernel/ebin -pa $(ERL_TOP)/lib/stdlib/ebin|' lib/dialyzer/src/Makefile
32}
33
34do_compile() {
35 TARGET=${TARGET_SYS} \
36 PATH=${NATIVE_BIN}:$PATH \
37 oe_runmake noboot
38}
39
40do_install() {
41 TARGET=${TARGET_SYS} \
42 PATH=${NATIVE_BIN}:$PATH \
43 oe_runmake 'INSTALL_PREFIX=${D}' install
44 for f in erl start
45 do sed -i -e 's:ROOTDIR=.*:ROOTDIR=/usr/lib/erlang:' \
46 ${D}/usr/lib/erlang/erts-*/bin/$f ${D}/usr/lib/erlang/bin/$f
47 done
48}
49
50PACKAGES =+ "${PN}-libs-dbg ${PN}-libs"
51
52FILES_${PN}-staticdev += "${libdir}/*/*/*/*.a ${libdir}/*/*/*/*/*.a ${libdir}/*/*/*/*/*/*.a "
53
54FILES_${PN}-libs-dbg += " ${libdir}/erlang/*/.debug ${libdir}/erlang/*/*/.debug ${libdir}/erlang/*/*/*/.debug ${libdir}/erlang/*/*/*/*/.debug ${libdir}/erlang/*/*/*/*/*/.debug "
55
56SRC_URI[md5sum] = "dd6c2a4807551b4a8a536067bde31d73"
57SRC_URI[sha256sum] = "5bc34fc34fc890f84bae7ff1f7c81fbec2c9aa28a0ef51a57d7a8192204d8aa2"