summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index ae9cf740633e..be38198d98b2 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -294,6 +294,15 @@ quiet_cmd_cc_lst_c = MKLST $@
294$(obj)/%.lst: $(src)/%.c FORCE 294$(obj)/%.lst: $(src)/%.c FORCE
295 $(call if_changed_dep,cc_lst_c) 295 $(call if_changed_dep,cc_lst_c)
296 296
297# header test (header-test-y target)
298# ---------------------------------------------------------------------------
299
300quiet_cmd_cc_s_h = CC $@
301 cmd_cc_s_h = $(CC) $(c_flags) -S -o $@ -x c /dev/null -include $<
302
303$(obj)/%.h.s: $(src)/%.h FORCE
304 $(call if_changed_dep,cc_s_h)
305
297# Compile assembler sources (.S) 306# Compile assembler sources (.S)
298# --------------------------------------------------------------------------- 307# ---------------------------------------------------------------------------
299 308
@@ -504,7 +513,7 @@ existing-targets := $(wildcard $(sort $(targets)))
504 513
505-include $(foreach f,$(existing-targets),$(dir $(f)).$(notdir $(f)).cmd) 514-include $(foreach f,$(existing-targets),$(dir $(f)).$(notdir $(f)).cmd)
506 515
507ifneq ($(srctree),.) 516ifdef building_out_of_srctree
508# Create directories for object files if they do not exist 517# Create directories for object files if they do not exist
509obj-dirs := $(sort $(obj) $(patsubst %/,%, $(dir $(targets)))) 518obj-dirs := $(sort $(obj) $(patsubst %/,%, $(dir $(targets))))
510# If targets exist, their directories apparently exist. Skip mkdir. 519# If targets exist, their directories apparently exist. Skip mkdir.