# rebuild module deps
depmod -a $(KVER)-$(VERSUFIX)
+ #skip initrd build on pae and rpi kernel.
+ifneq "$(KCFG)" "-rpi"
+ifneq "$(KCFG)" "-pae"
+
# Create initramfs images
dracut --force --verbose --strip --xz /boot/initramfs-$(KVER)-$(VERSUFIX).img $(KVER)-$(VERSUFIX)
ifeq "$(KCFG)" "-multi"
cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
+endif
+
+endif
endif
@$(POSTBUILD)