* [U-Boot] [PATCH] Tegra: T30: Beaver: Fix board/board_name env vars, s/b beaver, not cardhu
@ 2013-04-17 15:22 Tom Warren
2013-04-17 15:50 ` Stephen Warren
0 siblings, 1 reply; 2+ messages in thread
From: Tom Warren @ 2013-04-17 15:22 UTC (permalink / raw)
To: u-boot
Did a 'strings u-boot-dtb-tegra.bin | less' and saw that both
board and board_name == beaver. Didn't test as I have no T30
Beaver board here.
Signed-off-by: Tom Warren <twarren@nvidia.com>
---
board/nvidia/beaver/Makefile | 38 ++++++++++++++++++++++++++++++++++++++
boards.cfg | 2 +-
2 files changed, 39 insertions(+), 1 deletion(-)
create mode 100644 board/nvidia/beaver/Makefile
diff --git a/board/nvidia/beaver/Makefile b/board/nvidia/beaver/Makefile
new file mode 100644
index 0000000..9510f60
--- /dev/null
+++ b/board/nvidia/beaver/Makefile
@@ -0,0 +1,38 @@
+#
+# Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms and conditions of the GNU General Public License,
+# version 2, as published by the Free Software Foundation.
+#
+# This program is distributed in the hope it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+include $(TOPDIR)/config.mk
+
+$(shell mkdir -p $(obj)../cardhu)
+
+LIB = $(obj)lib$(BOARD).o
+
+COBJS = ../cardhu/cardhu.o
+
+SRCS := $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+
+$(LIB): $(obj).depend $(OBJS)
+ $(call cmd_link_o_target, $(OBJS))
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
diff --git a/boards.cfg b/boards.cfg
index 31483d6..bcc4e78 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -311,7 +311,7 @@ seaboard arm armv7:arm720t seaboard nvidia
ventana arm armv7:arm720t ventana nvidia tegra20
whistler arm armv7:arm720t whistler nvidia tegra20
cardhu arm armv7:arm720t cardhu nvidia tegra30
-beaver arm armv7:arm720t cardhu nvidia tegra30
+beaver arm armv7:arm720t beaver nvidia tegra30
dalmore arm armv7:arm720t dalmore nvidia tegra114
colibri_t20_iris arm armv7:arm720t colibri_t20_iris toradex tegra20
u8500_href arm armv7 u8500 st-ericsson u8500
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] Tegra: T30: Beaver: Fix board/board_name env vars, s/b beaver, not cardhu
2013-04-17 15:22 [U-Boot] [PATCH] Tegra: T30: Beaver: Fix board/board_name env vars, s/b beaver, not cardhu Tom Warren
@ 2013-04-17 15:50 ` Stephen Warren
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Warren @ 2013-04-17 15:50 UTC (permalink / raw)
To: u-boot
On 04/17/2013 09:22 AM, Tom Warren wrote:
> Did a 'strings u-boot-dtb-tegra.bin | less' and saw that both
> board and board_name == beaver. Didn't test as I have no T30
> Beaver board here.
Tested-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
I guess this is about the only way to do it; I checked
include/autoconf.mk and, and there's no variable that says "beaver" when
the beaver entry in boards.cfg is based on cardhu, and I'm sure we'll
need some separate code later anyway, so there's no harm adding the
makefile now.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-17 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-17 15:22 [U-Boot] [PATCH] Tegra: T30: Beaver: Fix board/board_name env vars, s/b beaver, not cardhu Tom Warren
2013-04-17 15:50 ` Stephen Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox