test: rockchip: timer: compile depends on CONFIG_IRQ

Change-Id: Ibe626355a882af3e879a604820b7c685c8bd533d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2018-08-30 16:04:50 +08:00
parent 7623c170e8
commit dbe1e39c43
2 changed files with 3 additions and 1 deletions

View File

@ -5,8 +5,8 @@
#
obj-y += test-rockchip.o
obj-y += test-timer.o
obj-y += test-brom-dnl.o
obj-$(CONFIG_IRQ) += test-timer.o
obj-$(CONFIG_DM_KEY) += test-key.o
obj-$(CONFIG_MMC) += test-emmc.o
obj-$(CONFIG_DM_REGULATOR)+= test-regulator.o

View File

@ -14,7 +14,9 @@ typedef struct board_module {
} board_module_t;
static board_module_t g_board_modules[] = {
#if defined(CONFIG_IRQ)
{ .name = "timer", .test = board_timer_test },
#endif
{ .name = "brom", .test = board_brom_dnl_test },
#if defined(CONFIG_DM_KEY)