X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Flinux-initrd;h=64e08fa815c7e7c7c399d39d2efb0f21c4bfdb89;hb=HEAD;hp=3f0a80739dfece9a092f4e82e0eb3f36234b4777;hpb=2d475a3c6c8e37295f97a07dcca9a6eed2dbb21f;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/lfs/linux-initrd b/lfs/linux-initrd index 3f0a80739d..c749379ba7 100644 --- a/lfs/linux-initrd +++ b/lfs/linux-initrd @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2018 IPFire Team # +# Copyright (C) 2007-2021 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -42,7 +42,7 @@ check : $(patsubst %,$(DIR_CHK)/%,$(objects)) download :$(patsubst %,$(DIR_DL)/%,$(objects)) -md5 : $(subst %,%_MD5,$(objects)) +b2 : $(subst %,%_BLAKE2,$(objects)) dist: @$(PAK) @@ -55,31 +55,14 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) # rebuild module deps - depmod -a $(KVER)-$(VERSUFIX) - - #skip initrd build on pae and rpi kernel. -ifneq "$(KCFG)" "-rpi" -ifneq "$(KCFG)" "-pae" + depmod -a $(KVER) # Create initramfs images - dracut --force --early-microcode --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) - cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(KVER)-$(VERSUFIX) - cd /boot && rm initramfs-$(KVER)-$(VERSUFIX).img -endif + dracut --force --verbose --strip /boot/initramfs-$(KVER).img $(KVER) -ifeq "$(KCFG)" "-multi" ifeq "$(BUILD_ARCH)" "aarch64" - cd /boot && mkimage -A arm64 -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(KVER)-$(VERSUFIX) + cd /boot && mkimage -A arm64 -T ramdisk -C lzma -d initramfs-$(KVER).img uInit-$(KVER) # dont remove initramfs because grub need this to boot. -else - cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(KVER)-$(VERSUFIX) - cd /boot && rm initramfs-$(KVER)-$(VERSUFIX).img -endif endif -endif -endif @$(POSTBUILD)