Skip to content

Prepare & compile sources

negan07 edited this page May 5, 2017 · 27 revisions

Prepare the host system

This repository has been developed with an Intel I5 Ivy Bridge Pc Machine with Intel Virtualizazion support enabled.

OS used for developing & compiling:

ubuntu yakkety x64

(all Debian based unix OS should work as well) over VMware running on W10.

Some links:

http://www.osboxes.org/ubuntu/#ubuntu-16-10-vmware

Build Sources

To finalize make successfully, root privilegs (sudo) must be available.

Make sure git is installed, otherwise type:

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install git

Clone the git project with:

git clone https://github.com/negan07/ancistrus

Type: make help to see the make options.

In particular: make prepare_host

could help installing the packets needed to compile sources successfully.

Typing: make will begin all the building stage.

During make processes, automake do the following:

  • Download Netgear firmware sources including toolchain;
  • Patch & compile the toolchain;
  • Patch & compile kernel & original netgear sources;
  • Download & patch work thirdparty apps from this repository;
  • Make work thirdparty apps;
  • Build an opkg local bin app & use it to offline-install work thirdparty packages on target netgear sources;
  • Prepare & build the .img firmware with the included work thirdparty modifications.

After ending compiling type make ipk to prepare, create and build .ipk packages & related index, ready to be uploaded onto a repository mirror.