Author: jcrouse Date: 2008-02-19 19:03:58 +0100 (Tue, 19 Feb 2008) New Revision: 120
Added: buildrom-devel/packages/coreboot-v2/geodelx.mk Modified: buildrom-devel/config/platforms/alix1c.conf buildrom-devel/config/platforms/db800.conf buildrom-devel/config/platforms/dbe61.conf buildrom-devel/config/platforms/msm800sev.conf buildrom-devel/config/platforms/norwich.conf Log: [BUILDROM] conslidate the V2 Geode targets
All the Geode targets are the same, so consolidate them into a single target - this will make the forthcoming VSA changes much easier to maintain.
Signed-off-by: Jordan Crouse jordan.crouse@amd.com Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: buildrom-devel/config/platforms/alix1c.conf =================================================================== --- buildrom-devel/config/platforms/alix1c.conf 2008-02-19 15:47:25 UTC (rev 119) +++ buildrom-devel/config/platforms/alix1c.conf 2008-02-19 18:03:58 UTC (rev 120) @@ -12,7 +12,7 @@ # Targets
KERNEL_MK=$(PACKAGE_DIR)/kernel/alix1c.mk -CBV2_MK=$(PACKAGE_DIR)/coreboot-v2/alix1c.mk +CBV2_MK=$(PACKAGE_DIR)/coreboot-v2/geodelx.mk
# kernel configuration (for LAB)
Modified: buildrom-devel/config/platforms/db800.conf =================================================================== --- buildrom-devel/config/platforms/db800.conf 2008-02-19 15:47:25 UTC (rev 119) +++ buildrom-devel/config/platforms/db800.conf 2008-02-19 18:03:58 UTC (rev 120) @@ -14,7 +14,7 @@ # Use the same settings as the Norwich platform
KERNEL_MK=$(PACKAGE_DIR)/kernel/norwich.mk -CBV2_MK=$(PACKAGE_DIR)/coreboot-v2/norwich.mk +CBV2_MK=$(PACKAGE_DIR)/coreboot-v2/geodelx.mk
# kernel configuration (for LAB) # Use the same settings as the Norwich platform
Modified: buildrom-devel/config/platforms/dbe61.conf =================================================================== --- buildrom-devel/config/platforms/dbe61.conf 2008-02-19 15:47:25 UTC (rev 119) +++ buildrom-devel/config/platforms/dbe61.conf 2008-02-19 18:03:58 UTC (rev 120) @@ -14,7 +14,7 @@ # Targets
KERNEL_MK=$(PACKAGE_DIR)/kernel/norwich.mk -CBV2_MK=$(PACKAGE_DIR)/coreboot-v2/norwich.mk +CBV2_MK=$(PACKAGE_DIR)/coreboot-v2/geodelx.mk
# kernel configuration (for LAB)
Modified: buildrom-devel/config/platforms/msm800sev.conf =================================================================== --- buildrom-devel/config/platforms/msm800sev.conf 2008-02-19 15:47:25 UTC (rev 119) +++ buildrom-devel/config/platforms/msm800sev.conf 2008-02-19 18:03:58 UTC (rev 120) @@ -13,7 +13,7 @@ # Targets
KERNEL_MK=$(PACKAGE_DIR)/kernel/msm800sev.mk -CBV2_MK=$(PACKAGE_DIR)/coreboot-v2/msm800sev.mk +CBV2_MK=$(PACKAGE_DIR)/coreboot-v2/geodelx.mk
# kernel configuration (for LAB)
Modified: buildrom-devel/config/platforms/norwich.conf =================================================================== --- buildrom-devel/config/platforms/norwich.conf 2008-02-19 15:47:25 UTC (rev 119) +++ buildrom-devel/config/platforms/norwich.conf 2008-02-19 18:03:58 UTC (rev 120) @@ -13,7 +13,7 @@ # Targets
KERNEL_MK=$(PACKAGE_DIR)/kernel/norwich.mk -CBV2_MK=$(PACKAGE_DIR)/coreboot-v2/norwich.mk +CBV2_MK=$(PACKAGE_DIR)/coreboot-v2/geodelx.mk
# kernel configuration (for LAB)
Added: buildrom-devel/packages/coreboot-v2/geodelx.mk =================================================================== --- buildrom-devel/packages/coreboot-v2/geodelx.mk (rev 0) +++ buildrom-devel/packages/coreboot-v2/geodelx.mk 2008-02-19 18:03:58 UTC (rev 120) @@ -0,0 +1,38 @@ +# This target supports all Geode LX platforms +# +ifeq ($(CONFIG_PLATFORM),y) +ifeq ($(CBV2_TAG),) +$(error You need to specify a version to pull in your platform config) +endif +endif + +CBV2_BASE_DIR=svn +CBV2_URL=svn://coreboot.org/repos/trunk/coreboot-v2 +CBV2_TARBALL=coreboot-svn-$(CBV2_TAG).tar.gz +CBV2_PAYLOAD_TARGET=$(CBV2_BUILD_DIR)/payload.$(CBV2_PAYLOAD_FILE_EXT) +VSA_URL=http://www.amd.com/files/connectivitysolutions/geode/geode_lx/ +CBV2_VSA=lx_vsa.36k.bin +TARGET_ROM = $(COREBOOT_VENDOR)-$(COREBOOT_BOARD).rom + +include $(PACKAGE_DIR)/coreboot-v2/coreboot.inc + +$(SOURCE_DIR)/$(CBV2_VSA): + @ echo "Fetching the VSA blob..." + wget -P $(SOURCE_DIR) $(VSA_URL)/$(CBV2_VSA).gz -O $@ + +$(SOURCE_DIR)/$(CBV2_TARBALL): + @ echo "Fetching the coreboot rev $(CBV2_TAG) code..." + @ mkdir -p $(SOURCE_DIR)/coreboot + @ $(BIN_DIR)/fetchsvn.sh $(CBV2_URL) $(SOURCE_DIR)/coreboot \ + $(CBV2_TAG) $(SOURCE_DIR)/$(CBV2_TARBALL) \ + > $(CBV2_FETCH_LOG) 2>&1 + +# Special rule - append the VSA + +$(OUTPUT_DIR)/$(TARGET_ROM): $(CBV2_OUTPUT) $(SOURCE_DIR)/$(CBV2_VSA) + @ mkdir -p $(OUTPUT_DIR) + @ cat $(SOURCE_DIR)/$(CBV2_VSA) $(CBV2_OUTPUT) > $@ + +coreboot: $(OUTPUT_DIR)/$(TARGET_ROM) +coreboot-clean: generic-coreboot-clean +coreboot-distclean: generic-coreboot-distclean