From c3efda65dfc545cc56fce039ff80ea3125a48298 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 30 Nov 2014 09:30:58 +0100 Subject: [PATCH] linux-initrd: skip initrd build of pae and rpi kernel. --- lfs/linux-initrd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lfs/linux-initrd b/lfs/linux-initrd index 1b048b50a0..b5cc42212d 100644 --- a/lfs/linux-initrd +++ b/lfs/linux-initrd @@ -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) -- 2.39.2