]> code.ossystems Code Review - openembedded-core.git/commit
rootfs-postcommands.bbclass: Prevent linking testdata to itself
authorMike Looijmans <mike.looijmans@topic.nl>
Thu, 17 Aug 2017 10:49:49 +0000 (12:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Aug 2017 11:21:50 +0000 (12:21 +0100)
commitf8ceec50af68650d6548738e5b5582e2b25424d7
treefc761884ee32f0d7e208d1a65f7439fbf3f32a26
parenta253743f3e3badadb0afe90a277dd4d252b32c6c
rootfs-postcommands.bbclass: Prevent linking testdata to itself

testdata and testdata_link may point to the same file, in particular
when IMAGE_LINK_NAME and IMAGE_NAME are equal.

Check if this is the case before creating a symlink that points to
itself and makes the next build fail.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rootfs-postcommands.bbclass