summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools')
-rw-r--r--meta-openstack/recipes-devtools/erlang/erlang-native_R15B.bb26
-rw-r--r--meta-openstack/recipes-devtools/erlang/erlang.inc16
-rw-r--r--meta-openstack/recipes-devtools/erlang/erlang_R15B.bb57
3 files changed, 99 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/erlang/erlang-native_R15B.bb b/meta-openstack/recipes-devtools/erlang/erlang-native_R15B.bb
new file mode 100644
index 0000000..d448e62
--- /dev/null
+++ b/meta-openstack/recipes-devtools/erlang/erlang-native_R15B.bb
@@ -0,0 +1,26 @@
1include erlang.inc
2
3inherit native
4
5PR = "r1"
6
7# EXTRA_OEMAKE = 'OTP_SMALL_BUILD=true'
8EXTRA_OECONF = '--without-ssl'
9
10do_configure() {
11 TARGET=${HOST_SYS} \
12 ac_cv_prog_javac_ver_1_2=no \
13 ac_cv_prog_javac_ver_1_5=no \
14 oe_runconf
15}
16
17do_compile_prepend() {
18 export TARGET=${HOST_SYS}
19}
20
21do_install_prepend() {
22 export TARGET=${HOST_SYS}
23}
24
25SRC_URI[md5sum] = "dd6c2a4807551b4a8a536067bde31d73"
26SRC_URI[sha256sum] = "5bc34fc34fc890f84bae7ff1f7c81fbec2c9aa28a0ef51a57d7a8192204d8aa2"
diff --git a/meta-openstack/recipes-devtools/erlang/erlang.inc b/meta-openstack/recipes-devtools/erlang/erlang.inc
new file mode 100644
index 0000000..e4aad1c
--- /dev/null
+++ b/meta-openstack/recipes-devtools/erlang/erlang.inc
@@ -0,0 +1,16 @@
1DESCRIPTION = "A dynamic programming language and runtime environment, \
2with built-in support for concurrency, distribution and fault tolerance"
3SECTION = "devel/erlang"
4DEPENDS = "ncurses"
5PRIORITY = "optional"
6LICENSE = "ErlPL-1.1"
7LIC_FILES_CHKSUM = "file://EPLICENCE;md5=09f9063ea35bc5bd124df2fda1d9d2c7"
8
9UPSTREAM_VERSION = "${@bb.data.getVar('PV', d, 1).replace('.', '-')}"
10
11SRC_URI = "http://erlang.org/download/otp_src_${UPSTREAM_VERSION}.tar.gz"
12S = "${WORKDIR}/otp_src_${UPSTREAM_VERSION}"
13
14PARALLEL_MAKE = ""
15
16inherit autotools
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"