Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[firefly-linux-kernel-4.4.55.git] / Documentation / kbuild / makefiles.txt
index ec9ae67086911efa3022b912f1a30bfeb3aea976..14c3f4f1b61773bc660f1f73a1c57e438f2ef975 100644 (file)
@@ -1175,15 +1175,16 @@ When kbuild executes, the following steps are followed (roughly):
        in an init section in the image. Platform code *must* copy the
        blob to non-init memory prior to calling unflatten_device_tree().
 
-       Example:
-               #arch/x86/platform/ce4100/Makefile
-               clean-files := *dtb.S
+       To use this command, simply add *.dtb into obj-y or targets, or make
+       some other target depend on %.dtb
 
-               DTC_FLAGS := -p 1024
-               obj-y += foo.dtb.o
+       A central rule exists to create $(obj)/%.dtb from $(src)/%.dts;
+       architecture Makefiles do no need to explicitly write out that rule.
 
-               $(obj)/%.dtb: $(src)/%.dts
-                       $(call cmd,dtc)
+       Example:
+               targets += $(dtb-y)
+               clean-files += *.dtb
+               DTC_FLAGS ?= -p 1024
 
 --- 6.8 Custom kbuild commands