diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/erlang/erlang_R15B.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/erlang/erlang_R15B.bb | 57 |
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 @@ | |||
| 1 | include erlang.inc | ||
| 2 | DEPENDS += "erlang-native openssl" | ||
| 3 | |||
| 4 | PR = "r3" | ||
| 5 | |||
| 6 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 7 | |||
| 8 | EXTRA_OEMAKE = "BUILD_CC='${BUILD_CC}'" | ||
| 9 | |||
| 10 | EXTRA_OECONF = "--with-ssl=${STAGING_DIR_HOST}${layout_exec_prefix}" | ||
| 11 | |||
| 12 | EXTRA_OECONF_append_arm = " --disable-smp-support --disable-hipe" | ||
| 13 | EXTRA_OECONF_append_armeb = " --disable-smp-support --disable-hipe" | ||
| 14 | EXTRA_OECONF_append_mipsel = " --disable-smp-support --disable-hipe" | ||
| 15 | EXTRA_OECONF_append_sh3 = " --disable-smp-support --disable-hipe" | ||
| 16 | EXTRA_OECONF_append_sh4 = " --disable-smp-support --disable-hipe" | ||
| 17 | |||
| 18 | NATIVE_BIN = "${TMPDIR}/work/erlang-native-${PV}-${PR}/otp_src_${UPSTREAM_VERSION}/bin" | ||
| 19 | |||
| 20 | do_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 | |||
| 34 | do_compile() { | ||
| 35 | TARGET=${TARGET_SYS} \ | ||
| 36 | PATH=${NATIVE_BIN}:$PATH \ | ||
| 37 | oe_runmake noboot | ||
| 38 | } | ||
| 39 | |||
| 40 | do_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 | |||
| 50 | PACKAGES =+ "${PN}-libs-dbg ${PN}-libs" | ||
| 51 | |||
| 52 | FILES_${PN}-staticdev += "${libdir}/*/*/*/*.a ${libdir}/*/*/*/*/*.a ${libdir}/*/*/*/*/*/*.a " | ||
| 53 | |||
| 54 | FILES_${PN}-libs-dbg += " ${libdir}/erlang/*/.debug ${libdir}/erlang/*/*/.debug ${libdir}/erlang/*/*/*/.debug ${libdir}/erlang/*/*/*/*/.debug ${libdir}/erlang/*/*/*/*/*/.debug " | ||
| 55 | |||
| 56 | SRC_URI[md5sum] = "dd6c2a4807551b4a8a536067bde31d73" | ||
| 57 | SRC_URI[sha256sum] = "5bc34fc34fc890f84bae7ff1f7c81fbec2c9aa28a0ef51a57d7a8192204d8aa2" | ||
