Your yaffs patch worked okay and is the best solution.
Thanks Richard
--- On Sun, 15/7/12, Robert Craig <robertpcraig@xxxxxxxxx> wrote:
From: Robert Craig <robertpcraig@xxxxxxxxx> Subject: Re: [PATCH 1/1] Android build project: Fix 'mkyaffs2image -f ...' selabel_lookup error To: "Richard Haines" <richard_c_haines@xxxxxxxxxxxxxx> Cc: selinux@xxxxxxxxxxxxx Date: Sunday, 15 July, 2012, 16:31
Thanks for bringing this to our attention. I think we should instead make a change to the yaffs code. This will help with any other wrapper code. Try the attached patch (worked for me).
When building SE-Android, mkyaffs2image fails with an selabel_lookup error
as the 'mountpoint' parameter does not match the file_context entry
(requires a leading '/').
Signed-off-by: Richard Haines <richard_c_haines@xxxxxxxxxxxxxx>
---
tools/releasetools/build_image.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py
index a615d1a..2b42d7d 100755
--- a/tools/releasetools/build_image.py
+++ b/tools/releasetools/build_image.py
@@ -126,11 +126,11 @@ def main(argv):
image_filename = os.path.basename(out_file)
mount_point = ""
if image_filename == "system.img":
- mount_point = "system"
+ mount_point = "/system"
elif image_filename == "userdata.img":
- mount_point = "data"
+ mount_point = "/data"
elif image_filename == "cache.img":
- mount_point = "cache"
+ mount_point = "/cache"
else:
print >> sys.stderr, "error: unknown image file name ", image_filename
exit(1)
--
1.7.10.4
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.
|