Skip to content

Commit

Permalink
kernel-defaults: ensure SOURCE_DATE_EPOCH on /init
Browse files Browse the repository at this point in the history
This is a follow up of 8cb13f4 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 <[email protected]>

Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar authored and dangowrt committed Oct 2, 2019
1 parent 9f07d15 commit 4791afa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/kernel-defaults.mk
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
define Kernel/CompileImage/Initramfs
$(call Kernel/Configure/Initramfs)
$(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*
+$(KERNEL_MAKE) $(if $(KERNELNAME),$(KERNELNAME),all) modules
$(call Kernel/CopyImage,-initramfs)
Expand Down

0 comments on commit 4791afa

Please sign in to comment.