]> code.ossystems Code Review - openembedded-core.git/commit
linux-dtb: strip DTB extension properly in postinst/postrm
authorDenys Dmytriyenko <denys@ti.com>
Wed, 21 Dec 2016 20:20:17 +0000 (15:20 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Jan 2017 13:34:29 +0000 (13:34 +0000)
commit40c2addf0f0ee16b1c1334cf00f1490ffeaac475
treed19a5df35c14dc22845565070eb911e30b452f49
parent58a31d8dd7293f14c70e56ec9639c420d15e7dfc
linux-dtb: strip DTB extension properly in postinst/postrm

The use of awk -F "." in do_install/do_deploy to strip filename extension
was deprecated long time ago in 72980d5bb465f0640ed451d1ebb9c5d2a210ad0c.

Make a similar change in postinst/postrm to properly use basename command.

Otherwise DTB files that contain dots in the name result in broken symlinks
that point to non-existent truncated files.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-kernel/linux/linux-dtb.inc