Author: jcrouse Date: 2008-04-17 01:40:46 +0200 (Thu, 17 Apr 2008) New Revision: 146
Added: buildrom-devel/config/payloads/tint.conf buildrom-devel/packages/tint/ buildrom-devel/packages/tint/tint.mk Modified: buildrom-devel/config/payloads/Config.in buildrom-devel/config/payloads/payloads.conf buildrom-devel/packages/libpayload/libpayload.mk Log: buildrom: Add TINT to buildrom
Signed-off-by: Jordan Crouse jordan.crouse@amd.com Acked-by: Uwe Hermann uwe@hermann-uwe.de
Modified: buildrom-devel/config/payloads/Config.in =================================================================== --- buildrom-devel/config/payloads/Config.in 2008-04-16 23:27:24 UTC (rev 145) +++ buildrom-devel/config/payloads/Config.in 2008-04-16 23:40:46 UTC (rev 146) @@ -47,6 +47,8 @@ depends !PLATFORM_TYAN_S2891 bool "Memtest86"
+config PAYLOAD_TINT + bool "TINT (falling blocks game)" endchoice
choice
Modified: buildrom-devel/config/payloads/payloads.conf =================================================================== --- buildrom-devel/config/payloads/payloads.conf 2008-04-16 23:27:24 UTC (rev 145) +++ buildrom-devel/config/payloads/payloads.conf 2008-04-16 23:40:46 UTC (rev 146) @@ -25,6 +25,7 @@ PCONF-$(CONFIG_PAYLOAD_KERNEL) = kernel.conf PCONF-$(CONFIG_PAYLOAD_CUSTOM) = custom.conf PCONF-$(CONFIG_PAYLOAD_COREINFO) = coreinfo.conf +PCONF-$(CONFIG_PAYLOAD_TINT) = tint.conf
DEPENDS-y= include $(CONFIG_DIR)/payloads/$(PCONF-y)
Added: buildrom-devel/config/payloads/tint.conf =================================================================== --- buildrom-devel/config/payloads/tint.conf (rev 0) +++ buildrom-devel/config/payloads/tint.conf 2008-04-16 23:40:46 UTC (rev 146) @@ -0,0 +1,14 @@ +# Configuration file for the tint payload + +# Common configuration options + +PAYLOAD_BUILD=scripts/Makefile.generic + +PAYLOAD_ELF=$(OUTPUT_DIR)/tint-payload.elf +PAYLOAD_COMPRESSED=$(OUTPUT_DIR)/tint-payload.elf.lzma + +PAYLOAD-y=tint +PAYLOAD=tint + +# Add libpayload as a dependency +DEPENDS-y=libpayload
Modified: buildrom-devel/packages/libpayload/libpayload.mk =================================================================== --- buildrom-devel/packages/libpayload/libpayload.mk 2008-04-16 23:27:24 UTC (rev 145) +++ buildrom-devel/packages/libpayload/libpayload.mk 2008-04-16 23:40:46 UTC (rev 146) @@ -1,5 +1,5 @@ LIBPAYLOAD_URL=svn://coreboot.org/repos/trunk/payloads/libpayload -LIBPAYLOAD_TAG=3235 +LIBPAYLOAD_TAG=3238
LIBPAYLOAD_DIR=$(BUILD_DIR)/libpayload LIBPAYLOAD_SRC_DIR=$(LIBPAYLOAD_DIR)/svn
Added: buildrom-devel/packages/tint/tint.mk =================================================================== --- buildrom-devel/packages/tint/tint.mk (rev 0) +++ buildrom-devel/packages/tint/tint.mk 2008-04-16 23:40:46 UTC (rev 146) @@ -0,0 +1,55 @@ +TINT_ORIG_URL=http://ftp.debian.org/debian/pool/main/t/tint/ +TINT_TARBALL=tint_0.03b.tar.gz +TINT_PATCH_REV=3239 +TINT_PATCH_URL="http://tracker.coreboot.org/trac/coreboot/browser/trunk/payloads/external/ti..." +TINT_PATCH=libpayload_tint.patch + +TINT_DIR=$(BUILD_DIR)/tint +TINT_SRC_DIR=$(TINT_DIR)/tint-0.03b +TINT_STAMP_DIR=$(TINT_DIR)/stamps +TINT_LOG_DIR=$(TINT_DIR)/logs + +ifeq ($(CONFIG_VERBOSE),y) +TINT_BUILD_LOG=/dev/stdout +else +TINT_BUILD_LOG=$(TINT_LOG_DIR)/build.log +endif + +$(SOURCE_DIR)/$(TINT_TARBALL): + @ wget --quiet -P $(SOURCE_DIR) -O $@ $(TINT_ORIG_URL)/$(TINT_TARBALL) + +$(SOURCE_DIR)/$(TINT_PATCH): + @ wget --quiet -P $(SOURCE_DIR) -O $@ $(TINT_PATCH_URL) + +$(TINT_STAMP_DIR)/.unpacked: $(SOURCE_DIR)/$(TINT_TARBALL) | $(TINT_DIR) + @ tar -C $(TINT_DIR) -zxf $(SOURCE_DIR)/$(TINT_TARBALL) + @ mkdir -p $(TINT_STAMP_DIR) + @ touch $@ + +$(TINT_STAMP_DIR)/.patched: $(SOURCE_DIR)/$(TINT_PATCH) $(TINT_STAMP_DIR)/.unpacked + @ cat $(SOURCE_DIR)/$(TINT_PATCH) | patch -d $(TINT_SRC_DIR) -p1 + @ touch $@ + +$(TINT_SRC_DIR)/tint.elf: $(TINT_STAMP_DIR)/.patched | $(TINT_LOG_DIR) + @ echo "Building TINT..." + @ make -C $(TINT_SRC_DIR) LIBPAYLOAD_DIR=$(STAGING_DIR)/libpayload > $(TINT_BUILD_LOG) 2>&1 + +$(TINT_STAMP_DIR)/.copied: $(TINT_SRC_DIR)/tint.elf + @ mkdir -p $(shell dirname $(PAYLOAD_ELF)) + @ cp $(TINT_SRC_DIR)/tint.elf $(PAYLOAD_ELF) + @ touch $@ + +$(TINT_DIR) $(TINT_LOG_DIR): + @ mkdir -p $@ + +tint: $(TINT_STAMP_DIR)/.copied + +tint-clean: + @ echo "Cleaning TINT..." + @ if [ -d $(TINT_SRC_DIR) ]; then \ + make -C $(TINT_SRC_DIR) clean; \ + fi + @ rm -f $(TINT_STAMP_DIR)/.copied + +tint-distclean: + @ rm -rf $(TINT_DIR)