Hi All,
I am trying to build barebox with ARCH = sandbox. My make menuconfig is successful.
But the actual build is throwing below errors. As I understand, the errors are because offt_build.c that includes <asm/barebox.h>. But in case of ARCH=sandbox,the arch/sandbox/inlcude/asm/barebox.h
contains nothing. Is itsupposed to compile ft_build.c in case of sandbox?
CHK include/generated/version.h
CHK include/generated/utsrelease.h
SYMLINK include/config.h -> arch/sandbox/board//config.h
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/bin2c
HOSTCC scripts/mkimage
HOSTCC scripts/bareboxenv
CC common/hush.o
CC common/date.o
CC common/ft_build.o
In file included from common/ft_build.c:33:
include/ft_build.h:59: error: syntax error before "bd_t"
include/ft_build.h:59: warning: function declaration isn't a prototype
include/ft_build.h:65: error: syntax error before "bd_t"
include/ft_build.h:65: warning: function declaration isn't a prototype
include/ft_build.h:66: error: syntax error before "bd_t"
include/ft_build.h:66: warning: function declaration isn't a prototype
include/ft_build.h:67: error: syntax error before "bd_t"
include/ft_build.h:67: warning: function declaration isn't a prototype
common/ft_build.c:458: error: syntax error before "bd_t"
common/ft_build.c:459: warning: function declaration isn't a prototype
common/ft_build.c: In function `ft_setup':
common/ft_build.c:477: error: `blob' undeclared (first use in this function)
common/ft_build.c:477: error: (Each undeclared identifier is reported only once
common/ft_build.c:477: error: for each function it appears in.)
common/ft_build.c:477: error: `bd' undeclared (first use in this function)
common/ft_build.c:488: error: `initrd_start' undeclared (first use in
this function)
common/ft_build.c:488: error: `initrd_end' undeclared (first use in
this function)
common/ft_build.c:460: warning: unused variable `p'
common/ft_build.c:461: warning: unused variable `len'
common/ft_build.c:463: warning: unused variable `clock'
make[1]: *** [common/ft_build.o] Error 1
make: *** [common] Error 2
Best Regards,
N.S.S.R.Murthy,
Ph # +91-40-67303600, Extn – 3731,
Mobile # +91-9959677780.