]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/hwspinlock.git/blobdiff - arch/arm64/Makefile
arm64: enable .dtbo file building for TI arm64 SoCs
[rpmsg/hwspinlock.git] / arch / arm64 / Makefile
index 106039d25e2f7a708b81db27d7c95ae82aaa54dc..62283944d329b3e88f2a872f765f5fd5d2a530ad 100644 (file)
@@ -127,8 +127,10 @@ Image.%: Image
 zinstall install:
        $(Q)$(MAKE) $(build)=$(boot) $@
 
-%.dtb: scripts
-       $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
+%.dtb %.dtbo: dtbdir=$(patsubst %/,%,$(patsubst %./,%,$(boot)/dts/$(dir $@)))
+
+%.dtb %.dtbo: scripts
+       $(Q)$(MAKE) $(build)=$(dtbdir) $(boot)/dts/$@
 
 PHONY += dtbs dtbs_install