kernel-build: fix STRIP_KERNEL_EXPORTS for 64-bit kernels
authorRui Salvaterra <rsalvaterra@gmail.com>
Wed, 30 Dec 2020 20:04:42 +0000 (20:04 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 1 Jan 2021 18:55:59 +0000 (19:55 +0100)
commitf3bfff9d7f85ab5f2df2728a760ddeebdb185f4c
treeec61f490654e1b8a8166fdee5c2c87dfbf1c2120
parent59b5c52a6b77e3b6edd45f2526d55efbd0a04043
kernel-build: fix STRIP_KERNEL_EXPORTS for 64-bit kernels

While parsing the nm output, we need to account for the fact that 64-bit kernels
have 64-bit wide addresses. While at it, replace the grep | sed combo with a
single awk invocation and a stronger regex.

Fixes: 2ef0acc5fcda557fa5aaad35d27cb8cf75be96d2 "kernel-build: fix
STRIP_KERNEL_EXPORTS for recent kernels"

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
include/kernel-build.mk