Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[lkrnprefix] Include iPXE version string in image header
Originally-implemented-by: Christian Hesse <list@eworm.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Dec 6, 2013
1 parent 4d9f100 commit 153748c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/arch/i386/Makefile
Expand Up @@ -69,6 +69,10 @@ CFLAGS += -fshort-wchar
#
CFLAGS += -Ui386

# Define version string for lkrnprefix.S
#
CFLAGS_lkrnprefix += -DVERSION="\"$(VERSION)\""

# Locations of utilities
#
ISOLINUX_BIN_LIST := \
Expand Down
5 changes: 4 additions & 1 deletion src/arch/i386/prefix/lkrnprefix.S
Expand Up @@ -127,7 +127,7 @@ realmode_swtch:
start_sys:
.word 0
kernel_version:
.word 0
.word version_string - 0x200
type_of_loader:
.byte 0
loadflags:
Expand Down Expand Up @@ -166,6 +166,9 @@ hardware_subarch:
hardware_subarch_data:
.byte 0, 0, 0, 0, 0, 0, 0, 0

version_string:
.asciz VERSION

/*
We don't need to do too much setup.
Expand Down

0 comments on commit 153748c

Please sign in to comment.