Add MACHINE_TYPE variable to be able to support multiple versions of one platform.

This commit is contained in:
Michael Tremer
2011-09-15 23:35:55 +02:00
parent e1e7669b61
commit df94e866a3
2 changed files with 21 additions and 11 deletions

16
make.sh
View File

@@ -255,7 +255,7 @@ buildtoolchain() {
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
@@ -294,7 +294,7 @@ buildbase() {
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
@@ -354,7 +354,7 @@ buildbase() {
lfsmake2 vim
# ARM cannot use grub.
if [ "${MACHINE}" != "arm" ]; then
if [ "${MACHINE_TYPE}" != "arm" ]; then
lfsmake2 grub
fi
}
@@ -377,7 +377,7 @@ buildipfire() {
ipfiremake zd1211-firmware
# 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
@@ -414,7 +414,7 @@ buildipfire() {
ipfiremake linux
ipfiremake v4l-dvb
if [ "${MACHINE}" != "arm" ]; then
if [ "${MACHINE_TYPE}" != "arm" ]; then
# Virtualization helpers are only available for x86.
ipfiremake kqemu
ipfiremake kvm-kmod
@@ -669,7 +669,7 @@ buildipfire() {
ipfiremake wpa_supplicant
ipfiremake hostapd
ipfiremake urlgrabber
if [ "${MACHINE:0:3}" != "arm" ]; then
if [ "${MACHINE_TYPE}" != "arm" ]; then
ipfiremake syslinux
fi
ipfiremake tftpd
@@ -696,7 +696,7 @@ buildipfire() {
ipfiremake perl-DBD-mysql
ipfiremake cacti
ipfiremake icecc
if [ "${MACHINE:0:3}" != "arm" ]; then
if [ "${MACHINE_TYPE}" != "arm" ]; then
ipfiremake openvmtools
fi
ipfiremake nagiosql
@@ -754,7 +754,7 @@ buildinstaller() {
# Run installer scripts one by one
LOGFILE="$BASEDIR/log/_build.installer.log"
export LOGFILE
if [ "${MACHINE:0:3}" != "arm" ]; then
if [ "${MACHINE_TYPE}" != "arm" ]; then
ipfiremake as86
ipfiremake mbr
ipfiremake memtest