vermagic.h 800 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_VERMAGIC_H
  3. #define _ASM_VERMAGIC_H
  4. #include <linux/stringify.h>
  5. /*
  6. * Add the ARM architecture version to the version magic string
  7. */
  8. #define MODULE_ARCH_VERMAGIC_ARMVSN "ARMv" __stringify(__LINUX_ARM_ARCH__) " "
  9. /* Add __virt_to_phys patching state as well */
  10. #ifdef CONFIG_ARM_PATCH_PHYS_VIRT
  11. #define MODULE_ARCH_VERMAGIC_P2V "p2v8 "
  12. #else
  13. #define MODULE_ARCH_VERMAGIC_P2V ""
  14. #endif
  15. /* Add instruction set architecture tag to distinguish ARM/Thumb kernels */
  16. #ifdef CONFIG_THUMB2_KERNEL
  17. #define MODULE_ARCH_VERMAGIC_ARMTHUMB "thumb2 "
  18. #else
  19. #define MODULE_ARCH_VERMAGIC_ARMTHUMB ""
  20. #endif
  21. #define MODULE_ARCH_VERMAGIC \
  22. MODULE_ARCH_VERMAGIC_ARMVSN \
  23. MODULE_ARCH_VERMAGIC_ARMTHUMB \
  24. MODULE_ARCH_VERMAGIC_P2V
  25. #endif /* _ASM_VERMAGIC_H */