Improve build transparency (documentation and inline version number)
This commit is contained in:
parent
e1bfaa5d88
commit
1d64c2364d
3 changed files with 27 additions and 4 deletions
7
Makefile
7
Makefile
|
@ -2,12 +2,13 @@ PROGRAMS = hello.com
|
|||
DISTFILES = $(PROGRAMS)
|
||||
ROMS =
|
||||
|
||||
QEMU_ARCH = $(shell uname -m)
|
||||
QEMU = qemu-system-$(QEMU_ARCH)
|
||||
QEMU = qemu-system-i386
|
||||
QEMU_ARGS = $(addprefix --option-rom ,$(ROMS))
|
||||
|
||||
VERSION = $(shell git log -1 --format=%cd --date=format:%Y%m%d)
|
||||
|
||||
NASM = nasm
|
||||
NASM_ARGS = -s -Ilib
|
||||
NASM_ARGS = -s -Ilib -DVERSION=$(VERSION)
|
||||
|
||||
KVM = $(shell test -w /dev/kvm && echo 1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue