mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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 <stepan@coresystems.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@204 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
3acfef5b84
commit
cb997b0095
1 changed files with 5 additions and 1 deletions
6
Makefile
6
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... "
|
||||
|
|
Loading…
Add table
Reference in a new issue