From: Allen Martin <amartin@nvidia.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 02/10] tegra20: move tegra20 SoC code to arch/arm/cpu/tegra20-common
Date: Wed, 6 Jun 2012 11:07:37 -0700 [thread overview]
Message-ID: <20120606180737.GC13311@nvidia.com> (raw)
In-Reply-To: <4FCF826E.3060508@wwwdotorg.org>
On Wed, Jun 06, 2012 at 09:16:46AM -0700, Stephen Warren wrote:
> On 06/05/2012 03:20 PM, Allen Martin wrote:
> > In preparation for splitting out the armv4t code from tegra20, move
> > the tegra20 SoC code to arch/arm/cpu/tegra20-common. This code will
> > be compiled armv4t for the arm7tdmi and armv7 for the cortex A9.
>
> > diff --git a/arch/arm/cpu/armv7/tegra20/Makefile b/arch/arm/cpu/tegra20-common/Makefile
>
> > # The AVP is ARMv4T architecture so we must use special compiler
> > # flags for any startup files it might use.
> > -CFLAGS_arch/arm/cpu/armv7/tegra2/ap20.o += -march=armv4t
> > -CFLAGS_arch/arm/cpu/armv7/tegra2/clock.o += -march=armv4t
> > -CFLAGS_arch/arm/cpu/armv7/tegra2/warmboot_avp.o += -march=armv4t
> > +CFLAGS_arch/arm/cpu/tegra2-common/ap20.o += -march=armv4t
> > +CFLAGS_arch/arm/cpu/tegra2-common/clock.o += -march=armv4t
>
> Don't you still need the CFLAGS override for warmboot_avp.o here too? I
> assume that a later patch will just remove it, but it'd be nice if each
> patch along the way built and booted OK to, so that "git bisect" works
> through this series.
When I first wrote the series I made sure it booted at each patch, but
I didn't reconfirm with all the changes, so it's quite possible I
broke that. I'll make sure I preserve that.
> > -COBJS := $(COBJS-y)
> > -SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
> > -OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
> > +SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
> > +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
>
> At least in this patch, I don't think SOBJS is set. Does using it here
> cause build issues?
I'll confirm.
> > diff --git a/spl/Makefile b/spl/Makefile
>
> > +ifneq ($(CONFIG_TEGRA2),)
> > +LIBS-y += arch/$(ARCH)/cpu/$(SOC)-common/lib$(SOC)-common.o
> > +endif
>
> In another file in this patch, that first line was the non-inverted test:
>
> +ifeq ($(SOC),tegra20)
>
> That seems simpler. Can we use the same here?
Sure.
-Allen
--
nvpublic
next prev parent reply other threads:[~2012-06-06 18:07 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 21:20 [U-Boot] [PATCH v2 0/10] split tegra20 arm7 code into separate SPL Allen Martin
2012-06-05 21:20 ` [U-Boot] [PATCH v2 01/10] tegra20: rename tegra2 -> tegra20 Allen Martin
2012-06-06 16:11 ` Stephen Warren
2012-06-06 18:02 ` Allen Martin
2012-06-05 21:20 ` [U-Boot] [PATCH v2 02/10] tegra20: move tegra20 SoC code to arch/arm/cpu/tegra20-common Allen Martin
2012-06-06 16:16 ` Stephen Warren
2012-06-06 18:07 ` Allen Martin [this message]
2012-06-05 21:20 ` [U-Boot] [PATCH v2 03/10] mkconfig: add support for SPL CPU Allen Martin
2012-06-06 16:20 ` Stephen Warren
2012-06-06 18:09 ` Allen Martin
2012-06-05 21:20 ` [U-Boot] [PATCH v2 04/10] ARM: Fix arm720t SPL build Allen Martin
2012-06-05 21:20 ` [U-Boot] [PATCH v2 05/10] tegra20: remove timer_init from " Allen Martin
2012-06-05 21:20 ` [U-Boot] [PATCH v2 06/10] ARM: add tegra20 support to arm720t Allen Martin
2012-06-06 16:39 ` Stephen Warren
2012-06-06 18:25 ` Allen Martin
2012-06-06 19:17 ` Stephen Warren
2012-06-06 22:18 ` Allen Martin
2012-06-06 23:19 ` Stephen Warren
2012-06-05 21:20 ` [U-Boot] [PATCH v2 07/10] tegra20: add SPL config options for seaboard Allen Martin
2012-06-06 16:44 ` Stephen Warren
2012-06-06 18:40 ` Allen Martin
2012-06-07 7:15 ` Sughosh Ganu
2012-06-07 16:36 ` Stephen Warren
2012-06-07 17:04 ` Sughosh Ganu
2012-06-07 20:02 ` Stephen Warren
2012-06-05 21:20 ` [U-Boot] [PATCH v2 08/10] tegra20: add u-boot.t2 target Allen Martin
2012-06-06 16:48 ` Stephen Warren
2012-06-06 19:37 ` Allen Martin
2012-06-06 19:53 ` Tom Warren
2012-06-06 19:57 ` Stephen Warren
2012-06-06 22:00 ` Allen Martin
2012-06-07 2:02 ` Stephen Warren
2012-06-07 17:06 ` Allen Martin
2012-06-05 21:20 ` [U-Boot] [PATCH v2 09/10] tegra20: Remove CPU init code from tegra20 u-boot Allen Martin
2012-06-06 16:51 ` Stephen Warren
2012-06-06 19:42 ` Allen Martin
2012-06-05 21:20 ` [U-Boot] [PATCH v2 10/10] tegra20: Remove armv4t build flags Allen Martin
2012-06-06 16:52 ` Stephen Warren
2012-06-05 21:25 ` [U-Boot] [PATCH v2 0/10] split tegra20 arm7 code into separate SPL Tom Warren
2012-06-05 23:45 ` Allen Martin
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=20120606180737.GC13311@nvidia.com \
--to=amartin@nvidia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox