kernel: use correct external modules at initrd build.

This commit is contained in:
Arne Fitzenreiter
2014-11-01 19:57:51 +01:00
parent 932a34e57e
commit 22820bf256
5 changed files with 81 additions and 11 deletions

View File

@@ -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)