blob: 105ccde3aee12da30d1af15912e794cb7dc92a6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# -*-makefile-*-
#
# Copyright (C) 2015 by Michael Grzeschik <mgr@pengutronix.de>
# Copyright (C) 2019 by Björn Esser <bes@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
HOST_PACKAGES-$(PTXCONF_HOST_NODEJS) += host-nodejs
# Always run the preprocessor locally.
HOST_NODEJS_MAKE_ENV := \
ICECC_REMOTE_CPP=0
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
HOST_NODEJS_CONF_TOOL := autoconf
HOST_NODEJS_CONF_OPT := \
--prefix=/usr \
--libdir=lib \
--no-cross-compiling \
--dest-os=linux \
--shared \
--shared-openssl \
--shared-zlib \
--shared-cares
$(STATEDIR)/host-nodejs.prepare:
@$(call targetinfo)
@$(call world/prepare, HOST_NODEJS)
@mkdir -p $(HOST_NODEJS_DIR)/out/Release/
@echo -e '#!/bin/sh\nexec "$${@}"' > \
$(HOST_NODEJS_DIR)/out/Release/tool-wrapper
@chmod +x $(HOST_NODEJS_DIR)/out/Release/tool-wrapper
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/host-nodejs.install:
@$(call targetinfo)
@$(call world/install, HOST_NODEJS)
# # Needed to cross-compile for target.
@install -pm 0755 $(HOST_NODEJS_DIR)/out/Release/bytecode_builtins_list_generator $(HOST_NODEJS_PKGDIR)/usr/bin/
@install -pm 0755 $(HOST_NODEJS_DIR)/out/Release/node_mksnapshot $(HOST_NODEJS_PKGDIR)/usr/bin/
@install -pm 0755 $(HOST_NODEJS_DIR)/out/Release/mksnapshot $(HOST_NODEJS_PKGDIR)/usr/bin/
@install -pm 0755 $(HOST_NODEJS_DIR)/out/Release/torque $(HOST_NODEJS_PKGDIR)/usr/bin/
@$(call touch)
# vim: syntax=make
|