Re: [U-Boot] tpl build error "width suffixes are invalid in ARM mode"

2017-08-31 Thread Dr. Philipp Tomsich
I just looked at the codebase and now I am also confused. ;-) At least the usage in the Makefiles seems to not correctly support TPL at this point. For what I have seen, we seem to have multiple problems: 1/ arch/arm/config.mk does test for '$(CONFIG_$(SPL_)SYS_THUMB_BUILD)’ instead of '$(C

Re: [U-Boot] tpl build error "width suffixes are invalid in ARM mode"

2017-08-30 Thread Kever Yang
Hi Philipp, Yes, I'm building TPL, the error message gone after I add TPL_SYS_THUMB_BUILD. I still confuse where the build option affects, eg. which Mackfile or config.mk? Thanks, - Kever On 08/30/2017 06:16 PM, Dr. Philipp Tomsich wrote: I just realised that you are building TPL. For

Re: [U-Boot] tpl build error "width suffixes are invalid in ARM mode"

2017-08-30 Thread Dr. Philipp Tomsich
I just realised that you are building TPL. For this you will need a TPL_SYS_THUMB_BUILD symbol now (with the CONFIG_IS_ENABLED knowing about the difference between TPL and SPL). Here’s the test output from my commandline: ptomsich@android:~/rk3399-spl/u-boot$ ~/x-tools/arm-unknown-eabi/bin/arm-

Re: [U-Boot] tpl build error "width suffixes are invalid in ARM mode"

2017-08-30 Thread Kever Yang
Philipp, On 08/30/2017 04:59 PM, Dr. Philipp Tomsich wrote: Kever, I took a quick look and this seems to be an issue with CONFIG macros. This is failing, because the assembly (after preprocessing) requests regular ARM mode and supplies Thumb mnemonics (e.g. nop.w). The trigger seems to be th

Re: [U-Boot] tpl build error "width suffixes are invalid in ARM mode"

2017-08-30 Thread Dr. Philipp Tomsich
Kever, I took a quick look and this seems to be an issue with CONFIG macros. This is failing, because the assembly (after preprocessing) requests regular ARM mode and supplies Thumb mnemonics (e.g. nop.w). The trigger seems to be the following CONFIG_IS_ENABLED check in arch/arm/lib/memcpy.S:

[U-Boot] tpl build error "width suffixes are invalid in ARM mode"

2017-08-30 Thread Kever Yang
Hi I get build error when I try to enable TPL for a new armv7 chip, the error happen when I build arch/arm/lib/memcpy.S, the file can pass the build for SPL but failed in TPL build, the log is here: The build can success if I remove the '-DCONFIT_TPL_BUILD' in red, any people can help on t