Author: jcrouse Date: 2008-04-11 22:28:36 +0200 (Fri, 11 Apr 2008) New Revision: 144
Added: buildrom-devel/config/payloads/coreinfo.conf buildrom-devel/packages/coreinfo/ buildrom-devel/packages/coreinfo/conf/ buildrom-devel/packages/coreinfo/conf/defconfig buildrom-devel/packages/coreinfo/coreinfo.mk Modified: buildrom-devel/config/payloads/Config.in buildrom-devel/config/payloads/payloads.conf Log: [buildrom]: Add coreinfo to buildrom
Signed-off-by: Jordan Crouse jordan.crouse@amd.com Acked-by: Ward Vandewege ward@gnu.org
Modified: buildrom-devel/config/payloads/Config.in =================================================================== --- buildrom-devel/config/payloads/Config.in 2008-04-11 20:27:01 UTC (rev 143) +++ buildrom-devel/config/payloads/Config.in 2008-04-11 20:28:36 UTC (rev 144) @@ -9,6 +9,9 @@ help Buildrom can build a number of different payloads for the ROM
+config PAYLOAD_COREINFO + bool "Coreinfo" + config PAYLOAD_CUSTOM bool "Custom Payload"
Added: buildrom-devel/config/payloads/coreinfo.conf =================================================================== --- buildrom-devel/config/payloads/coreinfo.conf (rev 0) +++ buildrom-devel/config/payloads/coreinfo.conf 2008-04-11 20:28:36 UTC (rev 144) @@ -0,0 +1,14 @@ +# Configuration file for the coreinfo payload + +# Common configuration options + +PAYLOAD_BUILD=scripts/Makefile.generic + +PAYLOAD_ELF=$(OUTPUT_DIR)/coreinfo-payload.elf +PAYLOAD_COMPRESSED=$(OUTPUT_DIR)/coreinfo-payload.elf.lzma + +PAYLOAD-y=coreinfo +PAYLOAD=coreinfo + +# Add libpayload as a dependency +DEPENDS-y=libpayload
Modified: buildrom-devel/config/payloads/payloads.conf =================================================================== --- buildrom-devel/config/payloads/payloads.conf 2008-04-11 20:27:01 UTC (rev 143) +++ buildrom-devel/config/payloads/payloads.conf 2008-04-11 20:28:36 UTC (rev 144) @@ -24,7 +24,9 @@ PCONF-$(CONFIG_PAYLOAD_MEMTEST) = memtest.conf PCONF-$(CONFIG_PAYLOAD_KERNEL) = kernel.conf PCONF-$(CONFIG_PAYLOAD_CUSTOM) = custom.conf +PCONF-$(CONFIG_PAYLOAD_COREINFO) = coreinfo.conf
+DEPENDS-y= include $(CONFIG_DIR)/payloads/$(PCONF-y)
# Add LZMA if it is enabled and we are using v2
Added: buildrom-devel/packages/coreinfo/conf/defconfig =================================================================== --- buildrom-devel/packages/coreinfo/conf/defconfig (rev 0) +++ buildrom-devel/packages/coreinfo/conf/defconfig 2008-04-11 20:28:36 UTC (rev 144) @@ -0,0 +1,18 @@ +# +# Automatically generated make config: don't edit +# coreinfo version: 0.1.0 +# Wed Apr 9 15:45:52 2008 +# + +# +# General settings +# +CONFIG_SHOW_DATE_TIME=y + +# +# Modules +# +CONFIG_MODULE_COREBOOT=y +CONFIG_MODULE_CPUINFO=y +CONFIG_MODULE_PCI=y +CONFIG_MODULE_NVRAM=y
Added: buildrom-devel/packages/coreinfo/coreinfo.mk =================================================================== --- buildrom-devel/packages/coreinfo/coreinfo.mk (rev 0) +++ buildrom-devel/packages/coreinfo/coreinfo.mk 2008-04-11 20:28:36 UTC (rev 144) @@ -0,0 +1,61 @@ +COREINFO_URL=svn://coreboot.org/repos/trunk/payloads/coreinfo +COREINFO_TAG=3228 + +COREINFO_DIR=$(BUILD_DIR)/coreinfo +COREINFO_SRC_DIR=$(COREINFO_DIR)/svn +COREINFO_STAMP_DIR=$(COREINFO_DIR)/stamps +COREINFO_LOG_DIR=$(COREINFO_DIR)/logs + +ifeq ($(CONFIG_VERBOSE),y) +COREINFO_FETCH_LOG=/dev/stdout +COREINFO_BUILD_LOG=/dev/stdout +else +COREINFO_BUILD_LOG=$(COREINFO_LOG_DIR)/build.log +COREINFO_FETCH_LOG=$(COREINFO_LOG_DIR)/fetch.log +endif + +COREINFO_CONFIG=$(PACKAGE_DIR)/coreinfo/conf/defconfig + +COREINFO_TARBALL=coreinfo-svn-$(COREINFO_TAG).tar.gz + +$(SOURCE_DIR)/$(COREINFO_TARBALL): + @ mkdir -p $(SOURCE_DIR)/coreinfo + @ $(BIN_DIR)/fetchsvn.sh $(COREINFO_URL) $(SOURCE_DIR)/coreinfo \ + $(COREINFO_TAG) $(SOURCE_DIR)/$(COREINFO_TARBALL) \ + > $(COREINFO_FETCH_LOG) 2>&1 + +$(COREINFO_STAMP_DIR)/.unpacked: $(SOURCE_DIR)/$(COREINFO_TARBALL) | $(COREINFO_STAMP_DIR) $(COREINFO_DIR) + @ echo "Unpacking coreinfo..." + @ tar -C $(COREINFO_DIR) -zxf $(SOURCE_DIR)/$(COREINFO_TARBALL) + @ touch $@ + +$(COREINFO_SRC_DIR)/.config: $(COREINFO_STAMP_DIR)/.unpacked + @ cp $(COREINFO_CONFIG) $@ + @ make -C $(COREINFO_SRC_DIR) oldconfig > $(COREINFO_BUILD_LOG) 2>&1 + +$(COREINFO_SRC_DIR)/build/coreinfo.elf: $(COREINFO_SRC_DIR)/.config + @ echo "Building coreinfo..." + @ make -C $(COREINFO_SRC_DIR) LIBPAYLOAD_DIR=$(STAGING_DIR)/libpayload \ + > $(COREINFO_BUILD_LOG) 2>&1 + +$(COREINFO_STAMP_DIR)/.copied: $(COREINFO_SRC_DIR)/build/coreinfo.elf + @ mkdir -p $(shell dirname $(PAYLOAD_ELF)) + @ cp $(COREINFO_SRC_DIR)/build/coreinfo.elf $(PAYLOAD_ELF) + @ touch $@ + +$(COREINFO_STAMP_DIR) $(COREINFO_LOG_DIR): + @ mkdir -p $@ + +coreinfo: $(COREINFO_STAMP_DIR) $(COREINFO_LOG_DIR) $(COREINFO_STAMP_DIR)/.copied + +coreinfo-clean: + @ echo "Cleaning coreinfo..." + @ $(MAKE) -C $(COREINFO_SRC_DIR) clean > /dev/null 2>&1 + @ rm -f $(COREINFO_STAMP_DIR)/.installed + +coreinfo-distclean: + @ rm -rf $(COREINFO_DIR)/* + +coreinfo-extract: $(COREINFO_STAMP_DIR)/.unpacked + +coreinfo-config: