From 2e65d316a7ee76eeb8edd2492e1c3fe013d366ba Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 30 Jul 2019 18:28:57 +0000 Subject: [PATCH] kernel: remove old modules folder before kernel build the build fails at creating source symlinks for external modules build if it already exists. Signed-off-by: Arne Fitzenreiter --- lfs/linux | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lfs/linux b/lfs/linux index 4115a72677..47636ac84b 100644 --- a/lfs/linux +++ b/lfs/linux @@ -179,6 +179,9 @@ else cd $(DIR_APP) && make clean cd $(DIR_APP) && sed -i -e 's/EXTRAVERSION\ =.*/EXTRAVERSION\ =\ -$(VERSUFIX)/' Makefile + # Remove modules folder if exists + rm -rf /lib/modules/$(VER)-$(VERSUFIX) + # Build the kernel cd $(DIR_APP) && make $(MAKETUNING) $(KERNEL_TARGET) modules -- 2.39.5