summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-recipe/kernel-devicetree.bbclass28
1 files changed, 18 insertions, 10 deletions
diff --git a/meta/classes-recipe/kernel-devicetree.bbclass b/meta/classes-recipe/kernel-devicetree.bbclass
index 1b60c14740..eff052b402 100644
--- a/meta/classes-recipe/kernel-devicetree.bbclass
+++ b/meta/classes-recipe/kernel-devicetree.bbclass
@@ -100,28 +100,36 @@ do_deploy:append() {
100 if "${@'false' if oe.types.boolean(d.getVar('KERNEL_DTBVENDORED')) else 'true'}"; then 100 if "${@'false' if oe.types.boolean(d.getVar('KERNEL_DTBVENDORED')) else 'true'}"; then
101 dtb=$dtb_base_name.$dtb_ext 101 dtb=$dtb_base_name.$dtb_ext
102 fi 102 fi
103 install -m 0644 ${D}/${KERNEL_DTBDEST}/$dtb $deployDir/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext 103 install -m 0644 ${D}/${KERNEL_DTBDEST}/$dtb $deployDir/$dtb_base_name.$dtb_ext
104 if [ "${KERNEL_IMAGETYPE_SYMLINK}" = "1" ] ; then 104 if [ -n "${KERNEL_DTB_NAME}" ] ; then
105 ln -sf $dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext $deployDir/$dtb_base_name.$dtb_ext 105 ln -sf $dtb_base_name.$dtb_ext $deployDir/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext
106 fi 106 fi
107 if [ -n "${KERNEL_DTB_LINK_NAME}" ] ; then 107 if [ -n "${KERNEL_DTB_LINK_NAME}" ] ; then
108 ln -sf $dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext $deployDir/$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext 108 ln -sf $dtb_base_name.$dtb_ext $deployDir/$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext
109 fi 109 fi
110 for type in ${KERNEL_IMAGETYPE_FOR_MAKE}; do 110 for type in ${KERNEL_IMAGETYPE_FOR_MAKE}; do
111 if [ "$type" = "zImage" ] && [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then 111 if [ "$type" = "zImage" ] && [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then
112 cat ${D}/${KERNEL_IMAGEDEST}/$type \ 112 cat ${D}/${KERNEL_IMAGEDEST}/$type \
113 $deployDir/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \ 113 $deployDir/$dtb_base_name.$dtb_ext \
114 > $deployDir/$type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} 114 > $deployDir/$type-$dtb_base_name.$dtb_ext${KERNEL_DTB_BIN_EXT}
115 if [ -n "${KERNEL_DTB_NAME}" ]; then
116 ln -sf $type-$dtb_base_name.$dtb_ext${KERNEL_DTB_BIN_EXT} \
117 $deployDir/$type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT}
118 fi
115 if [ -n "${KERNEL_DTB_LINK_NAME}" ]; then 119 if [ -n "${KERNEL_DTB_LINK_NAME}" ]; then
116 ln -sf $type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} \ 120 ln -sf $type-$dtb_base_name.$dtb_ext${KERNEL_DTB_BIN_EXT} \
117 $deployDir/$type-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} 121 $deployDir/$type-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT}
118 fi 122 fi
119 if [ -e "${KERNEL_OUTPUT_DIR}/${type}.initramfs" ]; then 123 if [ -e "${KERNEL_OUTPUT_DIR}/${type}.initramfs" ]; then
120 cat ${KERNEL_OUTPUT_DIR}/${type}.initramfs \ 124 cat ${KERNEL_OUTPUT_DIR}/${type}.initramfs \
121 $deployDir/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \ 125 $deployDir/$dtb_base_name.$dtb_ext \
122 > $deployDir/${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} 126 > $deployDir/${type}-${INITRAMFS_NAME}-$dtb_base_name.$dtb_ext${KERNEL_DTB_BIN_EXT}
127 if [ -n "${KERNEL_DTB_NAME}" ]; then
128 ln -sf ${type}-${INITRAMFS_NAME}-$dtb_base_name.$dtb_ext${KERNEL_DTB_BIN_EXT} \
129 $deployDir/${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT}
130 fi
123 if [ -n "${KERNEL_DTB_LINK_NAME}" ]; then 131 if [ -n "${KERNEL_DTB_LINK_NAME}" ]; then
124 ln -sf ${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} \ 132 ln -sf ${type}-${INITRAMFS_NAME}-$dtb_base_name.$dtb_ext${KERNEL_DTB_BIN_EXT} \
125 $deployDir/${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} 133 $deployDir/${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT}
126 fi 134 fi
127 fi 135 fi