Patrick Georgi wrote:
> Also, build.h is atomically generated by writing to some other
> file, then renaming.

> +     printf "#define COREBOOT_VERSION \"$(KERNELVERSION)\"\n" > 
> $(obj)/build.ht
> +     printf "#define COREBOOT_EXTRA_VERSION \"$(COREBOOT_EXTRA_VERSION)\"\n" 
> >> $(obj)/build.ht
> +     printf "#define COREBOOT_BUILD \"`LANG= date`\"\n" >> $(obj)/build.ht
> +     printf "\n" >> $(obj)/build.ht
> +     printf "#define COREBOOT_COMPILER \"$(shell LANG= $(CC) --version | 
> head -n1)\"\n" >> $(obj)/build.ht
> +     printf "#define COREBOOT_ASSEMBLER \"$(shell LANG= $(AS) --version | 
> head -n1)\"\n" >> $(obj)/build.ht
> +     printf "#define COREBOOT_LINKER \"$(shell LANG= $(LD) --version | head 
> -n1)\"\n" >> $(obj)/build.ht
> +     printf "#define COREBOOT_COMPILE_TIME \"`LANG= date +%T`\"\n" >> 
> $(obj)/build.ht
> +     printf "#define COREBOOT_COMPILE_BY \"$(subst \,@,$(shell 
> PATH=$$PATH:/usr/ucb whoami))\"\n" >> $(obj)/build.ht
> +     printf "#define COREBOOT_COMPILE_HOST \"$(shell hostname)\"\n" >> 
> $(obj)/build.ht
> +     printf "#define COREBOOT_COMPILE_DOMAIN \"$(shell test `uname -s` = 
> "Linux" && dnsdomainname || domainname)\"\n" >> $(obj)/build.ht
> +     printf "#include \"config.h\"\n" >> $(obj)/build.ht
> +     mv $(obj)/build.ht $(obj)/build.h

Is build.h strictly neccessary for the build? If yes, why?


//Peter

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to