# This is the configuration for the build system

# this is the version string printed during boot.
ROM_VERSION=rev_a_20060913-2

# Uncomment this to see the output from the package builds
#VERBOSE=y

# You probably won't need to change these, unless you are playing with
# LinuxBIOS
# OLPC
#LINUXBIOS_VENDOR=olpc
#LINUXBIOS_BOARD=rev_a
#LINUXBIOS_CONFIG=Config.SPI.lb
#LINUXBIOS_TDIR=rev_a_1M
#LINUXBIOS_VER=2419

LINUXBIOS_VENDOR=emulation
LINUXBIOS_BOARD=qemu-i386
LINUXBIOS_CONFIG=Config.OLPC.lb
LINUXBIOS_TDIR= qemu-i386-OLPC
LINUXBIOS_VER= 2424
# Please don't uncomment this unless somebody tells you to
# LINUXBIOS_CAS25=y

# Specify the commandline to use with mkelfimage
COMMAND_LINE=console=ttyS0,115200 video=gxfb:1024x768 mem=119m rdinit=/linuxrc

# Uncomment the packages you want from the following list
# Say 'y' here to build Marcelo's kexec-boot-loader
INITRD_KBL=y

# Say 'y' here to use it as a cheap substitute for kexec-tools
KBL_KEXEC_ONLY=y

# Say 'y' here to build busybox
INITRD_BUSYBOX=y

# Say 'y' here to build wireless tools
#INITRD_WIRELESS=n

# Say 'y' here to build the bootmenu
INITRD_BOOTMENU=y

# Say 'y' here to build the olpcflash utility
INITRD_OLPCFLASH=y

# say 'y' here to build a full rom image (minus the vsa)
LINUXBIOS_PACKAGE=y

#### Payload selection

# Uncomment this to select the old school elf target
PAYLOAD_TARGET=$(OUTPUT_DIR)/olpc-payload.elf

# Uncomment this to select the NRV2B compressed payload
# NOTE!  This doesn't work right now!
#PAYLOAD_TARGET=$(OUTPUT_DIR)/olpc-payload.elf.nrv2b

###########################################
# You shouldn't change anything under this point
###########################################

# Note:  An astute person would note that this is very inefficent - 
# we should use the INITRD_PACKAGES-$(INITRD_BUSYBOX) += busybox trick.

TARGETS=payload
INITRD_PACKAGES=

ifeq ($(INITRD_KBL), y)
INITRD_PACKAGES += kexec-boot-loader
endif

ifeq ($(INITRD_BUSYBOX),y)
INITRD_PACKAGES += busybox
endif

ifeq ($(INITRD_WIRELESS),y)
INITRD_PACKAGES += wireless-tools
endif

ifeq ($(INITRD_BOOTMENU),y)
INITRD_PACKAGES += bootmenu
endif

ifeq ($(INITRD_OLPCFLASH),y)
INITRD_PACKAGES += olpcflash
endif

ifeq ($(INITRD_KEXEC_TOOLS),y)
INITRD_PACKAGES += kexec-tools
endif

ifeq ($(LINUXBIOS_PACKAGE), y)
TARGETS += linuxbios
endif
