linux: de-duplicate DTB and Linux image installation
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 18 Oct 2015 21:05:00 +0000 (23:05 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 20 Dec 2015 14:23:01 +0000 (15:23 +0100)
commit55b80d3bb92ebfe334ba4b2ba980c45d1d2f1c05
tree86120b5cf6d31b193173f1b15853c7e61d7be5f4
parent4e793b82a557f9c0cb1c5897a750ef445e95c5d5
linux: de-duplicate DTB and Linux image installation

Currently, the LINUX_INSTALL_DTB and LINUX_INSTALL_DTB_TARGET macros
are exactly the same, except for the target directory.

Similarly, LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET and
LINUX_INSTALL_IMAGES_CMDS are copying the kernel image, just to a
different place (and with a different strategy).

As a preparation for future additions, this commit de-duplicate this
code:

 - LINUX_INSTALL_DTB becomes a make macro that takes one argument: the
   destination directory.

 - LINUX_INSTALL_IMAGE is a new make macro that also takes on
   argument: the destination directory.

Both macros are used by LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET and
LINUX_INSTALL_IMAGES_CMDS to respectively install to the target
directory and the images directory.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
linux/linux.mk