[coreboot] r142 - buildrom-devel/scripts
svn at coreboot.org
svn at coreboot.org
Fri Apr 11 22:14:30 CEST 2008
Author: jcrouse
Date: 2008-04-11 22:14:30 +0200 (Fri, 11 Apr 2008)
New Revision: 142
Modified:
buildrom-devel/scripts/Build.settings
Log:
buildrom: Construct generic calls to figure out the custom config filename
A set of custom generic calls that make it easier to construct a filename
for a custom configuration
Signed-off-by: Jordan Crouse <jordan.crouse at amd.com>
Acked-by: Ward Vandewege <ward at gnu.org>
Modified: buildrom-devel/scripts/Build.settings
===================================================================
--- buildrom-devel/scripts/Build.settings 2008-04-05 04:28:24 UTC (rev 141)
+++ buildrom-devel/scripts/Build.settings 2008-04-11 20:14:30 UTC (rev 142)
@@ -81,3 +81,13 @@
PARALLEL_MAKE=-j$(CONFIG_MAKE_JOBS)
export CC AS CFLAGS LDFLAGS ASFLAGS LIBS PARALLEL_MAKE
+
+# Several functions to get a custom config file name
+
+custom-get-arch = $(if $(CONFIG_TARGET_64BIT),x86_64,i386)
+
+custom-config-name = $(shell \
+ echo "$(PACKAGE_DIR)/$(1)/conf/customconfig--$(PAYLOAD)--$(call custom-get-arch)--$(COREBOOT_VENDOR)--$(COREBOOT_BOARD)")
+
+custom-config-exists = $(shell if [ -f $(call custom-config-name,$(1)) ]; \
+ then echo 1; fi)
More information about the coreboot
mailing list