linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: sboyd@codeaurora.org (Stephen Boyd)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] msm: Makefile: Separate machines from arches
Date: Mon,  4 Apr 2011 12:53:07 -0700	[thread overview]
Message-ID: <1301946787-7826-1-git-send-email-sboyd@codeaurora.org> (raw)

There isn't any reason to build the board files for machines that
aren't actually defined. But we always want to build in the
devices file since they are common to each ARCH. Split the two so
that boards are only built when the machines they support are
selected.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/mach-msm/Makefile |   29 ++++++++++++++++++++++-------
 1 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile
index c72cb8e..31cdcfd 100644
--- a/arch/arm/mach-msm/Makefile
+++ b/arch/arm/mach-msm/Makefile
@@ -21,13 +21,11 @@ obj-$(CONFIG_MSM_SCM) += scm.o scm-boot.o
 obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
 obj-$(CONFIG_SMP) += headsmp.o platsmp.o
 
-obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o devices-msm7x00.o
-obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o board-trout-panel.o devices-msm7x00.o
-obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o
-obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o
-obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o
-obj-$(CONFIG_ARCH_MSM8X60) += board-msm8x60.o devices-msm8x60.o
-obj-$(CONFIG_ARCH_MSM8960) += board-msm8960.o devices-msm8960.o
+obj-$(CONFIG_ARCH_MSM7X00A) += devices-msm7x00.o
+obj-$(CONFIG_ARCH_MSM7X30) += devices-msm7x30.o
+obj-$(CONFIG_ARCH_MSM8X60) += devices-msm8x60.o
+obj-$(CONFIG_ARCH_MSM8960) += devices-msm8960.o
+obj-$(CONFIG_ARCH_QSD8X50) += devices-qsd8x50.o
 
 obj-$(CONFIG_ARCH_MSM7X30) += gpiomux-v1.o gpiomux.o
 obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o gpiomux-v1.o gpiomux.o
@@ -40,3 +38,20 @@ endif
 else
 obj-y	+= gpio.o
 endif
+
+obj-$(CONFIG_MACH_TROUT) += board-trout-gpio.o board-trout-mmc.o board-trout-panel.o
+
+# Board Support
+obj-$(CONFIG_MACH_HALIBUT)		+= board-halibut.o
+obj-$(CONFIG_MACH_MSM7X30_FFA)		+= board-msm7x30.o
+obj-$(CONFIG_MACH_MSM7X30_FLUID)	+= board-msm7x30.o
+obj-$(CONFIG_MACH_MSM7X30_SURF)		+= board-msm7x30.o
+obj-$(CONFIG_MACH_MSM8960_RUMI3)	+= board-msm8960.o
+obj-$(CONFIG_MACH_MSM8960_SIM)		+= board-msm8960.o
+obj-$(CONFIG_MACH_MSM8X60_FFA)		+= board-msm8x60.o
+obj-$(CONFIG_MACH_MSM8X60_RUMI3)	+= board-msm8x60.o
+obj-$(CONFIG_MACH_MSM8X60_SIM)		+= board-msm8x60.o
+obj-$(CONFIG_MACH_MSM8X60_SURF)		+= board-msm8x60.o
+obj-$(CONFIG_MACH_QSD8X50A_ST1_5)	+= board-qsd8x50.o
+obj-$(CONFIG_MACH_QSD8X50_SURF)		+= board-qsd8x50.o
+obj-$(CONFIG_MACH_TROUT)		+= board-trout.o
-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

                 reply	other threads:[~2011-04-04 19:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1301946787-7826-1-git-send-email-sboyd@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).