diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/uboot-sign.bbclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass index 29b2edc833..9671cf76a5 100644 --- a/meta/classes/uboot-sign.bbclass +++ b/meta/classes/uboot-sign.bbclass | |||
@@ -196,10 +196,9 @@ concat_spl_dtb() { | |||
196 | # signing, and kernel will deploy UBOOT_DTB_BINARY after signs it. | 196 | # signing, and kernel will deploy UBOOT_DTB_BINARY after signs it. |
197 | install_helper() { | 197 | install_helper() { |
198 | if [ -f "${UBOOT_DTB_BINARY}" ]; then | 198 | if [ -f "${UBOOT_DTB_BINARY}" ]; then |
199 | install -d ${D}${datadir} | ||
200 | # UBOOT_DTB_BINARY is a symlink to UBOOT_DTB_IMAGE, so we | 199 | # UBOOT_DTB_BINARY is a symlink to UBOOT_DTB_IMAGE, so we |
201 | # need both of them. | 200 | # need both of them. |
202 | install ${UBOOT_DTB_BINARY} ${D}${datadir}/${UBOOT_DTB_IMAGE} | 201 | install -Dm 0644 ${UBOOT_DTB_BINARY} ${D}${datadir}/${UBOOT_DTB_IMAGE} |
203 | ln -sf ${UBOOT_DTB_IMAGE} ${D}${datadir}/${UBOOT_DTB_BINARY} | 202 | ln -sf ${UBOOT_DTB_IMAGE} ${D}${datadir}/${UBOOT_DTB_BINARY} |
204 | else | 203 | else |
205 | bbwarn "${UBOOT_DTB_BINARY} not found" | 204 | bbwarn "${UBOOT_DTB_BINARY} not found" |
@@ -209,14 +208,13 @@ install_helper() { | |||
209 | # Install SPL dtb and u-boot nodtb to datadir, | 208 | # Install SPL dtb and u-boot nodtb to datadir, |
210 | install_spl_helper() { | 209 | install_spl_helper() { |
211 | if [ -f "${SPL_DIR}/${SPL_DTB_BINARY}" ]; then | 210 | if [ -f "${SPL_DIR}/${SPL_DTB_BINARY}" ]; then |
212 | install -d ${D}${datadir} | 211 | install -Dm 0644 ${SPL_DIR}/${SPL_DTB_BINARY} ${D}${datadir}/${SPL_DTB_IMAGE} |
213 | install ${SPL_DIR}/${SPL_DTB_BINARY} ${D}${datadir}/${SPL_DTB_IMAGE} | ||
214 | ln -sf ${SPL_DTB_IMAGE} ${D}${datadir}/${SPL_DTB_BINARY} | 212 | ln -sf ${SPL_DTB_IMAGE} ${D}${datadir}/${SPL_DTB_BINARY} |
215 | else | 213 | else |
216 | bbwarn "${SPL_DTB_BINARY} not found" | 214 | bbwarn "${SPL_DTB_BINARY} not found" |
217 | fi | 215 | fi |
218 | if [ -f "${UBOOT_NODTB_BINARY}" ] ; then | 216 | if [ -f "${UBOOT_NODTB_BINARY}" ] ; then |
219 | install ${UBOOT_NODTB_BINARY} ${D}${datadir}/${UBOOT_NODTB_IMAGE} | 217 | install -Dm 0644 ${UBOOT_NODTB_BINARY} ${D}${datadir}/${UBOOT_NODTB_IMAGE} |
220 | ln -sf ${UBOOT_NODTB_IMAGE} ${D}${datadir}/${UBOOT_NODTB_BINARY} | 218 | ln -sf ${UBOOT_NODTB_IMAGE} ${D}${datadir}/${UBOOT_NODTB_BINARY} |
221 | else | 219 | else |
222 | bbwarn "${UBOOT_NODTB_BINARY} not found" | 220 | bbwarn "${UBOOT_NODTB_BINARY} not found" |