lfsmake1 make PASS=1
lfsmake1 binutils PASS=1
lfsmake1 gcc PASS=1
- if [ "${MACHINE}" = "arm" ]; then
+ if [ "${MACHINE_TYPE}" = "arm" ]; then
lfsmake1 linux TOOLS=1 HEADERS=1
else
lfsmake1 linux-libc-header
LOGFILE="$BASEDIR/log/_build.base.log"
export LOGFILE
lfsmake2 stage2
- if [ "${MACHINE}" = "arm" ]; then
+ if [ "${MACHINE_TYPE}" = "arm" ]; then
lfsmake2 linux HEADERS=1
else
lfsmake2 linux-libc-header
lfsmake2 udev
lfsmake2 util-linux
lfsmake2 vim
-
- # ARM cannot use grub.
- if [ "${MACHINE}" != "arm" ]; then
- lfsmake2 grub
- fi
+ lfsmake2 grub
}
buildipfire() {
ipfiremake xz
ipfiremake linux-firmware
ipfiremake zd1211-firmware
+ ipfiremake u-boot
# The xen and PAE kernels are only available for x86
- if [ "${MACHINE}" != "arm" ]; then
+ if [ "${MACHINE_TYPE}" != "arm" ]; then
ipfiremake linux XEN=1
ipfiremake kqemu XEN=1
ipfiremake v4l-dvb XEN=1
# Default kernel build
ipfiremake linux
ipfiremake v4l-dvb
-
- if [ "${MACHINE}" != "arm" ]; then
- # Virtualization helpers are only available for x86.
- ipfiremake kqemu
- ipfiremake kvm-kmod
- #unsupported arch (armv5)
- ipfiremake madwifi
+ ipfiremake kqemu
+ ipfiremake kvm-kmod
+ ipfiremake madwifi
+ if [ "${MACHINE_TYPE}" = "arm" ]; then
#todo enable alsa driver in kernel config
ipfiremake alsa KMOD=1
- #undefined declaration in echo canceler try to fix later
- ipfiremake mISDN
fi
+ #undefined declaration in echo canceler try to fix later
+ ipfiremake mISDN
ipfiremake dahdi KMOD=1
ipfiremake cryptodev
ipfiremake compat-wireless
ipfiremake pkg-config
ipfiremake linux-atm
ipfiremake cpio
-
- installmake strip
-
ipfiremake dracut
ipfiremake expat
ipfiremake gdbm
ipfiremake arping
ipfiremake beep
ipfiremake bind
- ipfiremake cdrtools
+ ipfiremake dvdrtools
ipfiremake dnsmasq
ipfiremake dosfstools
ipfiremake reiserfsprogs
ipfiremake igmpproxy
ipfiremake fbset
ipfiremake sdl
- #ipfiremake qemu
- #ipfiremake qemu-kqemu
+ ipfiremake qemu
+ ipfiremake qemu-kqemu
ipfiremake sane
ipfiremake netpbm
ipfiremake phpSANE
ipfiremake faad2
ipfiremake ffmpeg
ipfiremake videolan
- #ipfiremake vdr
+ ipfiremake vdr
ipfiremake w_scan
ipfiremake icecast
ipfiremake icegenerator
ipfiremake vnstat
ipfiremake vnstati
ipfiremake iw
- #ipfiremake wpa_supplicant
- #ipfiremake hostapd
+ ipfiremake wpa_supplicant
+ ipfiremake hostapd
ipfiremake urlgrabber
- if [ "${MACHINE:0:3}" != "arm" ]; then
- ipfiremake syslinux
- fi
+ ipfiremake syslinux
ipfiremake tftpd
- #ipfiremake cpufrequtils
+ ipfiremake cpufrequtils
ipfiremake dbus
ipfiremake bluetooth
ipfiremake gutenprint
ipfiremake perl-DBD-mysql
ipfiremake cacti
ipfiremake icecc
- if [ "${MACHINE:0:3}" != "arm" ]; then
- ipfiremake openvmtools
- fi
+ ipfiremake openvmtools
ipfiremake nagiosql
ipfiremake iftop
ipfiremake motion
ipfiremake watchdog
ipfiremake libpri
ipfiremake dahdi
- #ipfiremake asterisk
- #ipfiremake lcr
+ ipfiremake asterisk
+ ipfiremake lcr
ipfiremake usb_modeswitch
ipfiremake usb_modeswitch_data
ipfiremake zerofree
# Run installer scripts one by one
LOGFILE="$BASEDIR/log/_build.installer.log"
export LOGFILE
- if [ "${MACHINE:0:3}" != "arm" ]; then
- ipfiremake as86
- ipfiremake mbr
- ipfiremake memtest
- fi
+ ipfiremake as86
+ ipfiremake mbr
+ ipfiremake memtest
ipfiremake installer
cp -f $BASEDIR/doc/COPYING $BASEDIR/build/install/initrd/
installmake strip
$0 git log
# Create images for install
- ipfiremake cdrom ED=$IPFVER
+ ipfiremake cdrom ED=$IPFVER
# Check if there is a loop device for building in virtual environments
- if [ $BUILD_IMAGES == 1 ] && ([ -e /dev/loop/0 ] || [ -e /dev/loop0 ]); then
- ipfiremake usb-stick ED=$IPFVER
+ if [ $BUILD_IMAGES == 1 ] && ([ -e /dev/loop/0 ] || [ -e /dev/loop0 ]); then
+ if [ "${MACHINE_TYPE}" != "arm" ]; then
+ ipfiremake usb-stick ED=$IPFVER
+ fi
ipfiremake flash-images ED=$IPFVER
fi
cd $BASEDIR/lfs
for i in *; do
if [ -f "$i" -a "$i" != "Config" ]; then
- echo -ne "Loading $i"
+ lfsmakecommoncheck ${i} || continue
+
make -s -f $i LFS_BASEDIR=$BASEDIR MACHINE=$MACHINE \
MESSAGE="$i\t ($c/$MAX_RETRIES)" download >> $LOGFILE 2>&1
if [ $? -ne 0 ]; then