NetBSD/usr.sbin/amd/libamu/mkconf
nakayama 25cffdf24e Embed machine and cpu architecture correctly by target host environmet,
not by build host.

Pointed out by Davide Zanon and Rui Paulo in current-users@.
2005-08-09 21:49:23 +00:00

41 lines
1.0 KiB
Plaintext

# $NetBSD: mkconf,v 1.4 2005/08/09 21:49:23 nakayama Exp $
#
# mkconf
# Generate local configuration parameters for amd
#
cat << __EOF
/* Automatically generated file, do not edit! */
/* Define name of host machine's architecture (eg. sun4) */
#define HOST_ARCH MACHINE
/* Define name of host machine's cpu (eg. sparc) */
#define HOST_CPU MACHINE_ARCH
/* Define the header version of (linux) hosts (eg. 2.2.10) */
#define HOST_HEADER_VERSION "$1"
/* Define name of host */
#define HOST_NAME "`hostname`"
/* Define name and version of host machine (eg. solaris2.5.1) */
#define HOST_OS "netbsd$1"
/* Define only name of host machine OS (eg. solaris2) */
#define HOST_OS_NAME "netbsd`echo $1 | cut -d. -f 1`"
/* Define only version of host machine (eg. 2.5.1) */
#define HOST_OS_VERSION "$1"
/* Define name of host machine's vendor (eg. sun) */
#define HOST_VENDOR "The NetBSD Foundation, Inc."
/* Define user name */
#define USER_NAME "`whoami`"
/* Define configuration date */
#define CONFIG_DATE "`date`"
__EOF