All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masahiro Yamada <yamada.masahiro@socionext.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 8/8] m68k: merge per-CPU config.mk into arch/m68k/Makefile
Date: Fri, 27 Mar 2015 17:01:13 +0900	[thread overview]
Message-ID: <1427443273-15871-9-git-send-email-yamada.masahiro@socionext.com> (raw)
In-Reply-To: <1427443273-15871-1-git-send-email-yamada.masahiro@socionext.com>

Collect CPU specific flags into the single place.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Alison Wang <alison.wang@freescale.com>
Cc: Angelo Dureghello <angelo@sysam.it>
---

 arch/m68k/Makefile                 | 29 +++++++++++++++++++++++++++++
 arch/m68k/cpu/mcf5227x/config.mk   | 12 ------------
 arch/m68k/cpu/mcf523x/config.mk    | 12 ------------
 arch/m68k/cpu/mcf52x2/config.mk    | 18 ------------------
 arch/m68k/cpu/mcf530x/config.mk    |  9 ---------
 arch/m68k/cpu/mcf532x/config.mk    | 13 -------------
 arch/m68k/cpu/mcf5445x/config.mk   | 19 -------------------
 arch/m68k/cpu/mcf547x_8x/config.mk | 18 ------------------
 8 files changed, 29 insertions(+), 101 deletions(-)
 delete mode 100644 arch/m68k/cpu/mcf5227x/config.mk
 delete mode 100644 arch/m68k/cpu/mcf523x/config.mk
 delete mode 100644 arch/m68k/cpu/mcf52x2/config.mk
 delete mode 100644 arch/m68k/cpu/mcf530x/config.mk
 delete mode 100644 arch/m68k/cpu/mcf532x/config.mk
 delete mode 100644 arch/m68k/cpu/mcf5445x/config.mk
 delete mode 100644 arch/m68k/cpu/mcf547x_8x/config.mk

diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile
index aa3d2fa..e6f3b48 100644
--- a/arch/m68k/Makefile
+++ b/arch/m68k/Makefile
@@ -6,3 +6,32 @@ head-y := arch/m68k/cpu/$(CPU)/start.o
 
 libs-y += arch/m68k/cpu/$(CPU)/
 libs-y += arch/m68k/lib/
+
+cpuflags-$(CONFIG_M5208)	:= -mcpu=5208
+cpuflags-$(CONFIG_M5235)	:= -mcpu=5235 -fPIC
+cpuflags-$(CONFIG_M52277)	:= -mcpu=52277 -fPIC
+cpuflags-$(CONFIG_M5249)	:= -mcpu=5249
+cpuflags-$(CONFIG_M5253)	:= -mcpu=5253
+cpuflags-$(CONFIG_M5271)	:= -mcpu=5271
+cpuflags-$(CONFIG_M5272)	:= -mcpu=5272
+cpuflags-$(CONFIG_M5275)	:= -mcpu=5275
+cpuflags-$(CONFIG_M5282)	:= -mcpu=5282
+cpuflags-$(CONFIG_M5307)	:= -mcpu=5307
+cpuflags-$(CONFIG_MCF5301x)	:= -mcpu=53015 -fPIC
+cpuflags-$(CONFIG_MCF532x)	:= -mcpu=5329 -fPIC
+cpuflags-$(CONFIG_MCF5441x)	:= -mcpu=54418 -fPIC
+cpuflags-$(CONFIG_MCF5445x)	:= -mcpu=54455 -fPIC
+cpuflags-$(CONFIG_MCF547x_8x)	:= -mcpu=5485 -fPIC
+
+PLATFORM_CPPFLAGS += $(cpuflags-y)
+
+
+ldflags-$(CONFIG_MCF5441x)	:= --got=single
+ldflags-$(CONFIG_MCF5445x)	:= --got=single
+ldflags-$(CONFIG_MCF547x_8x)	:= --got=single
+
+ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
+ifneq (,$(findstring GOT,$(shell $(LD) --help)))
+PLATFORM_LDFLAGS += $(ldflags-y)
+endif
+endif
diff --git a/arch/m68k/cpu/mcf5227x/config.mk b/arch/m68k/cpu/mcf5227x/config.mk
deleted file mode 100644
index a6814d8..0000000
--- a/arch/m68k/cpu/mcf5227x/config.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
-#
-# (C) Copyright 2000-2004
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-#
-# SPDX-License-Identifier:	GPL-2.0+
-#
-
-cpuflags-$(CONFIG_M52277) := -mcpu=52277 -fPIC
-
-PLATFORM_CPPFLAGS += $(cpuflags-y)
diff --git a/arch/m68k/cpu/mcf523x/config.mk b/arch/m68k/cpu/mcf523x/config.mk
deleted file mode 100644
index 4795f6a..0000000
--- a/arch/m68k/cpu/mcf523x/config.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
-#
-# (C) Copyright 2000-2004
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-#
-# SPDX-License-Identifier:	GPL-2.0+
-#
-
-cpuflags-$(CONFIG_M5235) := -mcpu=5235 -fPIC
-
-PLATFORM_CPPFLAGS += $(cpuflags-y)
diff --git a/arch/m68k/cpu/mcf52x2/config.mk b/arch/m68k/cpu/mcf52x2/config.mk
deleted file mode 100644
index f8fdefd..0000000
--- a/arch/m68k/cpu/mcf52x2/config.mk
+++ /dev/null
@@ -1,18 +0,0 @@
-#
-# (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
-#
-# (C) Copyright 2000-2004
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-#
-# SPDX-License-Identifier:	GPL-2.0+
-#
-
-cpuflags-$(CONFIG_M5208) := -mcpu=5208
-cpuflags-$(CONFIG_M5249) := -mcpu=5249
-cpuflags-$(CONFIG_M5253) := -mcpu=5253
-cpuflags-$(CONFIG_M5271) := -mcpu=5271
-cpuflags-$(CONFIG_M5272) := -mcpu=5272
-cpuflags-$(CONFIG_M5275) := -mcpu=5275
-cpuflags-$(CONFIG_M5282) := -mcpu=5282
-
-PLATFORM_CPPFLAGS += $(cpuflags-y)
diff --git a/arch/m68k/cpu/mcf530x/config.mk b/arch/m68k/cpu/mcf530x/config.mk
deleted file mode 100644
index 25845aa..0000000
--- a/arch/m68k/cpu/mcf530x/config.mk
+++ /dev/null
@@ -1,9 +0,0 @@
-#
-# (C) Copyright 2014  Angelo Dureghello <angelo@sysam.it>
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
-
-cpuflags-$(CONFIG_M5307) := -mcpu=5307
-
-PLATFORM_CPPFLAGS += $(cpuflags-y)
diff --git a/arch/m68k/cpu/mcf532x/config.mk b/arch/m68k/cpu/mcf532x/config.mk
deleted file mode 100644
index 470d22f..0000000
--- a/arch/m68k/cpu/mcf532x/config.mk
+++ /dev/null
@@ -1,13 +0,0 @@
-#
-# (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
-#
-# (C) Copyright 2000-2004
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-#
-# SPDX-License-Identifier:	GPL-2.0+
-#
-
-cpuflags-$(CONFIG_MCF5301x) := -mcpu=53015 -fPIC
-cpuflags-$(CONFIG_MCF532x)  := -mcpu=5329 -fPIC
-
-PLATFORM_CPPFLAGS += $(cpuflags-y)
diff --git a/arch/m68k/cpu/mcf5445x/config.mk b/arch/m68k/cpu/mcf5445x/config.mk
deleted file mode 100644
index c3923c6..0000000
--- a/arch/m68k/cpu/mcf5445x/config.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
-#
-# (C) Copyright 2000-2004
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-#
-# Copyright 2011-2012 Freescale Semiconductor, Inc.
-#
-# SPDX-License-Identifier:	GPL-2.0+
-#
-
-cpuflags-$(CONFIG_MCF5441x) := -mcpu=54418 -fPIC
-cpuflags-$(CONFIG_MCF5445x) := -mcpu=54455 -fPIC
-
-ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
-ifneq (,$(findstring GOT,$(shell $(LD) --help)))
-PLATFORM_LDFLAGS += --got=single
-endif
-endif
diff --git a/arch/m68k/cpu/mcf547x_8x/config.mk b/arch/m68k/cpu/mcf547x_8x/config.mk
deleted file mode 100644
index 240dd27..0000000
--- a/arch/m68k/cpu/mcf547x_8x/config.mk
+++ /dev/null
@@ -1,18 +0,0 @@
-#
-# (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
-#
-# (C) Copyright 2000-2004
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-#
-# SPDX-License-Identifier:	GPL-2.0+
-#
-
-cpuflags-$(CONFIG_MCF547x_8x) := -mcpu=5485 -fPIC
-
-PLATFORM_CPPFLAGS += $(cpuflags-y)
-
-ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
-ifneq (,$(findstring GOT,$(shell $(LD) --help)))
-PLATFORM_LDFLAGS += --got=single
-endif
-endif
-- 
1.9.1

  parent reply	other threads:[~2015-03-27  8:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-27  8:01 [U-Boot] [PATCH 0/8] m68k: stop grepping and refactor CPU flags Masahiro Yamada
2015-03-27  8:01 ` [U-Boot] [PATCH 1/8] m68k: mcf52x2: move CPU type to Kconfig and refactor config.mk Masahiro Yamada
2015-03-28 18:08   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-27  8:01 ` [U-Boot] [PATCH 2/8] m68k: mcf530x: " Masahiro Yamada
2015-03-28 18:08   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-27  8:01 ` [U-Boot] [PATCH 3/8] m68k: mcf532x: " Masahiro Yamada
2015-03-28 18:08   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-27  8:01 ` [U-Boot] [PATCH 4/8] m68k: mcf5445x: " Masahiro Yamada
2015-03-28 18:08   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-27  8:01 ` [U-Boot] [PATCH 5/8] m68k: mcf5227x: " Masahiro Yamada
2015-03-28 18:08   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-27  8:01 ` [U-Boot] [PATCH 6/8] m68k: mcf523x: " Masahiro Yamada
2015-03-28 18:09   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-27  8:01 ` [U-Boot] [PATCH 7/8] m68k: mcf547x_8x: " Masahiro Yamada
2015-03-28 18:09   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-27  8:01 ` Masahiro Yamada [this message]
2015-03-28 18:09   ` [U-Boot] [U-Boot, 8/8] m68k: merge per-CPU config.mk into arch/m68k/Makefile Tom Rini

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=1427443273-15871-9-git-send-email-yamada.masahiro@socionext.com \
    --to=yamada.masahiro@socionext.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.