@@ -47,6 +47,7 @@ XARCH_riscv = riscv64
47
47
XARCH = $(or $(XARCH_$(ARCH ) ) ,$(ARCH ) )
48
48
49
49
# map from user input variants to their kernel supported architectures
50
+ ARCH_armthumb = arm
50
51
ARCH_ppc = powerpc
51
52
ARCH_ppc64 = powerpc
52
53
ARCH_ppc64le = powerpc
@@ -63,6 +64,7 @@ IMAGE_x86_64 = arch/x86/boot/bzImage
63
64
IMAGE_x86 = arch/x86/boot/bzImage
64
65
IMAGE_arm64 = arch/arm64/boot/Image
65
66
IMAGE_arm = arch/arm/boot/zImage
67
+ IMAGE_armthumb = arch/arm/boot/zImage
66
68
IMAGE_mips32le = vmlinuz
67
69
IMAGE_mips32be = vmlinuz
68
70
IMAGE_ppc = vmlinux
@@ -83,6 +85,7 @@ DEFCONFIG_x86_64 = defconfig
83
85
DEFCONFIG_x86 = defconfig
84
86
DEFCONFIG_arm64 = defconfig
85
87
DEFCONFIG_arm = multi_v7_defconfig
88
+ DEFCONFIG_armthumb = multi_v7_defconfig
86
89
DEFCONFIG_mips32le = malta_defconfig
87
90
DEFCONFIG_mips32be = malta_defconfig generic/eb.config
88
91
DEFCONFIG_ppc = pmac32_defconfig
@@ -107,6 +110,7 @@ QEMU_ARCH_x86_64 = x86_64
107
110
QEMU_ARCH_x86 = x86_64
108
111
QEMU_ARCH_arm64 = aarch64
109
112
QEMU_ARCH_arm = arm
113
+ QEMU_ARCH_armthumb = arm
110
114
QEMU_ARCH_mips32le = mipsel # works with malta_defconfig
111
115
QEMU_ARCH_mips32be = mips
112
116
QEMU_ARCH_ppc = ppc
@@ -136,6 +140,7 @@ QEMU_ARGS_x86_64 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $(
136
140
QEMU_ARGS_x86 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $(TEST:%=NOLIBC_TEST=% ) "
137
141
QEMU_ARGS_arm64 = -M virt -cpu cortex-a53 -append "panic=-1 $(TEST:%=NOLIBC_TEST=% ) "
138
142
QEMU_ARGS_arm = -M virt -append "panic=-1 $(TEST:%=NOLIBC_TEST=% ) "
143
+ QEMU_ARGS_armthumb = -M virt -append "panic=-1 $(TEST:%=NOLIBC_TEST=% ) "
139
144
QEMU_ARGS_mips32le = -M malta -append "panic=-1 $(TEST:%=NOLIBC_TEST=% ) "
140
145
QEMU_ARGS_mips32be = -M malta -append "panic=-1 $(TEST:%=NOLIBC_TEST=% ) "
141
146
QEMU_ARGS_ppc = -M g3beige -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=% ) "
@@ -161,6 +166,7 @@ endif
161
166
162
167
CFLAGS_i386 = $(call cc-option,-m32)
163
168
CFLAGS_arm = -marm
169
+ CFLAGS_armthumb = -mthumb -march=armv6t2
164
170
CFLAGS_ppc = -m32 -mbig-endian -mno-vsx $(call cc-option,-mmultiple)
165
171
CFLAGS_ppc64 = -m64 -mbig-endian -mno-vsx $(call cc-option,-mmultiple)
166
172
CFLAGS_ppc64le = -m64 -mlittle-endian -mno-vsx $(call cc-option,-mabi=elfv2)
0 commit comments