linux: properly install all images in the initramfs case
authorSebastian Frias <sf84@laposte.net>
Mon, 25 Apr 2016 14:52:17 +0000 (16:52 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 25 Apr 2016 19:40:47 +0000 (21:40 +0200)
commitb1f0212af66e374f2a5f88edd8d3f4b2b8a90d9b
treeaf10e6bb8e0e99fcdde198795de50522b1d5cd3b
parent7410b8e0ce50c6a989e5708f86518b164fad40b2
linux: properly install all images in the initramfs case

The target "$(LINUX_DIR)/.stamp_initramfs_rebuilt" uses its own
'cp' command, instead of LINUX_INSTALL_IMAGE/LINUX_INSTALL_IMAGES_CMDS
provided by (or updated with) commit 055e6162bba7 ("linux: don't build
appended DTB image in place and support multiple images") and thus is
not operating properly when APPENDED_DTB is used.

Indeed, it copies a single image, and does not copy the one with the DTB
appended.

This patch replaces the 'cp' command with LINUX_INSTALL_IMAGE which
handles APPENDED_DTB.

Fixes: 055e6162bba7 ("linux: don't build appended DTB image in place and
support multiple images")

Signed-off-by: Sebastian Frias <sf84@laposte.net>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
linux/linux.mk