1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_VERMAGIC_H
3 #define _ASM_VERMAGIC_H
5 #include <linux/stringify.h>
8 * Add the ARM architecture version to the version magic string
10 #define MODULE_ARCH_VERMAGIC_ARMVSN "ARMv" __stringify(__LINUX_ARM_ARCH__) " "
12 /* Add __virt_to_phys patching state as well */
13 #ifdef CONFIG_ARM_PATCH_PHYS_VIRT
14 #define MODULE_ARCH_VERMAGIC_P2V "p2v8 "
16 #define MODULE_ARCH_VERMAGIC_P2V ""
19 /* Add instruction set architecture tag to distinguish ARM/Thumb kernels */
20 #ifdef CONFIG_THUMB2_KERNEL
21 #define MODULE_ARCH_VERMAGIC_ARMTHUMB "thumb2 "
23 #define MODULE_ARCH_VERMAGIC_ARMTHUMB ""
26 #define MODULE_ARCH_VERMAGIC \
27 MODULE_ARCH_VERMAGIC_ARMVSN \
28 MODULE_ARCH_VERMAGIC_ARMTHUMB \
29 MODULE_ARCH_VERMAGIC_P2V
31 #endif /* _ASM_VERMAGIC_H */