sandbox: Enable many more commands
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
@@ -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
@@ -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
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 insandbox_defconfigso that we can get more build-time testing on this platform.
Quoted 7 lines
Cc Simon Glass <[email protected]>Signed-off-by Tom Rini <[email protected]>--- 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!
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 insandbox_defconfigso that we can get more build-time testing on this platform.Quoted 7 lines
Cc Simon Glass <[email protected]>Signed-off-by Tom Rini <[email protected]>--- 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!
Reviewed-by Simon Glass <[email protected]>
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
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 insandbox_defconfigso that we can get more build-time testing on this platform.Quoted 7 lines
Cc Simon Glass <[email protected]>Signed-off-by Tom Rini <[email protected]>--- 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!
Reviewed-by Simon Glass <[email protected]>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>
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 insandbox_defconfigso that we can get more build-time testing on this platform.Quoted 7 lines
Cc Simon Glass <[email protected]>Signed-off-by Tom Rini <[email protected]>--- 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!
Reviewed-by Simon Glass <[email protected]>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!