arm: lib: Fix uldivmod.S build on Thumb2
authorMarek Vasut <marex@denx.de>
Thu, 26 May 2016 16:01:41 +0000 (18:01 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 3 Jun 2016 01:21:45 +0000 (21:21 -0400)
commite64d75948446b14ff817c10ae5a65c84b1d24ba7
tree8f19112887a9424422a7d0ffca1fc9ecac445e94
parentc5a543ea2d4bcedd87754b78babb68929cf8ab33
arm: lib: Fix uldivmod.S build on Thumb2

This assembler source won't build in Thumb2 mode, so fix it adding
the necessary Thumb2 conditional macros from unified.h .

This patch also defines CONFIG_THUMB2_KERNEL and CONFIG_ARM_ASM_UNIFIED
which is necessary for correct build of these files both in ARM and
Thumb mode, just like Linux does.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/lib/uldivmod.S