summaryrefslogtreecommitdiffstats
path: root/linux/linux-support.mk
diff options
context:
space:
mode:
Diffstat (limited to 'linux/linux-support.mk')
-rw-r--r--linux/linux-support.mk54
1 files changed, 54 insertions, 0 deletions
diff --git a/linux/linux-support.mk b/linux/linux-support.mk
new file mode 100644
index 0000000..5efeafe
--- /dev/null
+++ b/linux/linux-support.mk
@@ -0,0 +1,54 @@
+LINUX_VERSION = 6.6
+# Changing this number can potentially break the build,
+# silently or violently, so make sure everything still
+# works afterwards
+
+SUPPORTED_LINUX_ARCHES =\
+ ALPHA\
+ AMD64\
+ AMD64_X32\
+ ARM_OABI\
+ ARM_EABI\
+ IA64\
+ M68K\
+ MICROBLAZE\
+ MIPS_O32\
+ MIPS_N32\
+ MIPS_N64\
+ PARISC_32\
+ PARISC_64\
+ POWERPC_32\
+ POWERPC_64\
+ POWERPC_NOSPU\
+ POWERPC_SPU\
+ S390_32\
+ S390_64\
+ SH\
+ SPARC_32\
+ SPARC_64\
+ I386\
+ XTENSA
+
+OPERATING_SYSTEMS += linux
+NPARAMS += 8
+
+
+SUPPORTED_LINUX_ARCHES != printf '%s\n' $(SUPPORTED_LINUX_ARCHES) $(SUPPORTED_ARCHES) | sort | uniq -d
+
+
+include linux/download.mk
+include linux/errors.mk
+include linux/signals.mk
+include linux/syscalls.mk
+include linux/syscall-table.mk
+include linux/symbols.mk
+include linux/types.mk
+
+
+HDR += generated/linux-arches.h
+
+generated/linux-arches.h: linux/linux-support.mk
+ mkdir -p -- generated
+ (printf '\43define LIST_LINUX_ARCHES(X, D)\\\n' && \
+ printf '\tX(%s) D\\\n' $(SUPPORTED_LINUX_ARCHES); \
+ ) | sed '$$s/ D\\//' > $@