Compilazione

La prima volta che compileremo OpenWrt converrà dotarsi di un libro, un film, parole crociate o quanto altro preferiamo per ammazzare un pò di tempo. Alla prima compilazione infatti OpenWrt procederà prima a compilare la propria toolchain ovvero l'insieme di compilatore, librerie necessarie per la compilazione (scusate la ripetizione...) e utility varie come ad esempio i programmi necessari a costruire l'immagine del firmware. Oltre questo, alla prima compilazione OpenWrt dovrà anche scaricare i sorgenti dei vari programmi che dovrà compilare per il nostro router. Per questo assicuriamoci di avere la connessione ad Internet disponibile anche durante la compilazione. L'intero processo si completa con il semplice comando "make" e un pò di tempo:

blaxwan@fabbblnx ~/OpenWrtCompile/trunk $ make
Collecting package info: doneage/zlib11nvantantrelay
Collecting target info: doneet/linux/x86-2.62.6.6
 make[2] tools/install
 make[3] -C tools install
 make[4] -C tools install-targets
 make[2] toolchain/install
 make[3] -C toolchain install
 make[2] target/compile
 make[3] -C target compile
 make[4] -C target/linux prepare
 make[5] -C target/linux/atheros-2.6 prepare
 make[4] -C target/linux compile
 make[5] -C target/linux/atheros-2.6 compile
 make[4] -C target/linux/atheros-2.6/image compile
 make[2] package/compile
 make[3] -C package compile
 make[4] -C package compile-targets
 make[5] -C package/base-files compile
 make[5] -C package/bridge compile
 make[5] -C package/busybox compile
 make[5] -C package/dnsmasq compile
 make[5] -C package/dropbear compile
 make[5] -C package/haserl compile
 make[5] -C package/iproute2 compile
 make[5] -C package/iptables compile
 make[5] -C package/kernel compile
 make[5] -C package/wireless-tools compile
 make[5] -C package/madwifi compile
 make[5] -C package/zlib compile
 make[5] -C package/openssl compile
 make[5] -C package/mtd compile
 make[5] -C package/webif compile
 make[2] package/install
 make[3] -C package install
 make[4] -C package install-targets
 make[5] -C package/base-files install
 make[5] -C package/bridge install
 make[5] -C package/busybox install
 make[5] -C package/dnsmasq install
 make[5] -C package/dropbear install
 make[5] -C package/haserl install
 make[5] -C package/iproute2 install
 make[5] -C package/iptables install
 make[5] -C package/kernel install
 make[5] -C package/madwifi install
 make[5] -C package/openssl install
 make[5] -C package/mtd install
 make[5] -C package/webif install
 make[5] -C package/wireless-tools install
 make[5] -C package/wpa_supplicant install
 make[5] -C package/zlib install
 make[2] target/install
 make[3] -C target install
 make[4] -C target/linux/atheros-2.6/image clean
 make[4] -C target/linux prepare
 make[5] -C target/linux/atheros-2.6 prepare
 make[4] -C target/linux compile
 make[5] -C target/linux/atheros-2.6 compile
 make[4] -C target/linux install
 make[5] -C target/linux/atheros-2.6 install
 make[4] -C target/linux/atheros-2.6/image compile
 make[4] -C target/linux/atheros-2.6/image install
 make[2] package/index
 make[3] -C package index
blaxwan@fabbblnx ~/OpenWrtCompile/trunk $