I'm almost newbie about embedded linux but I have experience with linux for many years even I'm using it on my laptop. I read lots of things about OpenWrt Buildroot on the Wiki (about, install, usage etc.)
I need some packages (nodejs and node-red) but these aren't in repositories so I think I should compile all of them on my own. I just want someone who has many experience with OpenWrt Buildroot to check me that I'm really on right way to build these package. I don't want to lose my time for nothing. On the other hand, of course I may meet some difficulties even if I am on right way but it is an other issue.
Here my estimated steps for this building procedure, in my case for nodejs
- Get the all source code of OpenWrt
git clone git://git.openwrt.org/openwrt.git
- I think download and install all available "feeds" is optional and isn't necessary for building a single package, am I right?
- First I have to check for missing packages on my build-system so
make defconfig
make prereq
after these comes "make menuconfig" command so from this point I think I should follow up the instructions which are given on Wiki [How to Build a Single Package, nodejs]
- Do I need to get source code of nodejs from git or is it already in OpenWrt? It isn't very clear on document. If I realy need it, I think git command make a new directory which is called "node" or "nodejs" so where should I copy this new directory to, for instance <build_root_dir>/package/nodejs ?
- After that to make nodejs package available in make menuconfig
./scripts/feeds install <PACKAGENAME>
If I'm wrong, you may warn about this.
- I have to select my target platform, then tick nodejs package by pressing "m".
make menuconfig
- Run the following commands
make tools/install
make toolchain/install
- Next step on wiki page is building the dependencies but I think in our case it isn't necessary. There is no information about this on nodejs wiki page so I skip this step.
- And finally, in order to build the package
make package/nodejs/compile
make package/nodejs/install
make package/index
the my nodejs package will be in the bin/ directory.
I've mixed the instructions on the wiki pages [How to Build a Single Package, nodejs] because they aren't very clear. If you confirm me I will be very appreciated, thank you in advance
(Last edited by hoobastank on 31 Jan 2015, 18:59)