diff options
author | Tony Lindgren <tony@atomide.com> | 2011-08-23 02:57:23 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-08-23 02:57:23 -0400 |
commit | f41caddbe73f52a42f529d668ce47b4d693fd2c0 (patch) | |
tree | 3c2135db6624d260973fb4b9de542f2ea362439b /arch | |
parent | fcb8ce5cfe30ca9ca5c9a79cdfe26d1993e65e0c (diff) |
omap2+: Use Kconfig symbol in Makefile instead of obj-y
As noted by Grant Likely <grant.likely@secretlab.ca>, omap2+ Makefile unnecessarily
repeats entries for common device init code instead of using Kconfig symbol.
Remove references to hsmmc.o and board-flash.o. Also omap_phy_internal.o
references can be removed once it has some Kconfig symbol to use.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 76 |
1 files changed, 32 insertions, 44 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index f34336560437..b1501bda04b6 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -185,78 +185,66 @@ endif | |||
185 | # Specific board support | 185 | # Specific board support |
186 | obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o | 186 | obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o |
187 | obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o | 187 | obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o |
188 | obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o \ | 188 | obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o |
189 | hsmmc.o | ||
190 | obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o | 189 | obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o |
191 | obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o \ | 190 | obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o |
192 | hsmmc.o | 191 | obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o |
193 | obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o \ | 192 | obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o |
194 | hsmmc.o | 193 | obj-$(CONFIG_MACH_OMAP3530_LV_SOM) += board-omap3logic.o |
195 | obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o \ | 194 | obj-$(CONFIG_MACH_OMAP3_TORPEDO) += board-omap3logic.o |
196 | board-flash.o \ | 195 | obj-$(CONFIG_MACH_ENCORE) += board-omap3encore.o |
197 | hsmmc.o | 196 | obj-$(CONFIG_MACH_OVERO) += board-overo.o |
198 | obj-$(CONFIG_MACH_OMAP3530_LV_SOM) += board-omap3logic.o \ | 197 | obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o |
199 | hsmmc.o | 198 | obj-$(CONFIG_MACH_OMAP3_PANDORA) += board-omap3pandora.o |
200 | obj-$(CONFIG_MACH_OMAP3_TORPEDO) += board-omap3logic.o \ | 199 | obj-$(CONFIG_MACH_OMAP_3430SDP) += board-3430sdp.o |
201 | hsmmc.o | ||
202 | obj-$(CONFIG_MACH_OVERO) += board-overo.o \ | ||
203 | hsmmc.o | ||
204 | obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o \ | ||
205 | hsmmc.o | ||
206 | obj-$(CONFIG_MACH_OMAP3_PANDORA) += board-omap3pandora.o \ | ||
207 | hsmmc.o | ||
208 | obj-$(CONFIG_MACH_OMAP_3430SDP) += board-3430sdp.o \ | ||
209 | hsmmc.o \ | ||
210 | board-flash.o | ||
211 | obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o | 200 | obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o |
212 | obj-$(CONFIG_MACH_NOKIA_RM680) += board-rm680.o \ | 201 | obj-$(CONFIG_MACH_NOKIA_RM680) += board-rm680.o \ |
213 | sdram-nokia.o \ | 202 | sdram-nokia.o |
214 | hsmmc.o | ||
215 | obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o \ | 203 | obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o \ |
216 | sdram-nokia.o \ | 204 | sdram-nokia.o \ |
217 | board-rx51-peripherals.o \ | 205 | board-rx51-peripherals.o \ |
218 | board-rx51-video.o \ | 206 | board-rx51-video.o |
219 | hsmmc.o | ||
220 | obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom.o \ | 207 | obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom.o \ |
221 | board-zoom-peripherals.o \ | 208 | board-zoom-peripherals.o \ |
222 | board-zoom-display.o \ | 209 | board-zoom-display.o \ |
223 | board-flash.o \ | ||
224 | hsmmc.o \ | ||
225 | board-zoom-debugboard.o | 210 | board-zoom-debugboard.o |
226 | obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom.o \ | 211 | obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom.o \ |
227 | board-zoom-peripherals.o \ | 212 | board-zoom-peripherals.o \ |
228 | board-zoom-display.o \ | 213 | board-zoom-display.o \ |
229 | board-flash.o \ | ||
230 | hsmmc.o \ | ||
231 | board-zoom-debugboard.o | 214 | board-zoom-debugboard.o |
232 | obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o \ | 215 | obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o \ |
233 | board-zoom-peripherals.o \ | 216 | board-zoom-peripherals.o \ |
234 | board-zoom-display.o \ | 217 | board-zoom-display.o |
235 | board-flash.o \ | 218 | obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o |
236 | hsmmc.o | ||
237 | obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o \ | ||
238 | hsmmc.o | ||
239 | obj-$(CONFIG_MACH_CM_T3517) += board-cm-t3517.o | 219 | obj-$(CONFIG_MACH_CM_T3517) += board-cm-t3517.o |
240 | obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o \ | 220 | obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o |
241 | hsmmc.o | 221 | obj-$(CONFIG_MACH_OMAP3_TOUCHBOOK) += board-omap3touchbook.o |
242 | obj-$(CONFIG_MACH_OMAP3_TOUCHBOOK) += board-omap3touchbook.o \ | ||
243 | hsmmc.o | ||
244 | obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o \ | 222 | obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o \ |
245 | hsmmc.o \ | ||
246 | omap_phy_internal.o | 223 | omap_phy_internal.o |
247 | obj-$(CONFIG_MACH_OMAP4_PANDA) += board-omap4panda.o \ | 224 | obj-$(CONFIG_MACH_OMAP4_PANDA) += board-omap4panda.o \ |
248 | hsmmc.o \ | 225 | omap_phy_internal.o |
226 | |||
227 | obj-$(CONFIG_MACH_PCM049) += board-omap4pcm049.o \ | ||
249 | omap_phy_internal.o | 228 | omap_phy_internal.o |
250 | 229 | ||
251 | obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o \ | 230 | obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o \ |
252 | omap_phy_internal.o \ | 231 | omap_phy_internal.o |
253 | 232 | ||
254 | obj-$(CONFIG_MACH_CRANEBOARD) += board-am3517crane.o | 233 | obj-$(CONFIG_MACH_CRANEBOARD) += board-am3517crane.o |
255 | 234 | ||
256 | obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o \ | 235 | obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o |
257 | hsmmc.o | ||
258 | obj-$(CONFIG_MACH_TI8168EVM) += board-ti8168evm.o | 236 | obj-$(CONFIG_MACH_TI8168EVM) += board-ti8168evm.o |
237 | |||
259 | # Platform specific device init code | 238 | # Platform specific device init code |
239 | |||
240 | omap-flash-$(CONFIG_MTD_NAND_OMAP2) := board-flash.o | ||
241 | omap-flash-$(CONFIG_MTD_ONENAND_OMAP2) := board-flash.o | ||
242 | obj-y += $(omap-flash-y) $(omap-flash-m) | ||
243 | |||
244 | omap-hsmmc-$(CONFIG_MMC_OMAP_HS) := hsmmc.o | ||
245 | obj-y += $(omap-hsmmc-m) $(omap-hsmmc-y) | ||
246 | |||
247 | |||
260 | usbfs-$(CONFIG_ARCH_OMAP_OTG) := usb-fs.o | 248 | usbfs-$(CONFIG_ARCH_OMAP_OTG) := usb-fs.o |
261 | obj-y += $(usbfs-m) $(usbfs-y) | 249 | obj-y += $(usbfs-m) $(usbfs-y) |
262 | obj-y += usb-musb.o | 250 | obj-y += usb-musb.o |