From cb997b0095e3fb1b2c4f5f39533ebcf0fddb069f Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 6 Mar 2007 15:02:50 +0000 Subject: [PATCH] This adds the well-known defines to build.h. It explicitly clears LANG for each call, so the date and version strings all follow the C locale, instead of the user's locale settings. Signed-off-by: Stefan Reinauer Acked-by: Uwe Hermann git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@204 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 850e2aaf39..a192c89ea4 100644 --- a/Makefile +++ b/Makefile @@ -112,7 +112,11 @@ prepare2: $(Q)cp $(src)/.tmpconfig.h $(obj)/config.h $(Q)echo "#define LINUXBIOS_VERSION \"$(KERNELVERSION)\"" > $(obj)/build.h $(Q)echo "#define LINUXBIOS_EXTRA_VERSION \"$(LINUXBIOS_EXTRA_VERSION)\"" >> $(obj)/build.h - $(Q)echo "#define LINUXBIOS_BUILD \"`date`\"" >> $(obj)/build.h + $(Q)echo "#define LINUXBIOS_BUILD \"`LANG= date`\"" >> $(obj)/build.h + $(Q)echo >> $(obj)/build.h + $(Q)echo "#define LINUXBIOS_COMPILER \"$(shell LANG= $(CC) --version | head -n1)\"" >> $(obj)/build.h + $(Q)echo "#define LINUXBIOS_ASSEMBLER \"$(shell LANG= $(AS) --version | head -n1)\"" >> $(obj)/build.h + $(Q)echo "#define LINUXBIOS_LINKER \"$(shell LANG= $(LD) --version | head -n1)\"" >> $(obj)/build.h clean: $(Q)echo -n "Cleaning up... "