diff options
| -rw-r--r-- | meta/recipes-kernel/linux/linux-dtb.inc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/meta/recipes-kernel/linux/linux-dtb.inc b/meta/recipes-kernel/linux/linux-dtb.inc index 6b8f1a54b8..ee3a5e1b98 100644 --- a/meta/recipes-kernel/linux/linux-dtb.inc +++ b/meta/recipes-kernel/linux/linux-dtb.inc | |||
| @@ -5,6 +5,18 @@ python __anonymous () { | |||
| 5 | d.appendVar("PACKAGES", " kernel-devicetree") | 5 | d.appendVar("PACKAGES", " kernel-devicetree") |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | do_compile_append() { | ||
| 9 | if test -n "${KERNEL_DEVICETREE}"; then | ||
| 10 | for DTB in ${KERNEL_DEVICETREE}; do | ||
| 11 | if echo ${DTB} | grep -q '/dts/'; then | ||
| 12 | bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used." | ||
| 13 | DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` | ||
| 14 | fi | ||
| 15 | oe_runmake ${DTB} | ||
| 16 | done | ||
| 17 | fi | ||
| 18 | } | ||
| 19 | |||
| 8 | do_install_append() { | 20 | do_install_append() { |
| 9 | if test -n "${KERNEL_DEVICETREE}"; then | 21 | if test -n "${KERNEL_DEVICETREE}"; then |
| 10 | for DTB in ${KERNEL_DEVICETREE}; do | 22 | for DTB in ${KERNEL_DEVICETREE}; do |
| @@ -13,10 +25,8 @@ do_install_append() { | |||
| 13 | DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` | 25 | DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` |
| 14 | fi | 26 | fi |
| 15 | DTB_BASE_NAME=`basename ${DTB} .dtb` | 27 | DTB_BASE_NAME=`basename ${DTB} .dtb` |
| 16 | DTB_NAME=`echo ${KERNEL_IMAGE_BASE_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"` | ||
| 17 | DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"` | 28 | DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"` |
| 18 | DTB_PATH="${B}/arch/${ARCH}/boot/dts/${DTB}" | 29 | DTB_PATH="${B}/arch/${ARCH}/boot/dts/${DTB}" |
| 19 | oe_runmake ${DTB} | ||
| 20 | if [ ! -e "${DTB_PATH}" ]; then | 30 | if [ ! -e "${DTB_PATH}" ]; then |
| 21 | DTB_PATH="${B}/arch/${ARCH}/boot/${DTB}" | 31 | DTB_PATH="${B}/arch/${ARCH}/boot/${DTB}" |
| 22 | fi | 32 | fi |
