From ec75fab302a8b2ddf291cc1b7219b0333cea1a4d Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 21 Dec 2017 22:13:22 -0500 Subject: build: Drop CONFIG_SPL_BUILD guards in some cases Given gcc-6.1 and later we can now safely have strings discarded when the functions are unused. This lets us drop certain cases of not building something so that we don't have the strings brought in when the code was discarded. Simplify the code now by dropping guards we don't need now. Cc: Stefano Babic Cc: Fabio Estevam Cc: Chander Kashyap Cc: Thomas Abraham Cc: Vipin Kumar Cc: Wenyou Yang Signed-off-by: Tom Rini --- board/spear/spear600/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'board/spear') diff --git a/board/spear/spear600/Makefile b/board/spear/spear600/Makefile index 7abfb9a..86a7fc4 100644 --- a/board/spear/spear600/Makefile +++ b/board/spear/spear600/Makefile @@ -5,6 +5,4 @@ # SPDX-License-Identifier: GPL-2.0+ # -ifndef CONFIG_SPL_BUILD -obj-y := spear600.o -endif +obj-y += spear600.o -- cgit v1.1