aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/linux
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/linux
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/linux')
-rw-r--r--src/include/ipxe/linux/dhcparch.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/ipxe/linux/dhcparch.h b/src/include/ipxe/linux/dhcparch.h
new file mode 100644
index 000000000..464aa5168
--- /dev/null
+++ b/src/include/ipxe/linux/dhcparch.h
@@ -0,0 +1,20 @@
+#ifndef _IPXE_LINUX_DHCPARCH_H
+#define _IPXE_LINUX_DHCPARCH_H
+
+/** @file
+ *
+ * DHCP client architecture definitions
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+
+/*
+ * There are no specification-defined values for DHCP architecture for
+ * PXE clients running as Linux userspace applications. Pretend to be
+ * the equivalent EFI client.
+ *
+ */
+#include <ipxe/efi/dhcparch.h>
+
+#endif /* _IPXE_LINUX_DHCPARCH_H */