arm: plat-orion: only build addr-map.c when needed
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 6 Mar 2013 16:59:56 +0000 (17:59 +0100)
committerJason Cooper <jason@lakedaemon.net>
Sun, 17 Mar 2013 18:03:41 +0000 (18:03 +0000)
commitefaaa98d306d5bc52d4856c3758d44585d6abcc1
tree8cd475bf840daac9b9bf7ed56d8aede6d8af98b3
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
arm: plat-orion: only build addr-map.c when needed

-flagmail-match: MVEBU
X-flagmail-match: KIRKWOOD
X-flagmail-match: DOVE

For now, addr-map.c is needed by all 5 Marvell EBU
sub-architectures. However, we are going to introduce the orion-mbus
driver, which will replace the address decoding code from
addr-map.c. In order to ease the migration process, we will do that
one sub-architecture at a time, which will require us to remove the
compilation of addr-map.c one sub-architecture at a time.

Therefore, we split the unconditional obj-y inclusion of addr-map.c
into 5 conditionals obj-$(CONFIG_...) lines, one per sub-architecture.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/plat-orion/Makefile