node: don't build on unsupported cpus, remove menu
authorEneas U de Queiroz <redacted>
Thu, 25 Apr 2019 14:02:22 +0000 (11:02 -0300)
committerEneas U de Queiroz <redacted>
Sat, 27 Apr 2019 00:11:12 +0000 (21:11 -0300)
Node does not support arc or armeb systems.
Moved i18 option to straight under node instead of on its own menu.

Signed-off-by: Eneas U de Queiroz <redacted>
lang/node/Makefile

index b807cc9ef90e80b2b7bab89620574535e6161ff9..25816a893003eb2d2c17639d44739a364a1dd8f1 100644 (file)
@@ -37,7 +37,10 @@ define Package/node
   SUBMENU:=Node.js
   TITLE:=Node.js is a platform built on Chrome's JavaScript runtime
   URL:=https://nodejs.org/
-  DEPENDS:=@(HAS_FPU||KERNEL_MIPS_FPU_EMULATOR) +libstdcpp +libopenssl +zlib +libnghttp2 +libuv +libhttp-parser +USE_UCLIBC:libpthread +USE_UCLIBC:librt +NODEJS_ICU:icu
+  DEPENDS:=@(HAS_FPU||KERNEL_MIPS_FPU_EMULATOR) @!arc @!armeb \
+          +libstdcpp +libopenssl +zlib +libnghttp2 +libuv +libhttp-parser \
+          +USE_UCLIBC:libpthread +USE_UCLIBC:librt \
+          +NODEJS_ICU:icu
 endef
 
 define Package/node/description
@@ -60,13 +63,13 @@ define Package/node-npm/description
 endef
 
 define Package/node/config
-       menu "Module Selection"
+       if PACKAGE_node
 
        config NODEJS_ICU
                bool "enable i18n features"
                default n
 
-       endmenu
+       endif
 endef
 
 NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
git clone https://git.99rst.org/PROJECT