diff options
| -rw-r--r-- | meta/recipes-kernel/linux/linux-dtb.inc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/meta/recipes-kernel/linux/linux-dtb.inc b/meta/recipes-kernel/linux/linux-dtb.inc index 2b8b11f084..22801b72b8 100644 --- a/meta/recipes-kernel/linux/linux-dtb.inc +++ b/meta/recipes-kernel/linux/linux-dtb.inc | |||
| @@ -5,22 +5,25 @@ python __anonymous () { | |||
| 5 | d.appendVar("PACKAGES", " kernel-devicetree") | 5 | d.appendVar("PACKAGES", " kernel-devicetree") |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | normalize_dtb () { | ||
| 9 | DTB="$1" | ||
| 10 | if echo ${DTB} | grep -q '/dts/'; then | ||
| 11 | bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used." | ||
| 12 | DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` | ||
| 13 | fi | ||
| 14 | echo "${DTB}" | ||
| 15 | } | ||
| 16 | |||
| 8 | do_compile_append() { | 17 | do_compile_append() { |
| 9 | for DTB in ${KERNEL_DEVICETREE}; do | 18 | for DTB in ${KERNEL_DEVICETREE}; do |
| 10 | if echo ${DTB} | grep -q '/dts/'; then | 19 | DTB=`normalize_dtb "${DTB}"` |
| 11 | bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used." | ||
| 12 | DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` | ||
| 13 | fi | ||
| 14 | oe_runmake ${DTB} | 20 | oe_runmake ${DTB} |
| 15 | done | 21 | done |
| 16 | } | 22 | } |
| 17 | 23 | ||
| 18 | do_install_append() { | 24 | do_install_append() { |
| 19 | for DTB in ${KERNEL_DEVICETREE}; do | 25 | for DTB in ${KERNEL_DEVICETREE}; do |
| 20 | if echo ${DTB} | grep -q '/dts/'; then | 26 | DTB=`normalize_dtb "${DTB}"` |
| 21 | bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used." | ||
| 22 | DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` | ||
| 23 | fi | ||
| 24 | DTB_BASE_NAME=`basename ${DTB} .dtb` | 27 | DTB_BASE_NAME=`basename ${DTB} .dtb` |
| 25 | 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"` |
| 26 | DTB_PATH="${B}/arch/${ARCH}/boot/dts/${DTB}" | 29 | DTB_PATH="${B}/arch/${ARCH}/boot/dts/${DTB}" |
| @@ -33,10 +36,7 @@ do_install_append() { | |||
| 33 | 36 | ||
| 34 | do_deploy_append() { | 37 | do_deploy_append() { |
| 35 | for DTB in ${KERNEL_DEVICETREE}; do | 38 | for DTB in ${KERNEL_DEVICETREE}; do |
| 36 | if echo ${DTB} | grep -q '/dts/'; then | 39 | DTB=`normalize_dtb "${DTB}"` |
| 37 | bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used." | ||
| 38 | DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` | ||
| 39 | fi | ||
| 40 | DTB_BASE_NAME=`basename ${DTB} .dtb` | 40 | DTB_BASE_NAME=`basename ${DTB} .dtb` |
| 41 | DTB_NAME=`echo ${KERNEL_IMAGE_BASE_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"` | 41 | DTB_NAME=`echo ${KERNEL_IMAGE_BASE_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"` |
| 42 | DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"` | 42 | DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"` |
