diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-devtools/nodejs | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs')
4 files changed, 162 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch new file mode 100644 index 0000000000..6268d6940e --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | From bf701e7cb3616631a354ed9ecbed6dd16f60c60d Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Wed, 30 Jan 2013 10:43:47 +0100 | ||
4 | Subject: [PATCH] gcc has a builtin define to denote hard abi when in use, e.g. | ||
5 | when using -mfloat-abi=hard it will define __ARM_PCS_VFP to 1 and therefore | ||
6 | we should check that to determine which calling convention is in use and not | ||
7 | __VFP_FP__ which merely indicates presence of VFP unit | ||
8 | |||
9 | The fix has been provided by Khem Raj <raj.khem@gmail.com> | ||
10 | |||
11 | Upstream-Status: Forwarded | ||
12 | |||
13 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
14 | --- | ||
15 | deps/v8/src/arm/assembler-arm.cc | 4 ++-- | ||
16 | deps/v8/src/platform-linux.cc | 4 ++-- | ||
17 | 2 files changed, 4 insertions(+), 4 deletions(-) | ||
18 | |||
19 | diff --git a/deps/v8/src/arm/assembler-arm.cc b/deps/v8/src/arm/assembler-arm.cc | ||
20 | index 1787d15..c64ef58 100644 | ||
21 | --- a/deps/v8/src/arm/assembler-arm.cc | ||
22 | +++ b/deps/v8/src/arm/assembler-arm.cc | ||
23 | @@ -71,10 +71,10 @@ static unsigned CpuFeaturesImpliedByCompiler() { | ||
24 | // If the compiler is allowed to use VFP then we can use VFP too in our code | ||
25 | // generation even when generating snapshots. ARMv7 and hardware floating | ||
26 | // point support implies VFPv3, see ARM DDI 0406B, page A1-6. | ||
27 | -#if defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__VFP_FP__) \ | ||
28 | +#if defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__ARM_PCS_VFP) \ | ||
29 | && !defined(__SOFTFP__) | ||
30 | answer |= 1u << VFP3 | 1u << ARMv7 | 1u << VFP2; | ||
31 | -#endif // defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__VFP_FP__) | ||
32 | +#endif // defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__ARM_PCS_VFP) | ||
33 | // && !defined(__SOFTFP__) | ||
34 | #endif // _arm__ | ||
35 | |||
36 | diff --git a/deps/v8/src/platform-linux.cc b/deps/v8/src/platform-linux.cc | ||
37 | index ed9eb79..10d1879 100644 | ||
38 | --- a/deps/v8/src/platform-linux.cc | ||
39 | +++ b/deps/v8/src/platform-linux.cc | ||
40 | @@ -170,7 +170,7 @@ bool OS::ArmCpuHasFeature(CpuFeature feature) { | ||
41 | // calling this will return 1.0 and otherwise 0.0. | ||
42 | static void ArmUsingHardFloatHelper() { | ||
43 | asm("mov r0, #0":::"r0"); | ||
44 | -#if defined(__VFP_FP__) && !defined(__SOFTFP__) | ||
45 | +#if defined(__ARM_PCS_VFP) && !defined(__SOFTFP__) | ||
46 | // Load 0x3ff00000 into r1 using instructions available in both ARM | ||
47 | // and Thumb mode. | ||
48 | asm("mov r1, #3":::"r1"); | ||
49 | @@ -195,7 +195,7 @@ static void ArmUsingHardFloatHelper() { | ||
50 | #else | ||
51 | asm("vmov d0, r0, r1"); | ||
52 | #endif // __thumb__ | ||
53 | -#endif // defined(__VFP_FP__) && !defined(__SOFTFP__) | ||
54 | +#endif // defined(__ARM_PCS_VFP) && !defined(__SOFTFP__) | ||
55 | asm("mov r1, #0":::"r1"); | ||
56 | } | ||
57 | |||
58 | -- | ||
59 | 1.8.1 | ||
60 | |||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs4/libev-cross-cc_0.4.12.patch b/meta-oe/recipes-devtools/nodejs/nodejs4/libev-cross-cc_0.4.12.patch new file mode 100644 index 0000000000..2b9838f0c6 --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs4/libev-cross-cc_0.4.12.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | diff --git a/deps/libev/wscript b/deps/libev/wscript | ||
2 | index 4f6c9a8..1796749 100644 | ||
3 | --- a/deps/libev/wscript | ||
4 | +++ b/deps/libev/wscript | ||
5 | @@ -58,7 +58,7 @@ def configure(conf): | ||
6 | return 0; | ||
7 | } | ||
8 | """ | ||
9 | - conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=True, | ||
10 | + conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=False, | ||
11 | msg="Checking for SYS_clock_gettime") | ||
12 | |||
13 | have_librt = conf.check(lib='rt', uselib_store='RT') | ||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb b/meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb new file mode 100644 index 0000000000..7e67bcb338 --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb | |||
@@ -0,0 +1,47 @@ | |||
1 | SUMMARY = "nodeJS Evented I/O for V8 JavaScript" | ||
2 | HOMEPAGE = "http://nodejs.org" | ||
3 | LICENSE = "MIT & zlib" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d6237f3a840aef5b7880fb4e49eecfe5" | ||
5 | |||
6 | DEPENDS = "openssl" | ||
7 | |||
8 | SRC_URI = " \ | ||
9 | http://nodejs.org/dist/node-v${PV}.tar.gz \ | ||
10 | file://libev-cross-cc_${PV}.patch \ | ||
11 | " | ||
12 | SRC_URI[md5sum] = "a6375eaa43db5356bf443e25b828ae16" | ||
13 | SRC_URI[sha256sum] = "c01af05b933ad4d2ca39f63cac057f54f032a4d83cff8711e42650ccee24fce4" | ||
14 | |||
15 | S = "${WORKDIR}/node-v${PV}" | ||
16 | |||
17 | # v8 errors out if you have set CCACHE | ||
18 | CCACHE = "" | ||
19 | |||
20 | do_configure () { | ||
21 | sed -i -e 's:/usr/lib:${STAGING_LIBDIR}:g' wscript | ||
22 | sed -i -e 's:/usr/local/lib:${STAGING_LIBDIR}:g' wscript | ||
23 | ./configure --prefix=${prefix} --without-snapshot | ||
24 | } | ||
25 | |||
26 | do_compile () { | ||
27 | make | ||
28 | } | ||
29 | |||
30 | do_install () { | ||
31 | oe_runmake install DESTDIR=${D} | ||
32 | |||
33 | # fix namespace conflicts with other nodejs recipes | ||
34 | mv ${D}${bindir}/node ${D}${bindir}/node4 | ||
35 | mv ${D}${bindir}/node-waf ${D}${bindir}/node4-waf | ||
36 | |||
37 | mv ${D}${includedir}/node ${D}${includedir}/node4 | ||
38 | |||
39 | mv ${D}${libdir}/node ${D}${libdir}/node4 | ||
40 | mv ${D}${libdir}/pkgconfig/nodejs.pc ${D}${libdir}/pkgconfig/nodejs4.pc | ||
41 | sed -i -e s:include/node:include/node4: ${D}${libdir}/pkgconfig/nodejs4.pc | ||
42 | |||
43 | mv ${D}${datadir}/man/man1/node.1 ${D}${datadir}/man/man1/node4.1 | ||
44 | } | ||
45 | |||
46 | FILES_${PN} += "${libdir}/node4/wafadmin" | ||
47 | BBCLASSEXTEND = "native" | ||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb new file mode 100644 index 0000000000..996d68ea6e --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | SUMMARY = "nodeJS Evented I/O for V8 JavaScript" | ||
2 | HOMEPAGE = "http://nodejs.org" | ||
3 | LICENSE = "MIT & BSD" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=95a589a3257ab7dfe37d8a8379e3c72d" | ||
5 | |||
6 | DEPENDS = "openssl" | ||
7 | |||
8 | SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \ | ||
9 | file://0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch \ | ||
10 | " | ||
11 | SRC_URI[md5sum] = "25ed6aa5710ac46b867ff3f17a4da1d6" | ||
12 | SRC_URI[sha256sum] = "1d63dd42f9bd22f087585ddf80a881c6acbe1664891b1dda3b71306fe9ae00f9" | ||
13 | |||
14 | S = "${WORKDIR}/node-v${PV}" | ||
15 | |||
16 | # v8 errors out if you have set CCACHE | ||
17 | CCACHE = "" | ||
18 | |||
19 | ARCHFLAGS_arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--with-arm-float-abi=hard', '--with-arm-float-abi=softfp', d)}" | ||
20 | ARCHFLAGS ?= "" | ||
21 | |||
22 | # Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi | ||
23 | do_configure () { | ||
24 | export LD="${CXX}" | ||
25 | |||
26 | ./configure --prefix=${prefix} --without-snapshot ${ARCHFLAGS} | ||
27 | } | ||
28 | |||
29 | do_compile () { | ||
30 | export LD="${CXX}" | ||
31 | make BUILDTYPE=Release | ||
32 | } | ||
33 | |||
34 | do_install () { | ||
35 | oe_runmake install DESTDIR=${D} | ||
36 | } | ||
37 | |||
38 | RDEPENDS_${PN} = "curl python-shell python-datetime python-subprocess python-crypt python-textutils python-netclient " | ||
39 | RDEPENDS_${PN}_class-native = "" | ||
40 | |||
41 | FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules ${libdir}/dtrace" | ||
42 | BBCLASSEXTEND = "native" | ||