install hooks: Interoperate with EAPI7

In EAPI7, the 'D' variable along with others doesn't have a trailing
slash anymore[1]. Let's use interoperable code here by removing any
trainling slash and then appending one manually.


TEST=Emerge kernel with eapi7 package and make sure that .ko.debug and
vmlinux aren't scanned with llvm-readelf

Change-Id: I1984e8e67bf41db6ca78d6f4fe5bea9a11ab0922
Commit-Queue: Stephen Boyd <>
Commit-Queue: Mike Frysinger <>
Tested-by: Stephen Boyd <>
Auto-Submit: Stephen Boyd <>
Reviewed-by: Mike Frysinger <>
1 file changed