Browse Source

[lkrnprefix] Include iPXE version string in image header

Originally-implemented-by: Christian Hesse <list@eworm.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
153748cce9
2 changed files with 8 additions and 1 deletions
  1. 4
    0
      src/arch/i386/Makefile
  2. 4
    1
      src/arch/i386/prefix/lkrnprefix.S

+ 4
- 0
src/arch/i386/Makefile View File

69
 #
69
 #
70
 CFLAGS			+= -Ui386
70
 CFLAGS			+= -Ui386
71
 
71
 
72
+# Define version string for lkrnprefix.S
73
+#
74
+CFLAGS_lkrnprefix	+= -DVERSION="\"$(VERSION)\""
75
+
72
 # Locations of utilities
76
 # Locations of utilities
73
 #
77
 #
74
 ISOLINUX_BIN_LIST	:= \
78
 ISOLINUX_BIN_LIST	:= \

+ 4
- 1
src/arch/i386/prefix/lkrnprefix.S View File

127
 start_sys:
127
 start_sys:
128
 	.word	0
128
 	.word	0
129
 kernel_version:
129
 kernel_version:
130
-	.word	0
130
+	.word	version_string - 0x200
131
 type_of_loader:
131
 type_of_loader:
132
 	.byte	0
132
 	.byte	0
133
 loadflags:
133
 loadflags:
166
 hardware_subarch_data:
166
 hardware_subarch_data:
167
 	.byte	0, 0, 0, 0, 0, 0, 0, 0
167
 	.byte	0, 0, 0, 0, 0, 0, 0, 0
168
 
168
 
169
+version_string:
170
+	.asciz	VERSION
171
+
169
 /*
172
 /*
170
 	We don't need to do too much setup.
173
 	We don't need to do too much setup.
171
 
174
 

Loading…
Cancel
Save