From 4f1e304f6885096f24854829729101efe57c16b2 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 19 Apr 2017 11:55:22 -0500 Subject: [PATCH] build: only build gen_idt on x86 Change-Id: I0401e2557c69f1e32ddedb79758c1dde781ea69b Signed-off-by: Kumar Gala --- Makefile | 1 - arch/x86/Makefile.idt | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f2f2fdf2723..2c819a822a2 100644 --- a/Makefile +++ b/Makefile @@ -450,7 +450,6 @@ PHONY += scripts_basic ifeq ($(PREBUILT_HOST_TOOLS),) scripts_basic: $(Q)$(MAKE) $(build)=scripts/basic - $(Q)$(MAKE) $(build)=scripts/gen_idt $(Q)$(MAKE) $(build)=scripts/gen_offset_header else scripts_basic: diff --git a/arch/x86/Makefile.idt b/arch/x86/Makefile.idt index 05fc0dd7a80..a5e8167163a 100644 --- a/arch/x86/Makefile.idt +++ b/arch/x86/Makefile.idt @@ -28,7 +28,10 @@ quiet_cmd_gen_idt = SIDT $@ rm staticIdt.bin irq_int_vector_map.bin isrList.bin \ ) -staticIdt.o: $(PREBUILT_KERNEL) +$(GENIDT): + $(Q)$(MAKE) $(build)=scripts/gen_idt + +staticIdt.o: $(PREBUILT_KERNEL) $(GENIDT) $(call cmd,gen_idt) quiet_cmd_lnk_elf = LINK $@