This series, intended for 3.7 cleanup, cleans up the Makefile in
arch/arm/mach-omap2. It places PRCM-related lines in the PRCM
sections, clock lines in the clock sections, etc.; and fixes some
formatting and whitespace. This is meant to serve as a base for
future cleanups to avoid conflicts as lines get removed.
Boot and build test logs can be found at:
http://www.pwsan.com/omap/testlogs/makefile_cleanup_3.7/20120905143119/
- Paul
---
object size (delta in bytes from test_v3.6-rc4 (4cbe5a555fa58a79b6ecbb6c531b8bab0650778d)):
text data bss total kernel
0 0 0 0 2430_testconfig
0 0 0 0 5912osk_testconfig
0 0 0 0 am33xx_testconfig
+8 0 0 +8 n800_b_testconfig
+8 0 0 +8 n800_multi_omap2xxx
+8 0 0 +8 n800_testconfig
0 0 0 0 omap1510_defconfig
0 0 0 0 omap1_defconfig
+32 0 0 +32 omap2_4_testconfig
+8 0 0 +8 omap2plus_defconfig
+16 0 0 +16 omap2plus_no_pm
-8 0 0 -8 omap3_4_testconfig
-56 0 0 -56 omap3_testconfig
0 0 0 0 omap4_testconfig
0 0 0 0 rmk_omap3430_ldp_oldconfig
0 0 0 0 rmk_omap4430_sdp_oldconfig
Paul Walmsley (6):
ARM: OMAP2+: clean up whitespace in Makefile
ARM: OMAP2+: clean up omap_hwmod.o build directives in Makefile
ARM: OMAP2+: move MPU INTCPS, secure monitor, SDRC build directives in Makefile
ARM: OMAP2+: clean up OMAP4 PRM & sleep build directives in Makefile
ARM: OMAP2+: clean up OMAP clock Makefile sections
ARM: OMAP2+: clean up PRCM sections of the Makefile
arch/arm/mach-omap2/Makefile | 108 +++++++++++++++++-------------------------
1 file changed, 44 insertions(+), 64 deletions(-)
Convert spaces that should be tabs into tabs. Fix another minor
formatting issue.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
---
arch/arm/mach-omap2/Makefile | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
@@ -23,7 +23,7 @@ ifneq ($(CONFIG_SND_OMAP_SOC_MCBSP),)obj-y+=mcbsp.oendif-obj-$(CONFIG_TWL4030_CORE)+=omap_twl.o+obj-$(CONFIG_TWL4030_CORE)+=omap_twl.oobj-$(CONFIG_SOC_HAS_OMAP2_SDRC)+=sdrc.o# SMP support ONLY available for OMAP4
Move the omap_hwmod_common_data.o build directive down to the hwmod
data Makefile section where it belongs. Move the omap_hwmod.o build
directive to the top 'Common support' line, since we have no separate
hwmod code Makefile section, and it's currently needed for all OMAP2+.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
---
arch/arm/mach-omap2/Makefile | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
@@ -6,23 +6,27 @@obj-y:=id.oio.ocontrol.omux.odevices.oserial.ogpmc.otimer.opm.o\common.ogpio.odma.owd_timer.odisplay.oi2c.ohdq1w.oomap_hwmod.o-omap-2-3-common=irq.oclock-common=clock.oclock_common_data.o\clkt_dpll.oclkt_clksel.o-secure-common=omap-smc.oomap-secure.o-obj-$(CONFIG_ARCH_OMAP2)+=$(omap-2-3-common)-obj-$(CONFIG_ARCH_OMAP3)+=$(omap-2-3-common)$(secure-common)-obj-$(CONFIG_ARCH_OMAP4)+=prm44xx.o$(secure-common)-obj-$(CONFIG_SOC_AM33XX)+=irq.o-obj-$(CONFIG_SOC_OMAP5)+=prm44xx.o$(secure-common)+# INTCPS IP block support - XXX should be moved to drivers/+obj-$(CONFIG_ARCH_OMAP2)+=irq.o+obj-$(CONFIG_ARCH_OMAP3)+=irq.o+obj-$(CONFIG_SOC_AM33XX)+=irq.o++# Secure monitor API support+obj-$(CONFIG_ARCH_OMAP3)+=omap-smc.oomap-secure.o+obj-$(CONFIG_ARCH_OMAP4)+=omap-smc.oomap-secure.o+obj-$(CONFIG_SOC_OMAP5)+=omap-smc.oomap-secure.o++obj-$(CONFIG_ARCH_OMAP4)+=prm44xx.o+obj-$(CONFIG_SOC_OMAP5)+=prm44xx.oifneq ($(CONFIG_SND_OMAP_SOC_MCBSP),)obj-y+=mcbsp.oendifobj-$(CONFIG_TWL4030_CORE)+=omap_twl.o-obj-$(CONFIG_SOC_HAS_OMAP2_SDRC)+=sdrc.o# SMP support ONLY available for OMAP4
The prm44xx.o and sleep44xx.o build directives belong with the other
PRCM- and PM-related build sections in the Makefile; move them there.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
---
arch/arm/mach-omap2/Makefile | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
Clean up the OMAP clock code sections of the Makefile to save
some lines of diff.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
---
arch/arm/mach-omap2/Makefile | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
@@ -6,9 +6,6 @@obj-y:=id.oio.ocontrol.omux.odevices.oserial.ogpmc.otimer.opm.o\common.ogpio.odma.owd_timer.odisplay.oi2c.ohdq1w.oomap_hwmod.o-clock-common=clock.oclock_common_data.o\-clkt_dpll.oclkt_clksel.o-# INTCPS IP block support - XXX should be moved to drivers/obj-$(CONFIG_ARCH_OMAP2)+=irq.oobj-$(CONFIG_ARCH_OMAP3)+=irq.o
@@ -155,24 +152,22 @@ obj-$(CONFIG_SOC_OMAP5) += $(clockdomain-common)obj-$(CONFIG_SOC_OMAP5)+=clockdomain44xx.o# Clock framework-obj-$(CONFIG_ARCH_OMAP2)+=$(clock-common)clock2xxx.o-obj-$(CONFIG_ARCH_OMAP2)+=clkt2xxx_sys.o-obj-$(CONFIG_ARCH_OMAP2)+=clkt2xxx_dpllcore.o+obj-y+=clock.oclock_common_data.o\+clkt_dpll.oclkt_clksel.o+obj-$(CONFIG_ARCH_OMAP2)+=clock2xxx.o+obj-$(CONFIG_ARCH_OMAP2)+=clkt2xxx_dpllcore.oclkt2xxx_sys.oobj-$(CONFIG_ARCH_OMAP2)+=clkt2xxx_virt_prcm_set.oobj-$(CONFIG_ARCH_OMAP2)+=clkt2xxx_apll.oclkt2xxx_osc.oobj-$(CONFIG_ARCH_OMAP2)+=clkt2xxx_dpll.oclkt_iclk.oobj-$(CONFIG_SOC_OMAP2420)+=clock2420_data.oobj-$(CONFIG_SOC_OMAP2430)+=clock2430.oclock2430_data.o-obj-$(CONFIG_ARCH_OMAP3)+=$(clock-common)clock3xxx.o+obj-$(CONFIG_ARCH_OMAP3)+=clock3xxx.oobj-$(CONFIG_ARCH_OMAP3)+=clock34xx.oclkt34xx_dpll3m2.o-obj-$(CONFIG_ARCH_OMAP3)+=clock3517.oclock36xx.o+obj-$(CONFIG_ARCH_OMAP3)+=clock3517.oclock36xx.oclkt_iclk.oobj-$(CONFIG_ARCH_OMAP3)+=dpll3xxx.oclock3xxx_data.o-obj-$(CONFIG_ARCH_OMAP3)+=clkt_iclk.o-obj-$(CONFIG_ARCH_OMAP4)+=$(clock-common)clock44xx_data.o+obj-$(CONFIG_ARCH_OMAP4)+=clock44xx_data.oobj-$(CONFIG_ARCH_OMAP4)+=dpll3xxx.odpll44xx.o-obj-$(CONFIG_SOC_AM33XX)+=$(clock-common)dpll3xxx.o-obj-$(CONFIG_SOC_AM33XX)+=clock33xx_data.o-obj-$(CONFIG_SOC_OMAP5)+=$(clock-common)+obj-$(CONFIG_SOC_AM33XX)+=dpll3xxx.oclock33xx_data.oobj-$(CONFIG_SOC_OMAP5)+=dpll3xxx.odpll44xx.o# OMAP2 clock rate set data (old "OPP" data)
Clean up the PRCM sections of the Makefile; this saves a few lines.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
---
arch/arm/mach-omap2/Makefile | 35 ++++++++++-------------------------
1 file changed, 10 insertions(+), 25 deletions(-)