diff --git a/northbridge/Kconfig b/northbridge/Kconfig index e226b0ed9b..7fd92aeb20 100644 --- a/northbridge/Kconfig +++ b/northbridge/Kconfig @@ -19,5 +19,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## +source northbridge/amd/Kconfig source northbridge/intel/Kconfig diff --git a/northbridge/Makefile b/northbridge/Makefile index 1af0bd67d4..18c25c34f6 100644 --- a/northbridge/Makefile +++ b/northbridge/Makefile @@ -19,5 +19,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## +include $(src)/northbridge/amd/Makefile include $(src)/northbridge/intel/Makefile diff --git a/northbridge/amd/Kconfig b/northbridge/amd/Kconfig new file mode 100644 index 0000000000..9ec41d13e1 --- /dev/null +++ b/northbridge/amd/Kconfig @@ -0,0 +1,27 @@ +## +## This file is part of the LinuxBIOS project. +## +## Copyright (C) 2007 coresystems GmbH +## Written by Stefan Reinauer 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 +## + +config NORTHBRIDGE_AMD_GEODELX + boolean + help + This option is internally used to decide which northbridge code to + use. It is set in the mainboard Kconfig file. + diff --git a/northbridge/amd/Makefile b/northbridge/amd/Makefile new file mode 100644 index 0000000000..61bc935c3b --- /dev/null +++ b/northbridge/amd/Makefile @@ -0,0 +1,25 @@ +## +## This file is part of the LinuxBIOS project. +## +## Copyright (C) 2007 coresystems GmbH +## Written by Stefan Reinauer 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 +## + +ifeq ($(CONFIG_NORTHBRIDGE_AMD_GEODELX),y) + include $(src)/northbridge/amd/geodelx/Makefile +endif + diff --git a/northbridge/amd/geodelx/Makefile b/northbridge/amd/geodelx/Makefile new file mode 100644 index 0000000000..07ed12dcea --- /dev/null +++ b/northbridge/amd/geodelx/Makefile @@ -0,0 +1,28 @@ +## +## This file is part of the LinuxBIOS project. +## +## Copyright (C) 2007 coresystems GmbH +## Written by Stefan Reinauer 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 +## + +STAGE2_CHIPSET_OBJ += $(obj)/northbridge/amd/geodelx/geodelx.o + +$(obj)/northbridge/amd/geodelx/%.o: $(src)/northbridge/amd/geodelx/%.c + $(Q)mkdir -p $(obj)/northbridge/amd/geodelx + $(Q)printf " CC $(subst $(shell pwd)/,,$(@))\n" + $(Q)$(CC) $(INITCFLAGS) -c $< -o $@ +