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.mk60
1 files changed, 44 insertions, 16 deletions
diff --git a/linux/linux-support.mk b/linux/linux-support.mk
index c4a3f94..6756e87 100644
--- a/linux/linux-support.mk
+++ b/linux/linux-support.mk
@@ -6,30 +6,45 @@ LINUX_VERSION = 6.6
# works afterwards
SUPPORTED_LINUX_ARCHES =\
- ALPHA\
+ ALPHA_LE\
+ ALPHA_BE\
AMD64\
AMD64_X32\
- ARM_OABI\
- ARM_EABI\
- IA64\
+ ARM_OABI_LE\
+ ARM_OABI_BE\
+ ARM_EABI_LE\
+ ARM_EABI_BE\
+ IA64_LE\
+ IA64_BE\
M68K\
- MICROBLAZE\
- MIPS_O32\
- MIPS_N32\
- MIPS_N64\
+ MICROBLAZE_32_LE\
+ MICROBLAZE_32_BE\
+ MIPS_O32_LE\
+ MIPS_O32_BE\
+ MIPS_N32_LE\
+ MIPS_N32_BE\
+ MIPS_N64_LE\
+ MIPS_N64_BE\
PARISC_32\
PARISC_64\
- POWERPC_32\
- POWERPC_64\
- POWERPC_NOSPU\
- POWERPC_SPU\
+ POWERPC_32_LE\
+ POWERPC_32_BE\
+ POWERPC_64_LE\
+ POWERPC_64_BE\
+ POWERPC_NOSPU_LE\
+ POWERPC_NOSPU_BE\
+ POWERPC_SPU_LE\
+ POWERPC_SPU_BE\
S390_32\
S390_64\
- SH\
+ SH_LE\
+ SH_BE\
SPARC_32\
- SPARC_64\
+ SPARC_64_LE\
+ SPARC_64_BE\
I386\
- XTENSA
+ XTENSA_LE\
+ XTENSA_BE
OPERATING_SYSTEMS += linux
NPARAMS += 8
@@ -45,6 +60,7 @@ include linux/download.mk
include linux/errors.mk
include linux/integers.mk
include linux/signals.mk
+include linux/structs.mk
include linux/syscalls.mk
include linux/syscall-table.mk
include linux/symbols.mk
@@ -57,4 +73,16 @@ 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\\//' > $@
+ ) | sed '/X()/d' | sed '$$s/\\$$//' | sed '$$s/ D$$//' > $@
+ (printf '\43define LIST_LINUX_ARCHES_WITH_BIENDIAN(X, D)\\\n' && \
+ printf '\tX(%s) D\\\n' $(SUPPORTED_LINUX_ARCHES) \
+ | sed -n 's/_LE)/)/p'; \
+ ) | sed '/X()/d' | sed '$$s/\\$$//' | sed '$$s/ D$$//' >> $@
+ (printf '\43define LIST_LINUX_ARCHES_WITH_UNIENDIAN(X, D)\\\n' && \
+ printf '\tX(%s) D\\\n' $(SUPPORTED_LINUX_ARCHES); \
+ ) | sed '/_[LB]E)/d' \
+ | sed '/X()/d' | sed '$$s/\\$$//' | sed '$$s/ D$$//' >> $@
+ (printf '\43define LIST_LINUX_ARCHES_WITHOUT_ENDIANS(X, D)\\\n' && \
+ printf '\tX(%s) D\\\n' $(SUPPORTED_LINUX_ARCHES); \
+ ) | sed 's/_[LB]E)/)/' | uniq \
+ | sed '/X()/d' | sed '$$s/\\$$//' | sed '$$s/ D$$//' >> $@