mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
uboot-sign.bbclass: fix some install commands
A "install -d" command is missing when dealing with
${UBOOT_NODTB_BINARY} in install_spl_helper function, this can lead
to invalid install error saying:
| install: cannot create .../usr/share/u-boot-nodtb-2021.04-r0.bin': No such file or directory
Let's drop all "install -d" and replace them with "install -Dm" in
install_helper/install_spl_helper functions.
(From OE-Core rev: 0fc4e10250e69a67c5250ce48bfc632d90a34097)
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit db2b1da511ea3d4daef136a8b1d85b7040a46632)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -196,10 +196,9 @@ concat_spl_dtb() {
|
||||
# signing, and kernel will deploy UBOOT_DTB_BINARY after signs it.
|
||||
install_helper() {
|
||||
if [ -f "${UBOOT_DTB_BINARY}" ]; then
|
||||
install -d ${D}${datadir}
|
||||
# UBOOT_DTB_BINARY is a symlink to UBOOT_DTB_IMAGE, so we
|
||||
# need both of them.
|
||||
install ${UBOOT_DTB_BINARY} ${D}${datadir}/${UBOOT_DTB_IMAGE}
|
||||
install -Dm 0644 ${UBOOT_DTB_BINARY} ${D}${datadir}/${UBOOT_DTB_IMAGE}
|
||||
ln -sf ${UBOOT_DTB_IMAGE} ${D}${datadir}/${UBOOT_DTB_BINARY}
|
||||
else
|
||||
bbwarn "${UBOOT_DTB_BINARY} not found"
|
||||
@@ -209,14 +208,13 @@ install_helper() {
|
||||
# Install SPL dtb and u-boot nodtb to datadir,
|
||||
install_spl_helper() {
|
||||
if [ -f "${SPL_DIR}/${SPL_DTB_BINARY}" ]; then
|
||||
install -d ${D}${datadir}
|
||||
install ${SPL_DIR}/${SPL_DTB_BINARY} ${D}${datadir}/${SPL_DTB_IMAGE}
|
||||
install -Dm 0644 ${SPL_DIR}/${SPL_DTB_BINARY} ${D}${datadir}/${SPL_DTB_IMAGE}
|
||||
ln -sf ${SPL_DTB_IMAGE} ${D}${datadir}/${SPL_DTB_BINARY}
|
||||
else
|
||||
bbwarn "${SPL_DTB_BINARY} not found"
|
||||
fi
|
||||
if [ -f "${UBOOT_NODTB_BINARY}" ] ; then
|
||||
install ${UBOOT_NODTB_BINARY} ${D}${datadir}/${UBOOT_NODTB_IMAGE}
|
||||
install -Dm 0644 ${UBOOT_NODTB_BINARY} ${D}${datadir}/${UBOOT_NODTB_IMAGE}
|
||||
ln -sf ${UBOOT_NODTB_IMAGE} ${D}${datadir}/${UBOOT_NODTB_BINARY}
|
||||
else
|
||||
bbwarn "${UBOOT_NODTB_BINARY} not found"
|
||||
|
||||
Reference in New Issue
Block a user