From: Andre Przywara Date: Tue, 28 Mar 2017 01:45:15 +0100 Subject: [U-Boot] [PATCH v2 07/18] armv8: SPL: only compile GIC code if needed In-Reply-To: <1490661926-18400-1-git-send-email-andre.przywara@arm.com> References: <1490661926-18400-1-git-send-email-andre.przywara@arm.com> Message-ID: <1490661926-18400-8-git-send-email-andre.przywara@arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Not every SoC needs to set up the GIC interrupt controller, so link think code only when the respective config option is set. This shaves off some bytes from the SPL code size. Signed-off-by: Andre Przywara Reviewed-by: Simon Glass --- arch/arm/lib/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index b95e105..5733430 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile @@ -44,7 +44,9 @@ ifdef CONFIG_CPU_V7M obj-y += interrupts_m.o else ifdef CONFIG_ARM64 obj-y += ccn504.o +ifneq ($(CONFIG_GICV2)$(CONFIG_GICV3),) obj-y += gic_64.o +endif obj-y += interrupts_64.o else obj-y += interrupts.o -- 2.8.2