Makefile.lib (5e3a227a64a1c9add0a4091989ef490342f716cf) Makefile.lib (f4d4ffc03efc864645b990e1d579bbe1b8e358a4)
1# Backward compatibility
2asflags-y += $(EXTRA_AFLAGS)
3ccflags-y += $(EXTRA_CFLAGS)
4cppflags-y += $(EXTRA_CPPFLAGS)
5ldflags-y += $(EXTRA_LDFLAGS)
6
7#
8# flags that take effect in sub directories

--- 138 unchanged lines hidden (view full) ---

147cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
148 $(__cpp_flags)
149
150ld_flags = $(LDFLAGS) $(ldflags-y)
151
152dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \
153 -I$(srctree)/arch/$(SRCARCH)/boot/dts \
154 -I$(srctree)/arch/$(SRCARCH)/boot/dts/include \
1# Backward compatibility
2asflags-y += $(EXTRA_AFLAGS)
3ccflags-y += $(EXTRA_CFLAGS)
4cppflags-y += $(EXTRA_CPPFLAGS)
5ldflags-y += $(EXTRA_LDFLAGS)
6
7#
8# flags that take effect in sub directories

--- 138 unchanged lines hidden (view full) ---

147cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
148 $(__cpp_flags)
149
150ld_flags = $(LDFLAGS) $(ldflags-y)
151
152dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \
153 -I$(srctree)/arch/$(SRCARCH)/boot/dts \
154 -I$(srctree)/arch/$(SRCARCH)/boot/dts/include \
155 -I$(srctree)/drivers/of/testcase-data \
156 -undef -D__DTS__
157
158# Finds the multi-part object the current object will be linked into
159modname-multi = $(sort $(foreach m,$(multi-used),\
160 $(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=))))
161
162ifdef REGENERATE_PARSERS
163

--- 105 unchanged lines hidden (view full) ---

269 -d $(depfile).dtc.tmp $(dtc-tmp) ; \
270 cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
271
272$(obj)/%.dtb: $(src)/%.dts FORCE
273 $(call if_changed_dep,dtc)
274
275dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
276
155 -undef -D__DTS__
156
157# Finds the multi-part object the current object will be linked into
158modname-multi = $(sort $(foreach m,$(multi-used),\
159 $(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=))))
160
161ifdef REGENERATE_PARSERS
162

--- 105 unchanged lines hidden (view full) ---

268 -d $(depfile).dtc.tmp $(dtc-tmp) ; \
269 cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
270
271$(obj)/%.dtb: $(src)/%.dts FORCE
272 $(call if_changed_dep,dtc)
273
274dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
275
276# Helper targets for Installing DTBs into the boot directory
277quiet_cmd_dtb_install = INSTALL $<
278 cmd_dtb_install = cp $< $(2)
279
280_dtbinst_pre_:
281 $(Q)if [ -d $(INSTALL_DTBS_PATH).old ]; then rm -rf $(INSTALL_DTBS_PATH).old; fi
282 $(Q)if [ -d $(INSTALL_DTBS_PATH) ]; then mv $(INSTALL_DTBS_PATH) $(INSTALL_DTBS_PATH).old; fi
283 $(Q)mkdir -p $(INSTALL_DTBS_PATH)
284
285%.dtb_dtbinst_: $(obj)/%.dtb _dtbinst_pre_
286 $(call cmd,dtb_install,$(INSTALL_DTBS_PATH))
287
277# Bzip2
278# ---------------------------------------------------------------------------
279
280# Bzip2 and LZMA do not include size in file... so we have to fake that;
281# append the size as a 32-bit littleendian number as gzip does.
282size_append = printf $(shell \
283dec_size=0; \
284for F in $1; do \

--- 90 unchanged lines hidden ---
288# Bzip2
289# ---------------------------------------------------------------------------
290
291# Bzip2 and LZMA do not include size in file... so we have to fake that;
292# append the size as a 32-bit littleendian number as gzip does.
293size_append = printf $(shell \
294dec_size=0; \
295for F in $1; do \

--- 90 unchanged lines hidden ---