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
[email protected]

Reply via email to