mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 03:04:34 +01:00
fdt: Fix installation of aarch64 dtb
r345519 rewrote parts of how we build .dtb, but mistakenly dropped the vendor dir for aarch64. Simply drop the :T for building ${DTB} in the aarch64 case- it'll get applied at install-time as-needed, with :H:T for determining the vendor dir. Reported by: manu Tested by: manu Reviewed by: manu MFC after: 3 days
This commit is contained in:
parent
b96fbd3cf3
commit
2de4a7aa21
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347021
@ -24,7 +24,16 @@ SYSDIR= ${_dir:tA}
|
||||
.error "can't find kernel source tree"
|
||||
.endif
|
||||
|
||||
DTB=${DTS:T:R:S/$/.dtb/}
|
||||
.for _dts in ${DTS}
|
||||
# DTB for aarch64 needs to preserve the immediate parent of the .dts, because
|
||||
# these DTS are vendored and should be installed into their vendored directory.
|
||||
.if ${MACHINE_ARCH} == "aarch64"
|
||||
DTB+= ${_dts:R:S/$/.dtb/}
|
||||
.else
|
||||
DTB+= ${_dts:T:R:S/$/.dtb/}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
DTBO=${DTSO:T:R:S/$/.dtbo/}
|
||||
|
||||
.SUFFIXES: .dtb .dts .dtbo .dtso
|
||||
|
Loading…
Reference in New Issue
Block a user