[coreboot] New patch to review for coreboot: f11e706 build.h: Re-run hostname if it doesn't take '-s' option.

Zheng Bao (zheng.bao@amd.com) gerrit at coreboot.org
Fri Sep 28 08:21:14 CEST 2012


Zheng Bao (zheng.bao at amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1546

-gerrit

commit f11e706dcf93e0f8c87191ab99622fa55959786e
Author: Zheng Bao <fishbaozi at gmail.com>
Date:   Fri Sep 28 16:06:44 2012 +0800

    build.h: Re-run hostname if it doesn't take '-s' option.
    
    Cygwin's hostname comes from coreutils, which does not support all
    the options that some other hostname implementations provide.
    
    Change-Id: Ia6bd9157c351f440ad225046638a6bf3f9cfba11
    Signed-off-by: Zheng Bao <zheng.bao at amd.com>
    Signed-off-by: Zheng Bao <fishbaozi at gmail.com>
---
 Makefile.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.inc b/Makefile.inc
index bcf0e6e..24b3c34 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -186,7 +186,7 @@ $(obj)/build.h: .xcompile
 	printf "#define COREBOOT_LINKER \"$(shell LANG= $(LD) --version | head -n1)\"\n" >> $(obj)/build.ht
 	printf "#define COREBOOT_COMPILE_TIME \"`LANG= date +%T`\"\n" >> $(obj)/build.ht
 	printf "#define COREBOOT_COMPILE_BY \"$(subst \,@,$(shell PATH=$$PATH:/usr/ucb whoami))\"\n" >> $(obj)/build.ht
-	printf "#define COREBOOT_COMPILE_HOST \"$(shell hostname -s 2>/dev/null)\"\n" >> $(obj)/build.ht
+	printf "#define COREBOOT_COMPILE_HOST \"$(shell hostname -s 2>/dev/null || hostname 2>/dev/null)\"\n" >> $(obj)/build.ht
 	printf "#define COREBOOT_COMPILE_DOMAIN \"$(shell test `uname -s` = "Linux" && dnsdomainname || domainname 2>/dev/null)\"\n" >> $(obj)/build.ht
 	printf "#endif\n" >> $(obj)/build.ht
 	mv $(obj)/build.ht $(obj)/build.h




More information about the coreboot mailing list