summaryrefslogtreecommitdiff
path: root/util/genbuild_h
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2015-03-07 00:49:21 +0100
committerPatrick Georgi <pgeorgi@google.com>2015-03-09 17:53:16 +0100
commit510d1bd3b06504b2ad407060b5a94cdd98b58c42 (patch)
tree5f4401943869baab4f183ebf761d92a094154809 /util/genbuild_h
parentb706288d95824f09de15b7d6343ef169b010ff3e (diff)
downloadcoreboot-510d1bd3b06504b2ad407060b5a94cdd98b58c42.tar.xz
build.h: remove variable for the builduser, -hostname and -domain
They don't contain any useful information and also block us from having reproducible builds. Change-Id: Ib03887f6a548230de9f75fb308c73a800e180c48 Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Reviewed-on: http://review.coreboot.org/8616 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <gaumless@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/genbuild_h')
-rwxr-xr-xutil/genbuild_h/genbuild_h.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh
index e79e41b3e1..d500d252bd 100755
--- a/util/genbuild_h/genbuild_h.sh
+++ b/util/genbuild_h/genbuild_h.sh
@@ -18,41 +18,6 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
-#get the domain name without hanging the build for an extended period if
-#the build system doesn't return a domain name as can happen with the
-#dnsdomainname or domainname commands by themselves.
-get_domainname() {
- MAX_DELAY=1 #maximum time to wait in seconds
- TIMEOUT_HOSTNAME_TEXT=unknown.domain #text to return if domain name is not found
- TEMPFILE_NAME=coreboot_hostname.txt #temp file to put the domain name into
-
- # Find the domain name
- if [ "$(uname -s)" = "Linux" ]
- then
- dnsdomainname 2>/dev/null > "$TEMPFILE_NAME" &
- else
- domainname 2>/dev/null >"$TEMPFILE_NAME" &
- fi
-
- # Get ready to kill the process if it's taking too long
- PID=$!
- sleep "$MAX_DELAY" && kill "$PID" 2>/dev/null &
- wait "$PID" 2>/dev/null
-
- # See what was found, print our timeout text if the process was killed
- # or the domain name if we found one.
- HN=$(cat "$TEMPFILE_NAME")
- if [ "$HN" = "" ]
- then
- printf "%s" "$TIMEOUT_HOSTNAME_TEXT"
- else
- printf "%s" "$HN"
- fi
-
- # Clean up and exit.
- rm -f "$TEMPFILE_NAME"
-}
-
#Print out the information that goes into build.h
printf "/* build system definitions (autogenerated) */\n"
printf "#ifndef __BUILD_H\n"
@@ -79,9 +44,4 @@ printf "#define COREBOOT_BUILD_WEEKDAY_BCD 0x%s\n" "$(date +%w)"
printf "#define COREBOOT_DMI_DATE \"%s\"\n" "$(date +%m/%d/%Y)"
printf "\n"
printf "#define COREBOOT_COMPILE_TIME \"%s\"\n" "$(date +%T)"
-printf "#define COREBOOT_COMPILE_BY \"%s\"\n" "$(whoami)"
-printf "#define COREBOOT_COMPILE_HOST \"%s\"\n" "$(hostname -s 2>/dev/null)"
-printf "#define COREBOOT_COMPILE_DOMAIN \""
-get_domainname
-printf "\"\n"
printf "#endif\n"