[oe] [meta-openwrt][PATCH 4/9] Juci: fix uglify-js not found

Stanley Phoong stanley.cheong.kwan.phoong at intel.com
Mon Jul 17 02:48:06 UTC 2017


From: "Stanley Cheong Kwan, Phoong" <stanley.cheong.kwan.phoong at intel.com>

uglify-js is not found by the Makefile. This happens due to npm install
will install into a local node_modules and this would not be reflected
into recipe-sysroot-native/usr/bin. Added softlink to uglify-js.

Signed-off-by: Stanley Cheong Kwan, Phoong <stanley.cheong.kwan.phoong at intel.com>
---
 recipes-core/juci/juci_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-core/juci/juci_git.bb b/recipes-core/juci/juci_git.bb
index 6d3d798..def6a90 100644
--- a/recipes-core/juci/juci_git.bb
+++ b/recipes-core/juci/juci_git.bb
@@ -23,6 +23,7 @@ do_compile() {
 }
 
 do_install_append() {
+        ln -sf ${WORKDIR}/git/node_modules/uglify-js/bin/uglifyjs ${WORKDIR}/recipe-sysroot-native/usr/bin/uglifyjs
 	oe_runmake
 	oe_runmake DESTDIR='${D}' install
 }
-- 
2.7.4




More information about the Openembedded-devel mailing list