build-dtbo: Support base dtbs which located in foreign folder

The temp output file path of command `DTC_OVERLAY_TEST' is
$(dot-target).<related-path-to-base_dtb>.tmp. That is, when
<related-path-to-base_dtb> has ```/''' included (e.g.:
../vendor/chipset-ver.xyz.dtb), the `DTC_OVERLAY_TEST' might return fail
because destination dir is yet created for writing the output file.

This change substitutes all the ```/''' in <related-path-to-base_dtb>
into ```-''' to fix this problem.

Change-Id: I921e41982f11ba1d95668849f28a74370ed6700c
Signed-off-by: Woody Lin <woodylin@google.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
Woody Lin 2018-06-19 06:41:42 +00:00 committed by azrim
parent 7efa210e18
commit 1e3939ca58
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C

View File

@ -14,7 +14,7 @@ cmd_dtbo_verify = $(foreach m,\
$(addprefix $(obj)/,$($(@F)-base)),\ $(addprefix $(obj)/,$($(@F)-base)),\
$(if $(m),\ $(if $(m),\
$(DTC_OVERLAY_TEST) $(m) $@ \ $(DTC_OVERLAY_TEST) $(m) $@ \
$(dot-target).$(patsubst $(obj)/%.dtb,%,$(m)).tmp;))\ $(dot-target).$(subst /,-,$(patsubst $(obj)/%.dtb,%,$(m))).tmp;))\
true true
else else
cmd_dtbo_verify = true cmd_dtbo_verify = true