Skip to contentSkip to conversation

Because sandbox is not a real hardware, setting vendor=sandbox is almost meaningless.

PATCH New Simon Glass 2 participants 2 messages May 13, 2014 – May 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Because sandbox is not a real hardware, setting vendor=sandbox is almost meaningless.

From: Masahiro Yamada <[email protected]>

This commit sets sandbox's vendor field to '-'.

It is a good thing that it reduces one level directory hierarchy. The files board/sandbox/sandbox/* have been moved to board/sandbox/*.

(modified to apply to latest upstream)

---

Changes in v2:
- Update to apply on current master

 arch/sandbox/lib/Makefile                     | 2 +-
 board/sandbox/Makefile                        | 7 +++++++
 {doc => board/sandbox}/README.sandbox         | 0
 {arch/sandbox/lib => board/sandbox}/sandbox.c | 0
 boards.cfg                                    | 2 +-
 5 files changed, 9 insertions(+), 2 deletions(-)
 create mode 100644 board/sandbox/Makefile
 rename {doc => board/sandbox}/README.sandbox (100%)
 rename {arch/sandbox/lib => board/sandbox}/sandbox.c (100%)
arch/sandbox/lib/Makefile +1 -1
index 6480ebf..4c1a38d 100644
@@ -8,4 +8,4 @@
 #
 
 
-obj-y	+= interrupts.o sandbox.o
+obj-y	+= interrupts.o
board/sandbox/Makefile new file +7 -0
new file mode 100644
index 0000000..a0b9880
@@ -0,0 +1,7 @@
+#
+# Copyright (c) 2011 The Chromium OS Authors.
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y	:= sandbox.o
board/sandbox/README.sandbox renamed from doc/README.sandbox +0 -0
similarity index 100%
rename from doc/README.sandbox
rename to board/sandbox/README.sandbox
board/sandbox/sandbox.c renamed from arch/sandbox/lib/sandbox.c +0 -0
similarity index 100%
rename from arch/sandbox/lib/sandbox.c
rename to board/sandbox/sandbox.c
boards.cfg +1 -1
index 9d90550..59b5c4c 100644
@@ -1182,7 +1182,7 @@ Active  powerpc     ppc4xx         -           xilinx          ppc405-generic
 Active  powerpc     ppc4xx         -           xilinx          ppc405-generic      xilinx-ppc405-generic_flash           xilinx-ppc405-generic:SYS_TEXT_BASE=0xF7F60000,RESET_VECTOR_ADDRESS=0xF7FFFFFC                                                    Ricardo Ribalda <[email protected]>
 Active  powerpc     ppc4xx         -           xilinx          ppc440-generic      xilinx-ppc440-generic                 xilinx-ppc440-generic:SYS_TEXT_BASE=0x04000000,RESET_VECTOR_ADDRESS=0x04100000,BOOT_FROM_XMD=1                                    Ricardo Ribalda <[email protected]>
 Active  powerpc     ppc4xx         -           xilinx          ppc440-generic      xilinx-ppc440-generic_flash           xilinx-ppc440-generic:SYS_TEXT_BASE=0xF7F60000,RESET_VECTOR_ADDRESS=0xF7FFFFFC                                                    Ricardo Ribalda <[email protected]>
-Active  sandbox     sandbox        -           -               <none>              sandbox                               -                                                                                                                                 Simon Glass <[email protected]>
+Active  sandbox     sandbox        -           -               sandbox             sandbox                               -                                                                                                                                 Simon Glass <[email protected]>
 Active  sh          sh2            -           renesas         rsk7203             rsk7203                               -                                                                                                                                 Nobuhiro Iwamatsu <[email protected]>:Nobuhiro Iwamatsu <[email protected]>
 Active  sh          sh2            -           renesas         rsk7264             rsk7264                               -                                                                                                                                 Phil Edworthy <[email protected]>
 Active  sh          sh2            -           renesas         rsk7269             rsk7269                               -                                                                                                                                 -
Signature · 1 line
1.9.1.423.g4596e3a
#1 lore raw

PATCH v2 1/1 Because sandbox is not a real hardware, setting vendor=sandbox is almost meaningless.

Hi Simon,

Quoted 10 lines · On Tue, 13 May 2014 12:13:48 -0600 Simon Glass <[email protected]> wrote:

From: Masahiro Yamada <[email protected]>

This commit sets sandbox's vendor field to '-'.

It is a good thing that it reduces one level directory hierarchy. The files board/sandbox/sandbox/* have been moved to board/sandbox/*.

(modified to apply to latest upstream)

I am not happy about this fix-up approach because the commit description does not reflect the code any more.

Quoted 1 line

It is a good thing that it reduces one level directory hierarchy.

This sounds odd.
This patch moves arch/sandbox/lib/sandbox.c
to board/sandbox/sandbox.c,
creating board/sandbox/ directory.

We should revert the wrong commit first,
and then apply the right one.

I will send them.

Best Regards
Masahiro Yamada