27 lines · 642 B · Text
RawDownload
#!/bin/sh# SPDX-License-Identifier: GPL-2.0 UTS_MACHINE=$1CC_VERSION="$2"LD=$3 if test -z "$KBUILD_BUILD_USER"; then	LINUX_COMPILE_BY=$(whoami | sed 's/\\/\\\\/')else	LINUX_COMPILE_BY=$KBUILD_BUILD_USERfiif test -z "$KBUILD_BUILD_HOST"; then	LINUX_COMPILE_HOST=`uname -n`else	LINUX_COMPILE_HOST=$KBUILD_BUILD_HOSTfi LD_VERSION=$(LC_ALL=C $LD -v | head -n1 |		sed -e 's/(compatible with [^)]*)//' -e 's/[[:space:]]*$//') cat <<EOF#define UTS_MACHINE		"${UTS_MACHINE}"#define LINUX_COMPILE_BY	"${LINUX_COMPILE_BY}"#define LINUX_COMPILE_HOST	"${LINUX_COMPILE_HOST}"#define LINUX_COMPILER		"${CC_VERSION}, ${LD_VERSION}"EOF

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t