diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f775a53f8f..b9fca6f548 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -4,6 +4,14 @@ menu "ARM architecture" config SYS_ARCH default "arm" +config SYS_THUMB_BUILD + bool "Build U-Boot using the Thumb instruction set" + help + Use this flag to build U-Boot using the Thumb instruction set for + ARM architectures. Thumb instruction set provides better code + density. For ARM architectures that support Thumb2 this flag will + result in Thumb2 code generated by GCC. + config ARM64 bool diff --git a/configs/ipq807x_tiny_defconfig b/configs/ipq807x_tiny_defconfig index 9633b7fe97..becb277faf 100644 --- a/configs/ipq807x_tiny_defconfig +++ b/configs/ipq807x_tiny_defconfig @@ -314,3 +314,5 @@ CONFIG_SYS_HZ=1000 # CONFIG_LZ4 is not set # CONFIG_ERRNO_STR is not set # CONFIG_UNIT_TEST is not set +CONFIG_HAS_THUMB2=y +CONFIG_SYS_THUMB_BUILD=y \ No newline at end of file