relocatable.bbclass: Handle files which don't have read/write permissions
authorJoshua Lock <josh@linux.intel.com>
Thu, 8 Apr 2010 15:47:48 +0000 (16:47 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 5 May 2010 14:05:49 +0000 (15:05 +0100)
commit5c72f087792cfc1d7bc2d1c1d0ccdb1a0dfd88c1
tree62feb177025448e8fd4b7a1a384fce6472cda71e
parent4806fcf56c7533f2c9c7c6fe0d0f0966f805a793
relocatable.bbclass: Handle files which don't have read/write permissions

It's possible to have files in our sysroot which don't have the write (or in
some cases even the read) bit set. Test for these and if they are not set
temporarily set them so that we can chrpath the binaries.

Also remove following of symlinks because if it links to a file created by the
package install we already handle it when we process the sysroot.
Further, by ignoring symlinks here we don't cause a build to fail when the
symlink is to somewhere in the host OS.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
classes/relocatable.bbclass