This patch changes the Config.lb files and adds Config-lab.lb files for
[coreboot.git] / targets / gigabyte / m57sli / Config-lab.lb
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2007 AMD
5 ## Written by Yinghai Lu <yinghailu@gmail.com> for AMD.
6 ##
7 ## This program is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation; either version 2 of the License, or
10 ## (at your option) any later version.
11 ##
12 ## This program is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ## GNU General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program; if not, write to the Free Software
19 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
20 ##
21
22 # Sample config file for 
23
24 target m57sli
25 mainboard gigabyte/m57sli
26
27 option ROM_SIZE=0x100000
28 option FALLBACK_SIZE=(ROM_SIZE-0x1000)
29
30 romimage "fallback" 
31         option USE_FAILOVER_IMAGE=0
32         option USE_FALLBACK_IMAGE=1
33         option CONFIG_COMPRESSED_PAYLOAD_LZMA=1
34         option CONFIG_PRECOMPRESSED_PAYLOAD=1
35         option ROM_IMAGE_SIZE=0x17000
36         option XIP_ROM_SIZE=0x40000
37         option COREBOOT_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback"
38         payload ../payload.elf.lzma
39 end
40
41 romimage "failover"
42         option USE_FAILOVER_IMAGE=1
43         option USE_FALLBACK_IMAGE=0
44         option ROM_IMAGE_SIZE=FAILOVER_SIZE
45         option XIP_ROM_SIZE=FAILOVER_SIZE
46         option COREBOOT_EXTRA_VERSION="$(shell cat ../../VERSION)_Failover"
47 end
48
49 buildrom ./coreboot.rom ROM_SIZE "fallback" "failover"