blob: d946796d194f7433f25347313a6807f6317b497d [file] [log] [blame]
Stefan Reinaueraf6e7452007-10-30 02:24:49 +00001##
Stefan Reinauer7e61e452008-01-18 10:35:56 +00002## This file is part of the coreboot project.
Stefan Reinaueraf6e7452007-10-30 02:24:49 +00003##
4## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; either version 2 of the License, or
9## (at your option) any later version.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
16## You should have received a copy of the GNU General Public License
17## along with this program; if not, write to the Free Software
18## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19##
20
Stefan Reinauerbe7f7982009-03-13 15:42:27 +000021
22target VENDOR_MAINBOARD
23mainboard VENDOR/MAINBOARD
24
25option CC="CROSSCC"
Stefan Reinauer08670622009-06-30 15:17:49 +000026option CONFIG_CROSS_COMPILE="CROSS_PREFIX"
Stefan Reinauer9dd27bc2009-06-30 17:13:58 +000027option HOSTCC="CROSS_HOSTCC"
Stefan Reinaueraf6e7452007-10-30 02:24:49 +000028
29__COMPRESSION__
Patrick Georgi2d3e7122009-04-21 20:31:18 +000030__LOGLEVEL__
Stefan Reinaueraf6e7452007-10-30 02:24:49 +000031
Stefan Reinauer08670622009-06-30 15:17:49 +000032option CONFIG_ROM_SIZE = 512*1024
Stefan Reinaueraf6e7452007-10-30 02:24:49 +000033
34romimage "normal"
Stefan Reinauer08670622009-06-30 15:17:49 +000035 option CONFIG_USE_FAILOVER_IMAGE=0
36 option CONFIG_USE_FALLBACK_IMAGE=0
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000037 option COREBOOT_EXTRA_VERSION=".0-Normal"
Stefan Reinaueraf6e7452007-10-30 02:24:49 +000038 payload __PAYLOAD__
39end
40
41romimage "fallback"
Stefan Reinauer08670622009-06-30 15:17:49 +000042 option CONFIG_USE_FAILOVER_IMAGE=0
43 option CONFIG_USE_FALLBACK_IMAGE=1
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000044 option COREBOOT_EXTRA_VERSION=".0-Fallback"
Stefan Reinaueraf6e7452007-10-30 02:24:49 +000045 payload __PAYLOAD__
46end
47
48romimage "failover"
Stefan Reinauer08670622009-06-30 15:17:49 +000049 option CONFIG_USE_FAILOVER_IMAGE=1
50 option CONFIG_USE_FALLBACK_IMAGE=0
51 option CONFIG_ROM_IMAGE_SIZE=CONFIG_FAILOVER_SIZE
52 option CONFIG_XIP_ROM_SIZE=CONFIG_FAILOVER_SIZE
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000053 option COREBOOT_EXTRA_VERSION=".0-Failover"
Stefan Reinaueraf6e7452007-10-30 02:24:49 +000054end
55
56
Stefan Reinauer08670622009-06-30 15:17:49 +000057buildrom ./coreboot.rom CONFIG_ROM_SIZE "normal" "fallback" "failover"