mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
[linux] Add empty smbios
There exists an smbios userspace library so implementing this is probably possible, but doesn't seem really important to have in userspace. Hence provide a dummy implementation returning an error. Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
9ab6761b9c
commit
aacd1d62fb
@@ -213,6 +213,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#define ERRFILE_login_ui ( ERRFILE_OTHER | 0x00170000 )
|
||||
#define ERRFILE_ib_srpboot ( ERRFILE_OTHER | 0x00180000 )
|
||||
#define ERRFILE_iwmgmt ( ERRFILE_OTHER | 0x00190000 )
|
||||
#define ERRFILE_linux_smbios ( ERRFILE_OTHER | 0x001a0000 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
18
src/include/ipxe/linux/linux_smbios.h
Normal file
18
src/include/ipxe/linux/linux_smbios.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _IPXE_LINUX_SMBIOS_H
|
||||
#define _IPXE_LINUX_SMBIOS_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* iPXE SMBIOS API for linux
|
||||
*
|
||||
*/
|
||||
|
||||
FILE_LICENCE(GPL2_OR_LATER);
|
||||
|
||||
#ifdef SMBIOS_LINUX
|
||||
#define SMBIOS_PREFIX_linux
|
||||
#else
|
||||
#define SMBIOS_PREFIX_linux __linux_
|
||||
#endif
|
||||
|
||||
#endif /* _IPXE_LINUX_SMBIOS_H */
|
||||
@@ -26,6 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
|
||||
/* Include all architecture-independent SMBIOS API headers */
|
||||
#include <ipxe/efi/efi_smbios.h>
|
||||
#include <ipxe/linux/linux_smbios.h>
|
||||
|
||||
/* Include all architecture-dependent SMBIOS API headers */
|
||||
#include <bits/smbios.h>
|
||||
|
||||
Reference in New Issue
Block a user