mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 19:38:37 +03:00
[build] Include version number within only a single object file
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -39,12 +39,13 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#include <ipxe/serial.h>
|
||||
#include <ipxe/init.h>
|
||||
#include <ipxe/image.h>
|
||||
#include <ipxe/version.h>
|
||||
#include <usr/imgmgmt.h>
|
||||
#include "config/console.h"
|
||||
#include "config/serial.h"
|
||||
|
||||
/** The "SYSLINUX" version string */
|
||||
static char __data16_array ( syslinux_version, [] ) = "\r\niPXE " VERSION;
|
||||
static char __bss16_array ( syslinux_version, [32] );
|
||||
#define syslinux_version __use_data16 ( syslinux_version )
|
||||
|
||||
/** The "SYSLINUX" copyright string */
|
||||
@@ -326,6 +327,10 @@ static __asmcall void int22 ( struct i386_all_regs *ix86 ) {
|
||||
/* SYSLINUX derivative ID */
|
||||
ix86->regs.dl = BZI_LOADER_TYPE_IPXE;
|
||||
|
||||
/* SYSLINUX version */
|
||||
snprintf ( syslinux_version, sizeof ( syslinux_version ),
|
||||
"\r\niPXE %s", product_version );
|
||||
|
||||
/* SYSLINUX version and copyright strings */
|
||||
ix86->segs.es = rm_ds;
|
||||
ix86->regs.si = ( ( unsigned ) __from_data16 ( syslinux_version ) );
|
||||
|
||||
Reference in New Issue
Block a user