Skip to content

Commit 59ca9c9

Browse files
committed
Update Node to 6.10.3.
1 parent 14d0ee2 commit 59ca9c9

File tree

2 files changed

+53
-47
lines changed

2 files changed

+53
-47
lines changed

package/node/node/Makefile

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=node
4-
PKG_VERSION:=v6.5.0
4+
PKG_VERSION:=v6.10.3
55
PKG_RELEASE:=1
66

7-
PKG_SOURCE:=node-$(PKG_VERSION).tar.gz
7+
PKG_SOURCE:=node-$(PKG_VERSION).tar.xz
88
PKG_SOURCE_URL:=https://nodejs.org/dist/${PKG_VERSION}/
9-
PKG_SHA256SUM:=d7742558bb3331e41510d6e6f1f7b13c0527aecc00a63c3e05fcfd44427ff778
9+
PKG_SHA256SUM:=82262a703e61164e09170a14d88b1726720651b0c7ee87a277654247b21b5388
10+
11+
# From : https://github.com/tessel/openwrt-tessel/blob/bc3316cd4458a5359166daf5684e9906a9ef7851/package/node/node/Makefile
12+
# {
13+
HOST_BUILD_DEPENDS:=python/host
14+
PKG_BUILD_DEPENDS:=python/host
15+
PKG_INSTALL:=1
16+
PKG_USE_MIPS16:=0
17+
18+
HOST_BUILD_PARALLEL:=1
19+
# }
1020

1121
PKG_BUILD_PARALLEL:=1
12-
PKG_BUILD_DEPENDS:=
1322

1423
include $(INCLUDE_DIR)/package.mk
1524

@@ -35,24 +44,58 @@ define Package/npm
3544
URL:=https://npmjs.org/
3645
endef
3746

47+
# From : https://github.com/tessel/openwrt-tessel/blob/bc3316cd4458a5359166daf5684e9906a9ef7851/package/node/node/Makefile
48+
# {
49+
CPU:=$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH))))
50+
51+
MAKE_VARS += \
52+
DESTCPU=$(CPU)
53+
# }
54+
3855
ifeq ($(ARCH),i386)
3956
DEST_CPU=ia32
4057
else
4158
DEST_CPU=$(ARCH)
4259
endif
4360

4461

45-
CONFIGURE_ARGS = --dest-cpu=$(DEST_CPU) --dest-os=linux \
46-
--shared-openssl --shared-openssl-includes="$(STAGING_DIR)/usr/include" --shared-openssl-libpath="$(STAGING_DIR)/usr/lib" \
47-
--shared-zlib --shared-zlib-includes="$(STAGING_DIR)/usr/include" --shared-zlib-libpath="$(STAGING_DIR)/usr/lib" \
48-
--v8-options="--max_old_space_size=20 --initial_old_space_size=4 --max_semi_space_size=2 --max_executable_size=5" \
49-
--without-snapshot
62+
CONFIGURE_ARGS = \
63+
--dest-cpu=$(DEST_CPU) \
64+
--dest-os=linux \
65+
--without-snapshot \
66+
--shared-zlib \
67+
--shared-openssl \
68+
--prefix=/usr \
69+
--v8-options="--max_old_space_size=20 --initial_old_space_size=4 --max_semi_space_size=2 --max_executable_size=5 --optimize_for_size" \
70+
--without-inspector \
71+
--without-dtrace \
72+
--without-intl
5073

5174
ifeq ($(ARCH),mipsel)
5275
CONFIGURE_ARGS += \
53-
--with-mips-arch-variant=r2 --with-mips-fpu-mode=fp32 --with-mips-float-abi=soft --without-intl
76+
--with-mips-arch-variant=r2 \
77+
--with-mips-fpu-mode=fp32 \
78+
--with-mips-float-abi=soft
5479
endif
5580

81+
# From : https://github.com/tessel/openwrt-tessel/blob/bc3316cd4458a5359166daf5684e9906a9ef7851/package/node/node/Makefile
82+
# {
83+
HOST_CONFIGURE_VARS:=
84+
85+
HOST_CONFIGURE_ARGS:= \
86+
--dest-os=linux \
87+
--without-snapshot \
88+
--with-intl=none \
89+
--prefix=$(STAGING_DIR_HOSTPKG)
90+
91+
HOST_CONFIGURE_CMD:=python ./configure
92+
93+
define Build/InstallDev
94+
$(INSTALL_DIR) $(1)/usr/include
95+
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
96+
endef
97+
# }
98+
5699
define Package/node/install
57100
mkdir -p $(1)/usr/bin
58101
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/Release/node $(1)/usr/bin/node
@@ -66,4 +109,3 @@ endef
66109

67110
$(eval $(call BuildPackage,node))
68111
$(eval $(call BuildPackage,npm))
69-

package/node/node/patches/010-uclib_execinfo.patch

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)