This patch changes the Config.lb files and adds Config-lab.lb files for
[coreboot.git] / targets / supermicro / h8dmr / 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 target h8dmr
23 mainboard supermicro/h8dmr
24
25 option ROM_SIZE=0x100000
26 # 44K for ATI ROM in 1M; 4K for failover
27 option FALLBACK_SIZE=(ROM_SIZE-0xC000)
28
29 romimage "fallback" 
30         option USE_FAILOVER_IMAGE=0
31         option USE_FALLBACK_IMAGE=1
32         option CONFIG_COMPRESSED_PAYLOAD_LZMA=1
33         option CONFIG_PRECOMPRESSED_PAYLOAD=1
34         option ROM_IMAGE_SIZE=0x18000
35         option XIP_ROM_SIZE=0x40000
36         option COREBOOT_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback"
37         payload ../payload.elf.lzma
38 end
39
40 romimage "failover"
41         option USE_FAILOVER_IMAGE=1
42         option USE_FALLBACK_IMAGE=0
43         option ROM_IMAGE_SIZE=FAILOVER_SIZE
44         option XIP_ROM_SIZE=FAILOVER_SIZE
45         option COREBOOT_EXTRA_VERSION="$(shell cat ../../VERSION)_Failover"
46 end
47
48 buildrom ./coreboot.rom ROM_SIZE "fallback" "failover"