mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-06 19:19:31 +00:00
build: revert 54070a1 (all kernels are >= 5.10)
Commit 54070a1 was added to allow building proper SDKs with kernels < 5.10. Now that all targets use at least kernel 5.10 it can be reverted. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
8182c7edcb
commit
38c150612c
@ -153,17 +153,12 @@ define Kernel/CopyImage
|
|||||||
}
|
}
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Always add "modules" so a proper Module.symvers file is written that
|
|
||||||
# also contains symbols from the kernel modules. Without these symbols
|
|
||||||
# external packages that depend on exported symbols from kernel modules
|
|
||||||
# will fail to build.
|
|
||||||
define Kernel/CompileImage/Default
|
define Kernel/CompileImage/Default
|
||||||
rm -f $(TARGET_DIR)/init
|
rm -f $(TARGET_DIR)/init
|
||||||
+$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all) modules
|
+$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all)
|
||||||
$(call Kernel/CopyImage)
|
$(call Kernel/CopyImage)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Here as well, always add "modules", see comment above.
|
|
||||||
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
|
||||||
define Kernel/CompileImage/Initramfs
|
define Kernel/CompileImage/Initramfs
|
||||||
$(call Kernel/Configure/Initramfs)
|
$(call Kernel/Configure/Initramfs)
|
||||||
@ -185,7 +180,7 @@ endif
|
|||||||
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ),$(STAGING_DIR_HOST)/bin/xz -T$(if $(filter 1,$(NPROC)),2,0) -9 -fz --check=crc32 $(KERNEL_BUILD_DIR)/initrd.cpio)
|
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ),$(STAGING_DIR_HOST)/bin/xz -T$(if $(filter 1,$(NPROC)),2,0) -9 -fz --check=crc32 $(KERNEL_BUILD_DIR)/initrd.cpio)
|
||||||
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),$(STAGING_DIR_HOST)/bin/zstd -T0 -f -o $(KERNEL_BUILD_DIR)/initrd.cpio.zstd $(KERNEL_BUILD_DIR)/initrd.cpio)
|
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),$(STAGING_DIR_HOST)/bin/zstd -T0 -f -o $(KERNEL_BUILD_DIR)/initrd.cpio.zstd $(KERNEL_BUILD_DIR)/initrd.cpio)
|
||||||
endif
|
endif
|
||||||
+$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all) modules
|
+$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all)
|
||||||
$(call Kernel/CopyImage,-initramfs)
|
$(call Kernel/CopyImage,-initramfs)
|
||||||
endef
|
endef
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user