Drop linker-generated array creation when CONFIG_CMDLINE is disabled
authorAndrej Rosano <andrej.rosano@f-secure.com>
Mon, 29 Jul 2019 07:24:53 +0000 (09:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 29 Jul 2019 13:32:09 +0000 (09:32 -0400)
commit81b1158897dde57a4b26fea5ef927cf512e64b87
tree907944ccaafa1a2ea15e29c7724e03c1dbc0872f
parent090b30db09b6ff42d63eed308089df48f2fe60a8
Drop linker-generated array creation when CONFIG_CMDLINE is disabled

Linker generated array entry is not needed when the command line is
disabled. Remove this code in that case.

This is required as the commit 80a48dd47e3bf3ede676fae5a630cb6c80de3e69
breaks the linking stage when CONFIG_CMDLINE=n:

..
  LDS     u-boot.lds
  LD      u-boot
u-boot contains unexpected relocations: R_ARM_NONE
R_ARM_RELATIVE
make: *** [Makefile:1775: checkarmreloc] Error 1

Signed-off-by: Andrej Rosano <andrej.rosano@f-secure.com>
cmd/help.c