mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
linux-initrd: skip initrd build of pae and rpi kernel.
This commit is contained in:
@@ -57,6 +57,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
# 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)
|
||||
|
||||
@@ -66,5 +70,8 @@ endif
|
||||
|
||||
ifeq "$(KCFG)" "-multi"
|
||||
cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
|
||||
endif
|
||||
|
||||
endif
|
||||
endif
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user