summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndy Ross <andrew.j.ross@intel.com>2016-08-25 10:18:09 -0700
committerAndrew Boie <andrew.p.boie@intel.com>2016-10-27 20:10:27 +0000
commit018b831a369d6b3435bd1d6ecfe7b77915dd0acf (patch)
tree8f66510ab08590eef5c712d0fa0c4742a8d6174b /Makefile
parent36c09442d9652efd78b13aa9089b1a5c8e055a6d (diff)
Makefile: Don't hide the "prebuilt" kernel
The pass 1 linkage on x86 produces a real intermediate file that users might plausibly want to inspect. There's no reason to give it a hidden file name or call it "temporary". Show it off. Change-Id: I606ee41f7f106ddd00474cdebe7803bcfb01889d Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index e82ebd07a..64bcf816a 100644
--- a/Makefile
+++ b/Makefile
@@ -834,9 +834,9 @@ linker.cmd: $(zephyr-deps)
$(LDFLAG_LINKERCMD) $(LD_TOOLCHAIN) -I$(srctree)/include \
-I$(objtree)/include/generated $(EXTRA_LINKER_CMD_OPT) $(KBUILD_LDS) -o $@
-TMP_ELF = .tmp_$(KERNEL_NAME).prebuilt
+PREBUILT_KERNEL = $(KERNEL_NAME)_prebuilt.elf
-$(TMP_ELF): $(zephyr-deps) libzephyr.a $(KBUILD_ZEPHYR_APP) $(app-y) linker.cmd $(KERNEL_NAME).lnk
+$(PREBUILT_KERNEL): $(zephyr-deps) libzephyr.a $(KBUILD_ZEPHYR_APP) $(app-y) linker.cmd $(KERNEL_NAME).lnk
$(Q)$(CC) -T linker.cmd @$(KERNEL_NAME).lnk -o $@
quiet_cmd_gen_idt = SIDT $@
@@ -854,7 +854,7 @@ quiet_cmd_gen_idt = SIDT $@
rm staticIdt.bin irq_int_vector_map.bin isrList.bin \
)
-staticIdt.o: $(TMP_ELF)
+staticIdt.o: $(PREBUILT_KERNEL)
$(call cmd,gen_idt)
quiet_cmd_lnk_elf = LINK $@
@@ -890,8 +890,8 @@ $(KERNEL_ELF_NAME): staticIdt.o linker.cmd
@$(WARN_ABOUT_ASSERT)
@$(WARN_ABOUT_DEPRECATION)
else
-$(KERNEL_ELF_NAME): $(TMP_ELF)
- @cp $(TMP_ELF) $(KERNEL_ELF_NAME)
+$(KERNEL_ELF_NAME): $(PREBUILT_KERNEL)
+ @cp $(PREBUILT_KERNEL) $(KERNEL_ELF_NAME)
@$(WARN_ABOUT_ASSERT)
@$(WARN_ABOUT_DEPRECATION)
endif