diff options
Diffstat (limited to 'meta-openstack/recipes-devtools')
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 @@ | |||
| 1 | include erlang.inc | ||
| 2 | |||
| 3 | inherit native | ||
| 4 | |||
| 5 | PR = "r1" | ||
| 6 | |||
| 7 | # EXTRA_OEMAKE = 'OTP_SMALL_BUILD=true' | ||
| 8 | EXTRA_OECONF = '--without-ssl' | ||
| 9 | |||
| 10 | do_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 | |||
| 17 | do_compile_prepend() { | ||
| 18 | export TARGET=${HOST_SYS} | ||
| 19 | } | ||
| 20 | |||
| 21 | do_install_prepend() { | ||
| 22 | export TARGET=${HOST_SYS} | ||
| 23 | } | ||
| 24 | |||
| 25 | SRC_URI[md5sum] = "dd6c2a4807551b4a8a536067bde31d73" | ||
| 26 | SRC_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 @@ | |||
| 1 | DESCRIPTION = "A dynamic programming language and runtime environment, \ | ||
| 2 | with built-in support for concurrency, distribution and fault tolerance" | ||
| 3 | SECTION = "devel/erlang" | ||
| 4 | DEPENDS = "ncurses" | ||
| 5 | PRIORITY = "optional" | ||
| 6 | LICENSE = "ErlPL-1.1" | ||
| 7 | LIC_FILES_CHKSUM = "file://EPLICENCE;md5=09f9063ea35bc5bd124df2fda1d9d2c7" | ||
| 8 | |||
| 9 | UPSTREAM_VERSION = "${@bb.data.getVar('PV', d, 1).replace('.', '-')}" | ||
| 10 | |||
| 11 | SRC_URI = "http://erlang.org/download/otp_src_${UPSTREAM_VERSION}.tar.gz" | ||
| 12 | S = "${WORKDIR}/otp_src_${UPSTREAM_VERSION}" | ||
| 13 | |||
| 14 | PARALLEL_MAKE = "" | ||
| 15 | |||
| 16 | inherit 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 @@ | |||
| 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" | ||
