Add functionlity to the scripts to replace tokens in kernel headers
based on architecture.
diff --git a/libc/kernel/tools/defaults.py b/libc/kernel/tools/defaults.py
index 6c7efd6..da02481 100644
--- a/libc/kernel/tools/defaults.py
+++ b/libc/kernel/tools/defaults.py
@@ -48,6 +48,11 @@
"mips": {"CONFIG_32BIT":"1"},
}
+kernel_arch_token_replacements = {
+ "arm": {},
+ "x86": {},
+ "mips": {"off_t":"__kernel_off_t"},
+ }
# Replace tokens in the output according to this mapping
kernel_token_replacements = {
"asm": "__asm__",