From 0f11f22d84ab51ac95b1665c3c083c7a470f5461 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Fri, 14 Dec 2012 16:54:01 -0800 Subject: [PATCH] compat: fix get-compat-kernels for rebuilding kernel headers We need to rebuild headers for kernels >= 3.4, and while at it account for 4.0 and x.y kernels here x > 3. Signed-off-by: Luis R. Rodriguez --- bin/get-compat-kernels | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/get-compat-kernels b/bin/get-compat-kernels index 5d97e31c031f..85ef00d81551 100755 --- a/bin/get-compat-kernels +++ b/bin/get-compat-kernels @@ -169,7 +169,7 @@ function rebuild_header_binary_deps() { exit 1 fi - for kernel in $(ls -d ${KSRC_PREFIX}/lib/modules/*generic | tail -3); do + for kernel in $(ls -d ${KSRC_PREFIX}/lib/modules/*generic | grep -E "/3.[4-9]|/[4-9]"); do echo $kernel count=0 -- 2.30.2