From 78d7c5f803c2f59385b57525e2d1d09da15e22a6 Mon Sep 17 00:00:00 2001 From: Linus Kaschulla Date: Fri, 22 Oct 2021 23:01:19 -0600 Subject: [PATCH] package/nodejs: add visible option to build host-nodejs To use nodejs on the host (independant of the actual system) to create some static files to place onto the target rootfs nodejs can be very helpful. The provided nodejs package didn't expose the possibility to create a host package, which this commit adds. This patch contains fixes based on feedback from: - Peter Seiderer - Yann E. MORIN Signed-off-by: Linus Kaschulla Signed-off-by: James Hilliard Signed-off-by: Thomas Petazzoni --- package/Config.in.host | 1 + package/nodejs/Config.in | 6 +----- package/nodejs/Config.in.host | 13 +++++++++++++ 3 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 package/nodejs/Config.in.host diff --git a/package/Config.in.host b/package/Config.in.host index 6e5a5c5fc5..7400da5894 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -56,6 +56,7 @@ menu "Host utilities" source "package/mtd/Config.in.host" source "package/mtools/Config.in.host" source "package/mxsldr/Config.in.host" + source "package/nodejs/Config.in.host" source "package/odb/Config.in.host" source "package/omap-u-boot-utils/Config.in.host" source "package/openocd/Config.in.host" diff --git a/package/nodejs/Config.in b/package/nodejs/Config.in index 99c76bc3de..016aeb4e1a 100644 --- a/package/nodejs/Config.in +++ b/package/nodejs/Config.in @@ -27,11 +27,7 @@ config BR2_PACKAGE_NODEJS # uses dlopen(). On ARMv5, we could technically support static # linking, but that's too much of a corner case to support it. depends on !BR2_STATIC_LIBS - select BR2_PACKAGE_HOST_PYTHON3 - select BR2_PACKAGE_HOST_PYTHON3_BZIP2 - select BR2_PACKAGE_HOST_PYTHON3_SSL - select BR2_PACKAGE_HOST_QEMU - select BR2_PACKAGE_HOST_QEMU_LINUX_USER_MODE + select BR2_PACKAGE_HOST_NODEJS select BR2_PACKAGE_C_ARES select BR2_PACKAGE_LIBUV select BR2_PACKAGE_ZLIB diff --git a/package/nodejs/Config.in.host b/package/nodejs/Config.in.host new file mode 100644 index 0000000000..86eaf21dac --- /dev/null +++ b/package/nodejs/Config.in.host @@ -0,0 +1,13 @@ +config BR2_PACKAGE_HOST_NODEJS + bool "host nodejs" + depends on BR2_HOST_GCC_AT_LEAST_7 + select BR2_PACKAGE_HOST_PYTHON3 + select BR2_PACKAGE_HOST_PYTHON3_BZIP2 + select BR2_PACKAGE_HOST_PYTHON3_SSL + select BR2_PACKAGE_HOST_QEMU + select BR2_PACKAGE_HOST_QEMU_LINUX_USER_MODE + help + Event-driven I/O server-side JavaScript environment based on + V8. + + http://nodejs.org/