mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
kernel: use correct external modules at initrd build.
This commit is contained in:
14
lfs/linux
14
lfs/linux
@@ -226,16 +226,6 @@ ifeq "$(MACHINE_TYPE)" "arm"
|
||||
done
|
||||
endif
|
||||
|
||||
# Create initramfs images
|
||||
dracut --force --verbose --strip --xz /boot/initramfs-$(KVER)-$(VERSUFIX).img $(KVER)-$(VERSUFIX)
|
||||
|
||||
ifeq "$(KCFG)" "-kirkwood"
|
||||
cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
|
||||
endif
|
||||
|
||||
ifeq "$(KCFG)" "-multi"
|
||||
cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
|
||||
endif
|
||||
|
||||
ifeq "$(LASTKERNEL)" "1"
|
||||
# Only do this once
|
||||
@@ -264,5 +254,9 @@ ifeq "$(LASTKERNEL)" "1"
|
||||
endif
|
||||
endif
|
||||
|
||||
#force new build of external modules and initrd if the kernel was rebuild
|
||||
-rm -f /usr/src/log/*-kmod-$(VER)-$(VERSUFIX)
|
||||
-rm -f /usr/src/log/linux-initrd-$(VER)-$(VERSUFIX)
|
||||
|
||||
@rm -rf $(DIR_SRC)/patch-o-matic* $(DIR_SRC)/iptables* $(DIR_SRC)/squashfs* $(DIR_SRC)/netfilter-layer7-*
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user