From c1352119fd09a31ddb77710a0c3839d1af21fc65 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 13 Mar 2016 19:07:29 -0600 Subject: arm: x86: Drop command-line code when CONFIG_CMDLINE is disabled Update the link script to drop this code when not needed. This is only done for two architectures at present. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- arch/arm/cpu/u-boot.lds | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm/cpu/u-boot.lds') diff --git a/arch/arm/cpu/u-boot.lds b/arch/arm/cpu/u-boot.lds index 13aa4fa..cfab8b0 100644 --- a/arch/arm/cpu/u-boot.lds +++ b/arch/arm/cpu/u-boot.lds @@ -14,6 +14,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { +#ifndef CONFIG_CMDLINE + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } +#endif #if defined(CONFIG_ARMV7_SECURE_BASE) && defined(CONFIG_ARMV7_NONSEC) /* * If CONFIG_ARMV7_SECURE_BASE is true, secure code will not -- cgit v1.1