]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[lkrnprefix] Include iPXE version string in image header
authorMichael Brown <mcb30@ipxe.org>
Fri, 6 Dec 2013 20:11:36 +0000 (20:11 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 6 Dec 2013 20:11:36 +0000 (20:11 +0000)
Originally-implemented-by: Christian Hesse <list@eworm.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/Makefile
src/arch/i386/prefix/lkrnprefix.S

index 3ee40014e4bfc8c7d555ac58bc49b07d890d3b63..d1b885c87f107c4d5948edeef080a14acc00d47c 100644 (file)
@@ -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      := \
index 690031f0d254859d8292e7c3353ff55062358bf0..624f9b0ad134db0aacd42e29cff65376c865fe85 100644 (file)
@@ -127,7 +127,7 @@ realmode_swtch:
 start_sys:
        .word   0
 kernel_version:
-       .word   0
+       .word   version_string - 0x200
 type_of_loader:
        .byte   0
 loadflags:
@@ -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.