bitbake -c compile -f u-boot failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bitbake -c compile -f u-boot failed

1,366 Views
jungong
Contributor II

Hi to all!

Please, help me!

My board is  based on p1010RDB, My DDR and SYSCLK is not same with rdb, If I undefined CONFIG_SYS_DDR_RAW_TIMING , u-boot compile will fail like following:

///////////////////////////////////////

LD      u-boot
| powerpc-fsl-linux-gnuspe-ld.bfd:u-boot.lds:1: ignoring invalid character `#' in expression
| powerpc-fsl-linux-gnuspe-ld.bfd:u-boot.lds:1: syntax error
| make[1]: *** [u-boot] Error 1
| make[1]: Leaving directory `/home/nxp/SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p1010rdb/tmp/work/p1010rdb-fsl-linux-gnuspe/u-boot-qoriq/2015.01+fslgit-r0/git/P1010RDB-PB_NOR_config'
| make: *** [sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/nxp/SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p1010rdb/tmp/work/p1010rdb-fsl-linux-gnuspe/u-boot-qoriq/2015.01+fslgit-r0/temp/log.do_compile.19970)
ERROR: Task 4 (/home/nxp/SDK/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-freescale/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb, do_compile) failed with exit code '1'

//////////////////////////////////////////////////////////////////////////////////////////////////

Which is the correct way to undefine in P1010RDB.h ?

I used SDK1.9.

Thanks!

Labels (1)
0 Kudos
2 Replies

804 Views
bpe
NXP Employee
NXP Employee

u-Boot build system uses the board configuration header,
include/configs/<board>.h, among some other headers, to dynamically
generate linker control files (u-boot.lds). For that, it puts the
headers through the C preprocessor (cpp). cpp doesn't handle comments in any way,

merely passing them to the output as-is. Since the linker doesn't
understand C-style comments, it is better to avoid C or C++ style
comments in such files, and use something understood by cpp, e.g. #undef
directive or #if 0 .. #endif construction.

0 Kudos

804 Views
jungong
Contributor II

Thank you! bpe

The compile error really as need define function fsl_ddr_board_options() in ddr.c

0 Kudos