sdcard_image-sunxi: fix dependency loop

As suggested by Andrei Gherzan (see #178):

"The current implementation inherits sdcard_image-sunxi.bbclass
unconditionally which in turn, sets two depends on do_rootfs
unconditionally again.

This means that if I want to build an initramfs image in the
kernel image I will get a dependency loop."

Signed-off-by: Enrico Butera <ebutera@users.sourceforge.net>
This commit is contained in:
Enrico Butera 2017-04-26 23:34:47 +02:00
parent 4740d3fe2d
commit a84d6a40c1

View File

@ -33,13 +33,10 @@ IMAGE_DEPENDS_sunxi-sdimg += " \
parted-native \
mtools-native \
dosfstools-native \
virtual/kernel \
virtual/bootloader \
virtual/kernel:do_deploy \
virtual/bootloader:do_deploy \
"
do_rootfs[depends] += "virtual/kernel:do_deploy"
do_rootfs[depends] += "virtual/bootloader:do_deploy"
# SD card image name
SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.sunxi-sdimg"