small fixup for amd norwich skeleton (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@322 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
31e851fb4e
commit
42b209a0be
2 changed files with 87 additions and 3 deletions
|
|
@ -3,15 +3,14 @@ choice
|
|||
depends on VENDOR_AMD
|
||||
|
||||
config BOARD_AMD_NORWICH
|
||||
bool "AMD Norwich (LX Devel)"
|
||||
bool "Norwich"
|
||||
select ARCH_X86
|
||||
select CPU_AMD_GEODELX
|
||||
select OPTION_TABLE
|
||||
select NORTHBRIDGE_AMD_GEODELX
|
||||
select SOUTHBRIDGE_AMD_CS5536
|
||||
#select SUPERIO_WINBOND_W83627HF
|
||||
help
|
||||
AMD Norwich Development board
|
||||
AMD Norwich Geode LX Development board
|
||||
endchoice
|
||||
|
||||
source "mainboard/amd/norwich/Kconfig"
|
||||
|
|
|
|||
85
mainboard/amd/norwich/Makefile
Normal file
85
mainboard/amd/norwich/Makefile
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
##
|
||||
## This file is part of the LinuxBIOS project.
|
||||
##
|
||||
## Copyright (C) 2006-2007 coresystems GmbH
|
||||
## Written by Stefan Reinauer <stepan@coresystems.de> for coresystems GmbH.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or modify
|
||||
## it under the terms of the GNU General Public License as published by
|
||||
## the Free Software Foundation; either version 2 of the License, or
|
||||
## (at your option) any later version.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
##
|
||||
|
||||
#
|
||||
# VPD or SIP ROM or ... how does NVIDIA call it?
|
||||
# Some space to cope with dirty southbridge tricks.
|
||||
# Do we want to put our own stuff there, too?
|
||||
#
|
||||
|
||||
$(obj)/linuxbios.vpd:
|
||||
$(Q)printf " BUILD DUMMY VPD\n"
|
||||
$(Q)dd if=/dev/zero of=$(obj)/linuxbios.vpd bs=256 count=1 $(SILENT)
|
||||
|
||||
#
|
||||
# This is going to be the init RAM code.
|
||||
#
|
||||
# The initram file is always uncompressed. It belongs into the mainboard
|
||||
# directory and is built from what was auto.c in v2.
|
||||
#
|
||||
# It should probably be renamed, as it does more than initram.
|
||||
# auto.c is a bit too meaningless though.
|
||||
#
|
||||
|
||||
$(obj)/linuxbios.initram: $(obj)/stage0.init $(obj)/stage0.o $(obj)/mainboard/$(MAINBOARDDIR)/initram.o
|
||||
$(Q)# initram links against stage0
|
||||
$(Q)printf " LD $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)$(LD) -R $(obj)/stage0.o -Ttext 0x80000 \
|
||||
$(obj)/mainboard/$(MAINBOARDDIR)/initram.o \
|
||||
--entry=main -o $(obj)/linuxbios.initram.o
|
||||
$(Q)printf " OBJCOPY $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)$(OBJCOPY) -O binary $(obj)/linuxbios.initram.o \
|
||||
$(obj)/linuxbios.initram
|
||||
|
||||
#
|
||||
# Miscellaneous important targets.
|
||||
#
|
||||
|
||||
$(obj)/mainboard/$(MAINBOARDDIR)/mainboard.o: $(obj)/mainboard/$(MAINBOARDDIR)/statictree.o
|
||||
|
||||
$(obj)/mainboard/$(MAINBOARDDIR)/statictree.o: $(obj)/mainboard/$(MAINBOARDDIR)/statictree.c
|
||||
$(Q)printf " CC $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)$(CC) $(CFLAGS) $(LINUXBIOSINCLUDE) -c -o $@ $<
|
||||
|
||||
$(obj)/mainboard/$(MAINBOARDDIR)/statictree.c: $(src)/mainboard/$(MAINBOARDDIR)/dts $(obj)/util/dtc/dtc
|
||||
$(Q)printf " DTC $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)$(obj)/util/dtc/dtc -O lb mainboard/$(MAINBOARDDIR)/dts > $@
|
||||
|
||||
$(obj)/mainboard/$(MAINBOARDDIR)/option_table.c: $(obj)/util/options/build_opt_tbl $(src)/mainboard/$(MAINBOARDDIR)/cmos.layout
|
||||
$(Q)printf " OPTIONS $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)mkdir -p $(obj)/mainboard/$(MAINBOARDDIR)
|
||||
$(Q)$(obj)/util/options/build_opt_tbl -b \
|
||||
--config $(src)/mainboard/$(MAINBOARDDIR)/cmos.layout \
|
||||
--option $(obj)/mainboard/$(MAINBOARDDIR)/option_table.c
|
||||
|
||||
$(obj)/option_table: $(obj)/mainboard/$(MAINBOARDDIR)/option_table.o
|
||||
$(Q)printf " OBJCOPY $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)$(OBJCOPY) -O binary $< $@
|
||||
|
||||
STAGE2_MAINBOARD_OBJ = mainboard.o vga.o
|
||||
|
||||
STAGE2_CHIPSET_OBJ =
|
||||
|
||||
$(obj)/mainboard/$(MAINBOARDDIR)/%.o: $(src)/mainboard/$(MAINBOARDDIR)/%.c
|
||||
$(Q)mkdir -p $(obj)/mainboard/$(MAINBOARDDIR)
|
||||
$(Q)printf " CC $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)$(CC) $(INITCFLAGS) -c $< -o $@
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue