image: fix CONFIG_CLEAN_IPKG with CONFIG_TARGET_PER_DEVICE_ROOTFS
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sun, 25 Sep 2016 07:30:55 +0000 (09:30 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Sun, 25 Sep 2016 07:30:55 +0000 (09:30 +0200)
commit663145e419410876f6a962e7f3461ed73eb50831
tree92893603e2313927cb9b9ef747fc4859198d68e6
parentce89535bce052c9463e32ad83b950d00c988c21f
image: fix CONFIG_CLEAN_IPKG with CONFIG_TARGET_PER_DEVICE_ROOTFS

Running prepare_rootfs on TARGET_DIR deletes the opkg state when
CONFIG_CLEAN_IPKG is enabled, making the per-device rootfs package install
fail.

To avoid this, create a copy of the TARGET_DIR before prepare_rootfs is run
and use this as basis for per-device rootfs generation.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
include/image.mk
include/rootfs.mk
package/Makefile