Message ID | 20200827090442.251759-2-mail@aparcar.org |
---|---|
State | Superseded |
Headers | show |
Series | [1/2] imagebuilder: rename PKG_BUILD_DIR to IB_BUILD_DIR | expand |
diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile index 873e1b44e0..175c30282e 100644 --- a/target/imagebuilder/Makefile +++ b/target/imagebuilder/Makefile @@ -77,6 +77,8 @@ endif $(CP) -L $(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/dts/* $(IB_DTSDIR); \ fi $(SED) 's,^# REVISION:=.*,REVISION:=$(REVISION),g' $(IB_BUILD_DIR)/include/version.mk + $(SED) 's,^# SOURCE_DATE_EPOCH:=.*,SOURCE_DATE_EPOCH:=$(SOURCE_DATE_EPOCH),g' $(IB_BUILD_DIR)/include/version.mk + $(SED) '/LINUX_VERMAGIC:=/ { s,unknown,$(LINUX_VERMAGIC),g }' $(IB_BUILD_DIR)/include/kernel.mk find $(IB_BUILD_DIR) -name CVS -o -name .git -o -name .svn \ | $(XARGS) rm -rf $(INSTALL_DIR) $(IB_IDIR)
The SOURCE_DATE_EPOCH is used to unify the mtime within created images, make it the same as the build system used during creation of the IB. The LINUX_VERMAGIC is used to create a reproducible IMG_PART_SIGNATURE, therefore make it available to the IB as well. Signed-off-by: Paul Spooren <mail@aparcar.org> --- target/imagebuilder/Makefile | 2 ++ 1 file changed, 2 insertions(+)