Bläddra i källkod

[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 år sedan
förälder
incheckning
153748cce9
2 ändrade filer med 8 tillägg och 1 borttagningar
  1. 4
    0
      src/arch/i386/Makefile
  2. 4
    1
      src/arch/i386/prefix/lkrnprefix.S

+ 4
- 0
src/arch/i386/Makefile Visa fil

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

+ 4
- 1
src/arch/i386/prefix/lkrnprefix.S Visa fil

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

Laddar…
Avbryt
Spara