Skip to contentSkip to conversation

sandbox: move source files from board/ to arch/sandbox/

PATCH New Masahiro Yamada 2 participants 9 messages Apr 21, 2014 – May 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sandbox: move source files from board/ to arch/sandbox/

Prior to commit 33a02da0, all boards must have board/${BOARD}/ or board/${VENDOR}/${BOARD}/ directory.
Now this rule is obsolete.

It looks weird that sandbox defines "vendor" and "board" just for meeting the old U-Boot directory structure.

---
Simon,

I moved board/sandbox/sandbox/sandbox.c to arch/sandbox/lib/sandbox.c

But if there is a more suitable place or file-name, please move.

 arch/sandbox/lib/Makefile                             | 2 +-
 {board/sandbox/sandbox => arch/sandbox/lib}/sandbox.c | 0
 board/sandbox/sandbox/Makefile                        | 7 -------
 boards.cfg                                            | 2 +-
 {board/sandbox/sandbox => doc}/README.sandbox         | 0
 5 files changed, 2 insertions(+), 9 deletions(-)
 rename {board/sandbox/sandbox => arch/sandbox/lib}/sandbox.c (100%)
 delete mode 100644 board/sandbox/sandbox/Makefile
 rename {board/sandbox/sandbox => doc}/README.sandbox (100%)
arch/sandbox/lib/Makefile +1 -1
index 4c1a38d..6480ebf 100644
@@ -8,4 +8,4 @@
 #
 
 
-obj-y	+= interrupts.o
+obj-y	+= interrupts.o sandbox.o
arch/sandbox/lib/sandbox.c renamed from board/sandbox/sandbox/sandbox.c +0 -0
similarity index 100%
rename from board/sandbox/sandbox/sandbox.c
rename to arch/sandbox/lib/sandbox.c
board/sandbox/sandbox/Makefile deleted +0 -7
deleted file mode 100644
index a0b9880..0000000
@@ -1,7 +0,0 @@
-#
-# Copyright (c) 2011 The Chromium OS Authors.
-#
-# SPDX-License-Identifier:	GPL-2.0+
-#
-
-obj-y	:= sandbox.o
boards.cfg +1 -1
index c83aff3..fc002f6 100644
@@ -1158,7 +1158,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        -           sandbox         sandbox             sandbox                              -                                                                                                                                 Simon Glass <[email protected]>
+Active  sandbox     sandbox        -           -               <none>              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                              -                                                                                                                                 -
doc/README.sandbox renamed from board/sandbox/sandbox/README.sandbox +0 -0
similarity index 100%
rename from board/sandbox/sandbox/README.sandbox
rename to doc/README.sandbox
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 sandbox: move source files from board/ to arch/sandbox/

Hi Masahiro,

Quoted 7 lines · Masahiro Yamada

Prior to commit 33a02da0, all boards must have board/${BOARD}/ or board/${VENDOR}/${BOARD}/ directory.
Now this rule is obsolete.

It looks weird that sandbox defines "vendor" and "board" just for meeting the old U-Boot directory structure.

Quoted 8 lines

---
Simon,

I moved board/sandbox/sandbox/sandbox.c to arch/sandbox/lib/sandbox.c

But if there is a more suitable place or file-name, please move.

I like the README move, but I worry about not having a sandbox board, from the point of view of discoverability. How will people find it?

Regards,
Simon

#2 lore raw

PATCH 1/1 sandbox: move source files from board/ to arch/sandbox/

Hi Simon,

Quoted 15 lines · On Mon, 21 Apr 2014 15:02:20 -0600 Simon Glass <[email protected]> wrote:

Hi Masahiro,

Quoted 12 lines · Masahiro Yamada

Prior to commit 33a02da0, all boards must have board/${BOARD}/ or board/${VENDOR}/${BOARD}/ directory.
Now this rule is obsolete.

It looks weird that sandbox defines "vendor" and "board" just for meeting the old U-Boot directory structure.

---
Simon,

Quoted 6 lines
Quoted 3 lines

I moved board/sandbox/sandbox/sandbox.c to arch/sandbox/lib/sandbox.c

But if there is a more suitable place or file-name, please move.

I like the README move, but I worry about not having a sandbox board, from the point of view of discoverability. How will people find it?

I am not sure if this is necessary.

I just personaly thought the board directory seems odd for Sandbox because it is not a real board.

If you don't like this patch, feel free to reject it.

Best Regards
Masahiro Yamada

#3 lore raw

PATCH 1/1 sandbox: move source files from board/ to arch/sandbox/

Hi Masahiro,

Quoted 28 lines · Masahiro Yamada

Hi Simon,

Quoted 15 lines · On Mon, 21 Apr 2014 15:02:20 -0600 Simon Glass <[email protected]> wrote:

Hi Masahiro,

Quoted 12 lines · Masahiro Yamada

Prior to commit 33a02da0, all boards must have board/${BOARD}/ or board/${VENDOR}/${BOARD}/ directory.
Now this rule is obsolete.

It looks weird that sandbox defines "vendor" and "board" just for meeting the old U-Boot directory structure.

---
Simon,

Quoted 6 lines
Quoted 3 lines

I moved board/sandbox/sandbox/sandbox.c to arch/sandbox/lib/sandbox.c

But if there is a more suitable place or file-name, please move.

I like the README move, but I worry about not having a sandbox board, from the point of view of discoverability. How will people find it?

Quoted 6 lines

I am not sure if this is necessary.

I just personaly thought the board directory seems odd for Sandbox because it is not a real board.

If you don't like this patch, feel free to reject it.

I think it is better to have board/sandbox. Is it possible to have a null vendor, so we don't need board/sandbox/sandbox?

Regards,
Simon

Quoted 7 lines

Best Regards
Masahiro Yamada

#4 lore raw

PATCH 1/1 sandbox: move source files from board/ to arch/sandbox/

Hi Simon,

Quoted 33 lines · On Wed, 23 Apr 2014 09:04:20 -0600 Simon Glass <[email protected]> wrote:

Hi Masahiro,

Quoted 30 lines · Masahiro Yamada

Hi Simon,

Quoted 15 lines · On Mon, 21 Apr 2014 15:02:20 -0600 Simon Glass <[email protected]> wrote:

Hi Masahiro,

Quoted 12 lines · Masahiro Yamada

Prior to commit 33a02da0, all boards must have board/${BOARD}/ or board/${VENDOR}/${BOARD}/ directory.
Now this rule is obsolete.

It looks weird that sandbox defines "vendor" and "board" just for meeting the old U-Boot directory structure.

---
Simon,

Quoted 6 lines
Quoted 3 lines

I moved board/sandbox/sandbox/sandbox.c to arch/sandbox/lib/sandbox.c

But if there is a more suitable place or file-name, please move.

I like the README move, but I worry about not having a sandbox board, from the point of view of discoverability. How will people find it?

I am not sure if this is necessary.

Quoted 7 lines
Quoted 4 lines

I just personaly thought the board directory seems odd for Sandbox because it is not a real board.

If you don't like this patch, feel free to reject it.

I think it is better to have board/sandbox. Is it possible to have a null vendor, so we don't need board/sandbox/sandbox?

Of cource.
There are many boards without vendors.

In that case, you can set the 5th column to '-' in boards.cfg.

Active sandbox sandbox - sandbox sandbox sandbox

to

Active sandbox sandbox - - sandbox sandbox

With this change, you can decrease one level hierarchy.

board/sandbox/sandbox/sandbox.c

    ->  board/sandbox/sandbox.c

Best Regards
Masahiro Yamada

#5 lore raw

PATCH 1/1 sandbox: move source files from board/ to arch/sandbox/

Hi Masahiro,

Quoted 57 lines · Masahiro Yamada

Hi Simon,

Quoted 33 lines · On Wed, 23 Apr 2014 09:04:20 -0600 Simon Glass <[email protected]> wrote:

Hi Masahiro,

Quoted 30 lines · Masahiro Yamada

Hi Simon,

Quoted 15 lines · On Mon, 21 Apr 2014 15:02:20 -0600 Simon Glass <[email protected]> wrote:

Hi Masahiro,

Quoted 12 lines · Masahiro Yamada

Prior to commit 33a02da0, all boards must have board/${BOARD}/ or board/${VENDOR}/${BOARD}/ directory.
Now this rule is obsolete.

It looks weird that sandbox defines "vendor" and "board" just for meeting the old U-Boot directory structure.

---
Simon,

Quoted 6 lines
Quoted 3 lines

I moved board/sandbox/sandbox/sandbox.c to arch/sandbox/lib/sandbox.c

But if there is a more suitable place or file-name, please move.

I like the README move, but I worry about not having a sandbox board, from the point of view of discoverability. How will people find it?

I am not sure if this is necessary.

Quoted 7 lines
Quoted 4 lines

I just personaly thought the board directory seems odd for Sandbox because it is not a real board.

If you don't like this patch, feel free to reject it.

I think it is better to have board/sandbox. Is it possible to have a null vendor, so we don't need board/sandbox/sandbox?

Of cource.
There are many boards without vendors.

In that case, you can set the 5th column to '-' in boards.cfg.

Active sandbox sandbox - sandbox sandbox sandbox

to

Quoted 8 lines

Active sandbox sandbox - - sandbox sandbox

With this change, you can decrease one level hierarchy.

board/sandbox/sandbox/sandbox.c

    ->  board/sandbox/sandbox.c

That seems better to me. Will you update your patch?

Regards,
Simon

#6 lore raw

PATCH 1/1 sandbox: move source files from board/ to arch/sandbox/

Hi Simon,

Quoted 7 lines
Quoted 4 lines

With this change, you can decrease one level hierarchy.

board/sandbox/sandbox/sandbox.c

    ->  board/sandbox/sandbox.c

That seems better to me. Will you update your patch?

Sure.
Could you check this?
http://patchwork.ozlabs.org/patch/344051/

Best Regards
Masahiro Yamada

#7 lore raw

PATCH 1/1 sandbox: move source files from board/ to arch/sandbox/

Hi Masahiro,

Quoted 8 lines · Masahiro Yamada

Hi Simon,

Quoted 5 lines
Quoted 4 lines

With this change, you can decrease one level hierarchy.

board/sandbox/sandbox/sandbox.c

    ->  board/sandbox/sandbox.c
Quoted 6 lines
Quoted 2 lines

That seems better to me. Will you update your patch?

Sure.
Could you check this?
http://patchwork.ozlabs.org/patch/344051/

Sorry I applied the wrong patch - the other one is not showing up in patchwork for me. I'll see if I can figure it out.

Regards,
Simon

#8 lore raw

PATCH 1/1 sandbox: move source files from board/ to arch/sandbox/

Hi Simon,

Quoted 14 lines · On Tue, 13 May 2014 09:18:22 -0600 Simon Glass <[email protected]> wrote:

Hi Masahiro,

Quoted 11 lines · Masahiro Yamada

Hi Simon,

Quoted 7 lines
Quoted 4 lines

With this change, you can decrease one level hierarchy.

board/sandbox/sandbox/sandbox.c

    ->  board/sandbox/sandbox.c

That seems better to me. Will you update your patch?

Quoted 7 lines
Quoted 3 lines

Sure.
Could you check this?
http://patchwork.ozlabs.org/patch/344051/

Sorry I applied the wrong patch - the other one is not showing up in patchwork for me. I'll see if I can figure it out.

After u-boot-x86/tom was merged,
I cleared those patches out.

Please feel free to revert this patch and apply the other one.

Best Regards
Masahiro Yamada