f217fcdd3ca1e93d2c1f25fb154a4b0f0330d2c7
[coreboot.git] / src / northbridge / amd / amdfam10 / Config.lb
1 #
2 # This file is part of the coreboot project.
3 #
4 # Copyright (C) 2007 Advanced Micro Devices, Inc.
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; version 2 of the License.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18 #
19
20 uses CONFIG_AGP_APERTURE_SIZE
21 uses CONFIG_HAVE_ACPI_TABLES
22 uses CONFIG_HAVE_HIGH_TABLES
23
24 default CONFIG_AGP_APERTURE_SIZE=0x4000000
25 default CONFIG_HAVE_HIGH_TABLES=1
26
27 config chip.h
28
29 driver northbridge.o
30 driver misc_control.o
31
32 if CONFIG_HAVE_ACPI_TABLES
33         object amdfam10_acpi.o
34         makerule ssdt.c
35                 depends "$(TOP)/src/northbridge/amd/amdfam10/ssdt.dsl"
36                 action   "iasl -p $(CURDIR)/ssdt -tc $(TOP)/src/northbridge/amd/amdfam10/ssdt.dsl"
37                 action   "perl -pi -e 's/AmlCode/AmlCode_ssdt/g' ssdt.hex"
38                 action   "mv ssdt.hex ssdt.c"
39         end
40         object ./ssdt.o
41         makerule sspr1.c
42                 depends "$(TOP)/src/northbridge/amd/amdfam10/sspr1.dsl"
43                 action   "iasl -p $(CURDIR)/sspr1 -tc $(TOP)/src/northbridge/amd/amdfam10/sspr1.dsl"
44                 action   "perl -pi -e 's/AmlCode/AmlCode_sspr1/g' sspr1.hex"
45                 action   "mv sspr1.hex sspr1.c"
46         end
47         object ./sspr1.o
48         makerule sspr2.c
49                 depends "$(TOP)/src/northbridge/amd/amdfam10/sspr2.dsl"
50                 action   "iasl -p $(CURDIR)/sspr2 -tc $(TOP)/src/northbridge/amd/amdfam10/sspr2.dsl"
51                 action   "perl -pi -e 's/AmlCode/AmlCode_sspr2/g' sspr2.hex"
52                 action   "mv sspr2.hex sspr2.c"
53         end
54         object ./sspr2.o
55         makerule sspr3.c
56                 depends "$(TOP)/src/northbridge/amd/amdfam10/sspr3.dsl"
57                 action   "iasl -p $(CURDIR)/sspr3 -tc $(TOP)/src/northbridge/amd/amdfam10/sspr3.dsl"
58                 action   "perl -pi -e 's/AmlCode/AmlCode_sspr3/g' sspr3.hex"
59                 action   "mv sspr3.hex sspr3.c"
60         end
61         object ./sspr3.o
62         makerule sspr4.c
63                 depends "$(TOP)/src/northbridge/amd/amdfam10/sspr4.dsl"
64                 action   "iasl -p $(CURDIR)/sspr4 -tc $(TOP)/src/northbridge/amd/amdfam10/sspr4.dsl"
65                 action   "perl -pi -e 's/AmlCode/AmlCode_sspr4/g' sspr4.hex"
66                 action   "mv sspr4.hex sspr4.c"
67         end
68         object ./sspr4.o
69         makerule sspr5.c
70                 depends "$(TOP)/src/northbridge/amd/amdfam10/sspr5.dsl"
71                 action   "iasl -p $(CURDIR)/sspr5 -tc $(TOP)/src/northbridge/amd/amdfam10/sspr5.dsl"
72                 action   "perl -pi -e 's/AmlCode/AmlCode_sspr5/g' sspr5.hex"
73                 action   "mv sspr5.hex sspr5.c"
74         end
75         object ./sspr5.o
76 end
77
78 object get_pci1234.o