mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
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 <arne_f@ipfire.org>
This commit is contained in:
@@ -179,6 +179,9 @@ else
|
|||||||
cd $(DIR_APP) && make clean
|
cd $(DIR_APP) && make clean
|
||||||
cd $(DIR_APP) && sed -i -e 's/EXTRAVERSION\ =.*/EXTRAVERSION\ =\ -$(VERSUFIX)/' Makefile
|
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
|
# Build the kernel
|
||||||
cd $(DIR_APP) && make $(MAKETUNING) $(KERNEL_TARGET) modules
|
cd $(DIR_APP) && make $(MAKETUNING) $(KERNEL_TARGET) modules
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user