mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Show version.fs and openbios-version.h generation
Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@567 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -32,6 +32,8 @@ CFLAGS+= -Werror
|
|||||||
INCLUDES := -I$(SRCDIR)/include -I$(SRCDIR)/kernel/include -I$(ODIR)/target/include
|
INCLUDES := -I$(SRCDIR)/include -I$(SRCDIR)/kernel/include -I$(ODIR)/target/include
|
||||||
AS_FLAGS+= -g
|
AS_FLAGS+= -g
|
||||||
|
|
||||||
|
quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))
|
||||||
|
|
||||||
#
|
#
|
||||||
# pre rules
|
# pre rules
|
||||||
#
|
#
|
||||||
@@ -41,12 +43,14 @@ all: versions dictionaries host-libraries target-libraries host-executables targ
|
|||||||
versions: $(ODIR)/target/include/openbios-version.h $(ODIR)/forth/version.fs
|
versions: $(ODIR)/target/include/openbios-version.h $(ODIR)/forth/version.fs
|
||||||
|
|
||||||
$(ODIR)/forth/version.fs:
|
$(ODIR)/forth/version.fs:
|
||||||
|
$(call quiet-command,true, " GEN $(TARGET_DIR)$@")
|
||||||
@DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \
|
@DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \
|
||||||
( echo ": builddate \" $$DATE\" ; " ; \
|
( echo ": builddate \" $$DATE\" ; " ; \
|
||||||
echo ": version \" $(VERSION)\" ; " ; ) \
|
echo ": version \" $(VERSION)\" ; " ; ) \
|
||||||
> $(dir $@)/version.fs
|
> $(dir $@)/version.fs
|
||||||
|
|
||||||
$(ODIR)/target/include/openbios-version.h:
|
$(ODIR)/target/include/openbios-version.h:
|
||||||
|
$(call quiet-command,true, " GEN $(TARGET_DIR)$@")
|
||||||
@DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \
|
@DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \
|
||||||
( echo "#define OPENBIOS_BUILD_DATE \"$$DATE\"" ; \
|
( echo "#define OPENBIOS_BUILD_DATE \"$$DATE\"" ; \
|
||||||
echo "#define OPENBIOS_VERSION_STR \"$(VERSION)\"" ; ) \
|
echo "#define OPENBIOS_VERSION_STR \"$(VERSION)\"" ; ) \
|
||||||
@@ -65,6 +69,4 @@ build-verbose: info build
|
|||||||
|
|
||||||
build: all
|
build: all
|
||||||
|
|
||||||
quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))
|
|
||||||
|
|
||||||
include rules.mak
|
include rules.mak
|
||||||
|
|||||||
Reference in New Issue
Block a user