[pxe] Use a weak symbol for isapnp_read_port

Use a weak symbol for isapnp_read_port used in pxe_preboot.c, rather
than relying on a common symbol.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-06-24 13:26:57 +01:00
parent c33ff76d8d
commit 97f40c5fcc

View File

@@ -47,7 +47,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include "pxe_call.h" #include "pxe_call.h"
/* Avoid dragging in isapnp.o unnecessarily */ /* Avoid dragging in isapnp.o unnecessarily */
uint16_t isapnp_read_port; uint16_t isapnp_read_port __attribute__ (( weak ));
/** Zero-based versions of PXENV_GET_CACHED_INFO::PacketType */ /** Zero-based versions of PXENV_GET_CACHED_INFO::PacketType */
enum pxe_cached_info_indices { enum pxe_cached_info_indices {