[coreboot] r129 - in buildrom-devel/packages: . geodevsa

svn at coreboot.org svn at coreboot.org
Fri Feb 22 22:52:09 CET 2008


Author: jcrouse
Date: 2008-02-22 22:52:09 +0100 (Fri, 22 Feb 2008)
New Revision: 129

Added:
   buildrom-devel/packages/geodevsa/
   buildrom-devel/packages/geodevsa/amdvsa.inc
   buildrom-devel/packages/geodevsa/geodevsa.mk
Log:
Grr - seriously.  Who manages directories?
Part of the previous patch



Added: buildrom-devel/packages/geodevsa/amdvsa.inc
===================================================================
--- buildrom-devel/packages/geodevsa/amdvsa.inc	                        (rev 0)
+++ buildrom-devel/packages/geodevsa/amdvsa.inc	2008-02-22 21:52:09 UTC (rev 129)
@@ -0,0 +1,21 @@
+# Target file for the AMD VSA binary - included from geodevsa.mk
+
+AMDVSA_URL=http://www.amd.com/files/connectivitysolutions/geode/geode_lx/
+AMDVSA_BIN=amd_vsa_lx_1.01.bin
+
+# 2008-02-19 - the AMD URL above is broken, when trying to wget
+# amd_vsa_lx_1.01.bin.gz it arrives uncompressed instead.  This
+# breakage is expected to be fixed; but to properly
+# handle this temporary situation without breakage down the line,
+# we do the unsual check of the file type below:
+# Jordan
+
+$(SOURCE_DIR)/$(AMDVSA_BIN):
+	@ echo "Fetching the AMD VSA binary..."
+	wget -P $(SOURCE_DIR) $(AMDVSA_URL)/$(AMDVSA_BIN).gz -O $@.gz
+	@ if file $@.gz | grep -q "gzip"; then \
+	gunzip -q $@.gz; else mv $@.gz $@; fi
+
+$(GEODE_UNCOMPRESSED_VSA): $(SOURCE_DIR)/$(AMDVSA_BIN)
+	@ mkdir -p $(shell dirname $(GEODE_UNCOMPRESSED_VSA))
+	@ cp $< $@

Added: buildrom-devel/packages/geodevsa/geodevsa.mk
===================================================================
--- buildrom-devel/packages/geodevsa/geodevsa.mk	                        (rev 0)
+++ buildrom-devel/packages/geodevsa/geodevsa.mk	2008-02-22 21:52:09 UTC (rev 129)
@@ -0,0 +1,33 @@
+# Master targets for VSA manipulation
+
+GEODE_UNCOMPRESSED_VSA=$(OUTPUT_DIR)/vsa/geodevsa.bin
+GEODE_COMPRESSED_VSA=$(OUTPUT_DIR)/vsa/geodevsa.bin.nrv
+GEODE_PADDED_VSA=$(OUTPUT_DIR)/vsa/geodevsa.bin.nrv.pad
+
+GEODE_VSA_SIZE=36864
+
+ifeq ($(CONFIG_COREBOOT_V2),y)
+VSA_BUILD_TARGET = $(GEODE_PADDED_VSA)
+else
+VSA_BUILD_TARGET = $(GEODE_UNCOMPRESSED_VSA)
+endif
+
+include $(PACKAGE_DIR)/geodevsa/amdvsa.inc
+
+$(GEODE_COMPRESSED_VSA): $(GEODE_UNCOMPRESSED_VSA)
+	@ $(STAGING_DIR)/bin/nrv2b e $(GEODE_UNCOMPRESSED_VSA) $@ \
+	> /dev/null 2>&1
+
+$(GEODE_PADDED_VSA): $(GEODE_COMPRESSED_VSA)
+	@ cp $< $@
+	@ (size=`stat -c %s $<`; count=`expr $(GEODE_VSA_SIZE) - $$size`; \
+	dd if=/dev/zero bs=1 count=$$count  >> $@ 2> /dev/null)
+
+geodevsa: $(VSA_BUILD_TARGET)
+
+geodevsa-clean:
+	@ rm -f $(GEODE_UNCOMPRESSED_VSA) $(GEODE_COMPRESSED_VSA)
+	@ rm -f $(GEODE_PADDED_VSA)
+
+geodevsa-distclean:
+	@ rm -rf $(OUTPUT_DIR)/vsa





More information about the coreboot mailing list