Stefan Reinauer | af6e745 | 2007-10-30 02:24:49 +0000 | [diff] [blame] | 1 | ## |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | ## This file is part of the coreboot project. |
Stefan Reinauer | af6e745 | 2007-10-30 02:24:49 +0000 | [diff] [blame] | 3 | ## |
| 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 Reinauer | be7f798 | 2009-03-13 15:42:27 +0000 | [diff] [blame] | 21 | |
| 22 | target VENDOR_MAINBOARD |
| 23 | mainboard VENDOR/MAINBOARD |
| 24 | |
| 25 | option CC="CROSSCC" |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 26 | option CONFIG_CROSS_COMPILE="CROSS_PREFIX" |
Stefan Reinauer | 9dd27bc | 2009-06-30 17:13:58 +0000 | [diff] [blame] | 27 | option HOSTCC="CROSS_HOSTCC" |
Stefan Reinauer | af6e745 | 2007-10-30 02:24:49 +0000 | [diff] [blame] | 28 | |
| 29 | __COMPRESSION__ |
Patrick Georgi | 2d3e712 | 2009-04-21 20:31:18 +0000 | [diff] [blame] | 30 | __LOGLEVEL__ |
Stefan Reinauer | af6e745 | 2007-10-30 02:24:49 +0000 | [diff] [blame] | 31 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 32 | option CONFIG_ROM_SIZE = 512*1024 |
Stefan Reinauer | af6e745 | 2007-10-30 02:24:49 +0000 | [diff] [blame] | 33 | |
| 34 | romimage "normal" |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 35 | option CONFIG_USE_FAILOVER_IMAGE=0 |
| 36 | option CONFIG_USE_FALLBACK_IMAGE=0 |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 37 | option COREBOOT_EXTRA_VERSION=".0-Normal" |
Stefan Reinauer | af6e745 | 2007-10-30 02:24:49 +0000 | [diff] [blame] | 38 | payload __PAYLOAD__ |
| 39 | end |
| 40 | |
| 41 | romimage "fallback" |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 42 | option CONFIG_USE_FAILOVER_IMAGE=0 |
| 43 | option CONFIG_USE_FALLBACK_IMAGE=1 |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 44 | option COREBOOT_EXTRA_VERSION=".0-Fallback" |
Stefan Reinauer | af6e745 | 2007-10-30 02:24:49 +0000 | [diff] [blame] | 45 | payload __PAYLOAD__ |
| 46 | end |
| 47 | |
| 48 | romimage "failover" |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 49 | 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 Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 53 | option COREBOOT_EXTRA_VERSION=".0-Failover" |
Stefan Reinauer | af6e745 | 2007-10-30 02:24:49 +0000 | [diff] [blame] | 54 | end |
| 55 | |
| 56 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 57 | buildrom ./coreboot.rom CONFIG_ROM_SIZE "normal" "fallback" "failover" |