Skip to contentSkip to conversation

sandbox: Enable many more commands

PATCH New Tom Rini 2 participants 5 messages Mar 15, 2016 – Apr 15, 2016

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 sandbox: Enable many more commands

- Set CONFIG_SYS_CACHELINE_SIZE to ARCH_DMA_MINALIGN as that should be good enough.
- Make <asm/io.h> include <asm/types.h> like other arches do
- Enable many many more drivers in sandbox_defconfig so that we can get more build-time testing on this platform.

---
 arch/sandbox/include/asm/cache.h |    1 +
 arch/sandbox/include/asm/io.h    |    1 +
 configs/sandbox_defconfig        |   56 ++++++++++++++++++++++++++++++++++++--
 3 files changed, 56 insertions(+), 2 deletions(-)
arch/sandbox/include/asm/cache.h +1 -0
index ffbb984..a545e4b 100644
@@ -20,5 +20,6 @@
 #else
 #define ARCH_DMA_MINALIGN	16
 #endif
+#define CONFIG_SYS_CACHELINE_SIZE	ARCH_DMA_MINALIGN
 
 #endif /* __SANDBOX_CACHE_H__ */
arch/sandbox/include/asm/io.h +1 -0
index 5b87fde..b87ee19 100644
@@ -57,5 +57,6 @@ void outw(unsigned int value, unsigned int addr);
 void outb(unsigned int value, unsigned int addr);
 
 #include <iotrace.h>
+#include <asm/types.h>
 
 #endif
configs/sandbox_defconfig +54 -2

107 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 sandbox: Enable many more commands

Quoted 5 lines · Tom Rini

good enough.
- Make <asm/io.h> include <asm/types.h> like other arches do
- Enable many many more drivers in sandbox_defconfig so that we can get more build-time testing on this platform.

Quoted 7 lines
---
 arch/sandbox/include/asm/cache.h |    1 +
 arch/sandbox/include/asm/io.h    |    1 +
 configs/sandbox_defconfig        |   56 ++++++++++++++++++++++++++++++++++++--
 3 files changed, 56 insertions(+), 2 deletions(-)

Great!

#2 lore raw

PATCH 1/1 sandbox: Enable many more commands

Hi Tom,

Quoted 15 lines · Simon Glass
Quoted 5 lines · Tom Rini

good enough.
- Make <asm/io.h> include <asm/types.h> like other arches do
- Enable many many more drivers in sandbox_defconfig so that we can get more build-time testing on this platform.

Quoted 7 lines
---
 arch/sandbox/include/asm/cache.h |    1 +
 arch/sandbox/include/asm/io.h    |    1 +
 configs/sandbox_defconfig        |   56 ++++++++++++++++++++++++++++++++++++--
 3 files changed, 56 insertions(+), 2 deletions(-)
Quoted 3 lines

Great!

I am seeing errors with this patch building for sandbox:

tools/bin2header.c: In function ?main?:
tools/bin2header.c:26:3: warning: implicit declaration of function ?read? [-Wimplicit-function-declaration]
nread = read(0, buf, sizeof(buf));
^
cmd/license.c:15:21: fatal error: license.h: No such file or directory

 #include <license.h>
                     ^

compilation terminated.
make[2]: *** [cmd/license.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [cmd] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [sub-make] Error 2

Can you take a look? If it matters I am doing an out-of-tree build.

Regards,
Simon

author
#3 lore raw

PATCH 1/1 sandbox: Enable many more commands

Quoted 40 lines · Simon Glass

Hi Tom,

Quoted 15 lines · Simon Glass
Quoted 5 lines · Tom Rini

good enough.
- Make <asm/io.h> include <asm/types.h> like other arches do
- Enable many many more drivers in sandbox_defconfig so that we can get more build-time testing on this platform.

Quoted 7 lines
---
 arch/sandbox/include/asm/cache.h |    1 +
 arch/sandbox/include/asm/io.h    |    1 +
 configs/sandbox_defconfig        |   56 ++++++++++++++++++++++++++++++++++++--
 3 files changed, 56 insertions(+), 2 deletions(-)
Quoted 3 lines

Great!

I am seeing errors with this patch building for sandbox:

tools/bin2header.c: In function ?main?:
tools/bin2header.c:26:3: warning: implicit declaration of function ?read? [-Wimplicit-function-declaration]

   nread = read(0, buf, sizeof(buf));
   ^
cmd/license.c:15:21: fatal error: license.h: No such file or directory
 #include <license.h>
                     ^

compilation terminated.
make[2]: *** [cmd/license.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [cmd] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [sub-make] Error 2

Quoted 1 line

Can you take a look? If it matters I am doing an out-of-tree build.

Yeah, sorry, this relies on the cmd: license patch I posted in order to work as nothing uses the license command today and it's pretty badly broken, but easily fixed. I was hoping Masahiro would chime in on the kbuild fun that the patch does, but if you wanna pull it in that's fine, I'll probably grab it soon otherwise myself.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160319/a0f9d6de/attachment.sig>
#4 lore raw

PATCH 1/1 sandbox: Enable many more commands

Quoted 42 lines · Tom Rini
Quoted 40 lines · Simon Glass

Hi Tom,

Quoted 15 lines · Simon Glass
Quoted 5 lines · Tom Rini

good enough.
- Make <asm/io.h> include <asm/types.h> like other arches do
- Enable many many more drivers in sandbox_defconfig so that we can get more build-time testing on this platform.

Quoted 7 lines
---
 arch/sandbox/include/asm/cache.h |    1 +
 arch/sandbox/include/asm/io.h    |    1 +
 configs/sandbox_defconfig        |   56 ++++++++++++++++++++++++++++++++++++--
 3 files changed, 56 insertions(+), 2 deletions(-)
Quoted 3 lines

Great!

I am seeing errors with this patch building for sandbox:

tools/bin2header.c: In function ?main?:
tools/bin2header.c:26:3: warning: implicit declaration of function ?read? [-Wimplicit-function-declaration]

   nread = read(0, buf, sizeof(buf));
   ^
cmd/license.c:15:21: fatal error: license.h: No such file or directory
 #include <license.h>
                     ^

compilation terminated.
make[2]: *** [cmd/license.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [cmd] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [sub-make] Error 2

Quoted 7 lines
Quoted 1 line

Can you take a look? If it matters I am doing an out-of-tree build.

Yeah, sorry, this relies on the cmd: license patch I posted in order to work as nothing uses the license command today and it's pretty badly broken, but easily fixed. I was hoping Masahiro would chime in on the kbuild fun that the patch does, but if you wanna pull it in that's fine, I'll probably grab it soon otherwise myself.

Applied to u-boot-dm, thanks!