[COMMIT osv-apps master] Added node-from-host app

3 views
Skip to first unread message

Commit Bot

unread,
Jul 12, 2019, 12:56:49 AM7/12/19
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

Added node-from-host app

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/node-from-host/Makefile b/node-from-host/Makefile
--- a/node-from-host/Makefile
+++ b/node-from-host/Makefile
@@ -0,0 +1,12 @@
+.PHONY: module clean
+
+SRC = $(shell readlink -f ../..)
+
+node_exe_path = $(shell realpath $$(which node))
+
+module:
+ echo "/libnode.so: ->/node" > usr.manifest
+ $(SRC)/scripts/manifest_from_host.sh $(node_exe_path) >> usr.manifest
+
+clean:
+ rm -rf usr.manifest
diff --git a/node-from-host/module.py b/node-from-host/module.py
--- a/node-from-host/module.py
+++ b/node-from-host/module.py
@@ -0,0 +1 @@
+provides = ['node']
Reply all
Reply to author
Forward
0 new messages