kernel-defaults: ensure SOURCE_DATE_EPOCH on /init
This is a follow up of 8cb13f4e6d which sets the right timestamp for the
/init file in initramfs. The previous patch doesn't cover it as the
files appear to come from a later step during compilation.
CC: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: Paul Spooren <mail@aparcar.org>
			
			
This commit is contained in:
		 Paul Spooren
					Paul Spooren
				
			
				
					committed by
					
						 Daniel Golle
						Daniel Golle
					
				
			
			
				
	
			
			
			 Daniel Golle
						Daniel Golle
					
				
			
						parent
						
							9f07d1519c
						
					
				
				
					commit
					4791afa734
				
			| @@ -146,6 +146,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) | |||||||
| define Kernel/CompileImage/Initramfs | define Kernel/CompileImage/Initramfs | ||||||
| 	$(call Kernel/Configure/Initramfs) | 	$(call Kernel/Configure/Initramfs) | ||||||
| 	$(CP) $(GENERIC_PLATFORM_DIR)/other-files/init $(TARGET_DIR)/init | 	$(CP) $(GENERIC_PLATFORM_DIR)/other-files/init $(TARGET_DIR)/init | ||||||
|  | 	$(if $(SOURCE_DATE_EPOCH),touch -hcd "@$(SOURCE_DATE_EPOCH)" $(TARGET_DIR)/init) | ||||||
| 	rm -rf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/usr/initramfs_data.cpio* | 	rm -rf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/usr/initramfs_data.cpio* | ||||||
| 	+$(KERNEL_MAKE) $(if $(KERNELNAME),$(KERNELNAME),all) modules | 	+$(KERNEL_MAKE) $(if $(KERNELNAME),$(KERNELNAME),all) modules | ||||||
| 	$(call Kernel/CopyImage,-initramfs) | 	$(call Kernel/CopyImage,-initramfs) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user