Add more compiler time variables

file:f221ddf69080402a60ad612a4ce63f05be671a6e -> file:0b66a0112e6e4ccb37449cef193ed34831697734
--- a/scripts/mkcompile_h
+++ b/scripts/mkcompile_h
@@ -76,6 +76,20 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
echo \#define LINUX_COMPILE_BY \"`echo $LINUX_COMPILE_BY | $UTS_TRUNCATE`\"
echo \#define LINUX_COMPILE_HOST \"`echo $LINUX_COMPILE_HOST | $UTS_TRUNCATE`\"
+ if [ -z "$KBUILD_BUILD_COMPILEDOMAIN" ]; then
+ domain=$KBUILD_BUILD_COMPILEDOMAIN
+ elif [ -x /bin/dnsdomainname ]; then
+ domain=`dnsdomainname 2> /dev/null`
+ elif [ -x /bin/domainname ]; then
+ domain=`domainname 2> /dev/null`
+ fi
+
+ if [ -n "$domain" ]; then
+ echo \#define LINUX_COMPILE_DOMAIN \"`echo $domain | $UTS_TRUNCATE`\"
+ else
+ echo \#define LINUX_COMPILE_DOMAIN
+ fi
+
echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | tail -n 1`\"
) > .tmpcompile