Patchwork [v2] linux-dtb.inc: Replace /boot/ with /${KERNEL_IMAGEDEST}/

login
register
mail settings
Submitter mike.looijmans@topic.nl
Date Aug. 9, 2013, 10:53 a.m.
Message ID <1376045619-27438-1-git-send-email-mike.looijmans@topic.nl>
Download mbox | patch
Permalink /patch/55415/
State New
Headers show

Comments

mike.looijmans@topic.nl - Aug. 9, 2013, 10:53 a.m.
Devicetree files were installed hard-coded in /boot. When KERNEL_IMAGEDEST
is anything else but "boot", the postinstall script and the file locations
no longer match and the postinstall will fail.

Replace "boot" with "${KERNEL_IMAGEDEST}" to fix this problem, and to allow
the devicetree files to be installed in another location.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
---
 meta/recipes-kernel/linux/linux-dtb.inc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Otavio Salvador - Aug. 9, 2013, 12:14 p.m.
On Fri, Aug 9, 2013 at 7:53 AM, Mike Looijmans <mike.looijmans@topic.nl> wrote:
> Devicetree files were installed hard-coded in /boot. When KERNEL_IMAGEDEST
> is anything else but "boot", the postinstall script and the file locations
> no longer match and the postinstall will fail.
>
> Replace "boot" with "${KERNEL_IMAGEDEST}" to fix this problem, and to allow
> the devicetree files to be installed in another location.
>
> Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>

Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>

Patch

diff --git a/meta/recipes-kernel/linux/linux-dtb.inc b/meta/recipes-kernel/linux/linux-dtb.inc
index 7747718..41dd599 100644
--- a/meta/recipes-kernel/linux/linux-dtb.inc
+++ b/meta/recipes-kernel/linux/linux-dtb.inc
@@ -1,5 +1,5 @@ 
 # Support for device tree generation
-FILES_kernel-devicetree = "/boot/devicetree*"
+FILES_kernel-devicetree = "/${KERNEL_IMAGEDEST}/devicetree*"
 KERNEL_DEVICETREE_FLAGS ?= "-R 8 -p 0x3000"
 
 python __anonymous () {
@@ -22,7 +22,7 @@  do_install_append() {
 			DTB_NAME=`echo ${KERNEL_IMAGE_BASE_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"`
 			DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"`
 			dtc -I dts -O dtb ${KERNEL_DEVICETREE_FLAGS} -o ${DTS_BASE_NAME} ${DTS_FILE}
-			install -m 0644 ${DTS_BASE_NAME} ${D}/boot/devicetree-${DTB_SYMLINK_NAME}.dtb
+			install -m 0644 ${DTS_BASE_NAME} ${D}/${KERNEL_IMAGEDEST}/devicetree-${DTB_SYMLINK_NAME}.dtb
 		done
 	fi
 }