linux.inc: create image/boot dir in do_devicetree_image
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Fri, 1 Oct 2010 13:20:05 +0000 (15:20 +0200)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Fri, 1 Oct 2010 13:20:05 +0000 (15:20 +0200)
it is possible that do_devicetree_image wants to install
the devicetree in the image/boot dir before it is created
this patch creates the boot dir if needed

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
recipes/linux/linux.inc

index 3b2da6c..f61f5a4 100644 (file)
@@ -227,6 +227,7 @@ FILES_kernel-headers = "${exec_prefix}/src/linux*"
 do_devicetree_image() {
     if test -n "${KERNEL_DEVICETREE}" ; then
         dtc -I dts -O dtb ${KERNEL_DEVICETREE_FLAGS} -o devicetree ${KERNEL_DEVICETREE}
+        install -d ${D}/boot
         install -m 0644 devicetree ${D}/boot/devicetree-${KERNEL_VERSION}
         install -d ${DEPLOY_DIR_IMAGE}
         install -m 0644 devicetree ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.dtb