From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mailauthrel1.nine.ch ([94.230.211.179]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XridF-00024s-BB for ptxdist@pengutronix.de; Fri, 21 Nov 2014 08:27:54 +0100 Received: from mailauth2.nine.ch (mailauth2.nine.ch [94.230.211.175]) by mailauthrel1.nine.ch (Postfix) with ESMTPS id 0A1F214109A for ; Fri, 21 Nov 2014 08:27:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailauth2.nine.ch (Postfix) with ESMTP id F168FC9994 for ; Fri, 21 Nov 2014 08:27:52 +0100 (CET) Received: from mailauth2.nine.ch ([127.0.0.1]) by localhost (mailauth2.nine.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JR0C+Zqg7C6m for ; Fri, 21 Nov 2014 08:27:52 +0100 (CET) Received: from [192.168.1.79] (231.8.24.31.ftth.as8758.net [31.24.8.231]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: raimondi@miromico.ch) by mailauth2.nine.ch (Postfix) with ESMTPSA for ; Fri, 21 Nov 2014 08:27:52 +0100 (CET) Message-ID: <546EE97A.40102@miromico.ch> Date: Fri, 21 Nov 2014 08:27:54 +0100 From: Alex Raimondi MIME-Version: 1.0 Subject: [ptxdist] Integration of node.js Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi I am working on adding nodejs to ptxdist. I use ptxdist to crosscompile my ARM based linux. I already succeeded in crosscompiling the nodejs base package and it works on the target. Node.js is special in some kind. To add extra modules it uses its own packet manager "npm". Some packages will build some binaries right on the target system upon installing. This will not work on a cross compiled target (with no compilers installed) So my approach is to allow the user to select additional modules and cross compile these modules on the host. So I guess I also need to build nodejs for the host to get my hands on the npm package manager. I created a host-node package and it successfully compiles. About the next steps I am unsure how to do that: - My host-node package currently does fetch/prepare/compile. What do I need to do in install or targetinstall? Currently my host-node gets installed into platform-XXX/sysroot-host - I need to use host built npm in (target) node to fetch modules. How do I correctly access the npm package manager? Is there any documentation about host tools usage? What is the meaning of cross tools? Thanks for any hint Best regards Alex Raimondi -- ptxdist mailing list ptxdist@pengutronix.de