aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/dhcparch.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2023-01-22 16:54:20 +0000
committerMichael Brown <mcb30@ipxe.org>2023-01-22 17:45:34 +0000
commit2061d658b3d199ec84976e6a573f68424369be69 (patch)
tree0645e9e632cade65e7c9bddd5a4dce313c35b8ef /src/include/ipxe/dhcparch.h
parent2ef5f5e05efa3ab29a207b6641b0ac6afefd3f0b (diff)
downloadipxe-2061d658b3d199ec84976e6a573f68424369be69.tar.gz
[dhcp] Simplify platform-specific client architecture definitions
Move the platform-specific DHCP client architecture definitions to header files of the form <ipxe/$(PLATFORM)/dhcparch.h>. This simplifies the directory structure and allows the otherwise unused arch/$(ARCH)/include/$(PLATFORM) to be removed from the include directory search path, which avoids the confusing situation in which a header file may potentially be accessed through more than one path. For Linux userspace binaries on any architecture, use the EFI values for that architecture by delegating to the EFI header file. This avoids the need to explicitly select values for Linux userspace binaries for each architecture. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/dhcparch.h')
-rw-r--r--src/include/ipxe/dhcparch.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/ipxe/dhcparch.h b/src/include/ipxe/dhcparch.h
new file mode 100644
index 000000000..89ecfb31e
--- /dev/null
+++ b/src/include/ipxe/dhcparch.h
@@ -0,0 +1,16 @@
+#ifndef _IPXE_DHCPARCH_H
+#define _IPXE_DHCPARCH_H
+
+/** @file
+ *
+ * DHCP client architecture definitions
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+
+/* Include platform-specific client architecture definitions */
+#define PLATFORM_DHCPARCH(_platform) <ipxe/_platform/dhcparch.h>
+#include PLATFORM_DHCPARCH(PLATFORM)
+
+#endif /* _IPXE_DHCPARCH_H */