Commit Graph

7 Commits

Author SHA1 Message Date
Kristof Robot
a27c9aa7e4 sdcard_image-sunxi.bbclass: reverting to deploy dir instead of staging dir (resolves #81)
To resolve the race condition described in #15,
a patch was introduced to use the kernel source from staging dir
rather than deploy dir.

After the reorganization of the kernel source location by
6a1ff0e7ea
this no longer works.

Reverting the previous patch,
and introducing explicit rootfs dependency instead.

Signed-off-by: Kristof Robot <krirobo@gmail.com>
2015-02-01 13:22:11 +01:00
Jonathan Liu
aecfa42445 sdcard_image-sunxi.bbclass: make sunxi-sdimg image dependent on rootfs type
The rootfs may be using a filesystem type other than ext3 so it should
not be hardcoded.

Signed-off-by: Jonathan Liu <net147@gmail.com>
2014-03-06 00:39:47 +11:00
Kristof Robot
9a2692fcde sdcard_image-sunxi.bbclass: adding ext3 dependency (resolves #46)
Without this explicit dependency,
a race condition would be present between the generation of the sd image
and the generation of the ext3 file,
which leads to corrupt SD images in some circumstances.

Based on meta-raspberrypi commit a760ea5fa2
2014-03-04 22:37:31 +01:00
Jonathan Liu
2c36a963ba classes/sdcard_image-sunxi: use absolute path to rootfs 2014-02-17 18:07:26 +11:00
Kristof Robot
a248d37b35 sdcard_image-sunxi.bbclass: fixing race condition with virtual/kernel (resolves #15)
Fixing a race condition with virtual/kernel:do_deploy,
which needs to deploy the image before the IMAGE_CMD_sunxi-sdimg () code is being run
as part of image:do_rootfs, otherwise the following error would sometimes occur
when compiling with multiple threads (BB_NUMBER_THREADS=2):
"[..]/deploy/images/cubieboard2/uImage-cubieboard2.bin: No such file or directory"

Fixing this by using the kernel image in sysrootfs instead.

At the same time, also adding an explicit rootfs dependency on sunxi-board-fex:do_deploy because of
"${DEPLOY_DIR_IMAGE}/fex.bin", although this never seems to pose problems in practice.
2013-12-19 10:06:55 +01:00
Kristof Robot
7880894810 sdcard_image-sunxi.bbclass: fixed .xz check
.xz check was relying on a bash check that was not working,
returning "]] : not found" error.
Replaced that check with an sh-compatible check,
from https://github.com/djwillis/meta-raspberrypi/blob/master/classes/sdcard_image-rpi.bbclass
2013-12-14 20:31:36 +01:00
Nicolas Aguirre
ef1284c09e Change filename for sunxi-img class to match the new one. 2013-11-15 18:57:41 +01:00