|
@@ -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
|
|
|
|