]> 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>
Fri, 18 Aug 2017 11:35:56 +0000 (12:35 +0100)
commitb516394f9e7858062aa7b042aa4a1bdef9d3a941
tree152e06fca4c5a41f2bc7071b0ddf5da902d913d6
parentf46652e77f467861dc68c3a8e54f27d08659222d
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