diff options
author | Mathias Kresin <dev@kresin.me> | 2019-01-26 09:29:10 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2019-01-26 15:23:38 +0100 |
commit | a565659c29485399a5bbd555f3d952ba7b756a62 (patch) | |
tree | 34b423df1c5e5039fcd810d09606a6c3503a6eef /target/linux/gemini/image/Makefile | |
parent | 67d39c03ec751a7b805a2c4ff82b5736266291b5 (diff) | |
download | upstream-a565659c29485399a5bbd555f3d952ba7b756a62.tar.gz upstream-a565659c29485399a5bbd555f3d952ba7b756a62.tar.bz2 upstream-a565659c29485399a5bbd555f3d952ba7b756a62.zip |
gemini: replace date placeholder
Replace the data placerholder in ImageInfo-itian_sq201 in a reproducible
way.
The code for the replace was accidentality dropped in 5bac6238959
("gemini: unify and fix ib-nas4220b and sq201 image creation")
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/gemini/image/Makefile')
-rw-r--r-- | target/linux/gemini/image/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile index 14e92ad71d..36ab53d0f2 100644 --- a/target/linux/gemini/image/Makefile +++ b/target/linux/gemini/image/Makefile @@ -71,6 +71,8 @@ define Build/nas4220b-sq201-images cp $(IMAGE_KERNEL) $@.tmp/zImage cp ./ImageInfo-$(1) $@.tmp/ImageInfo + sed -i -e "s/DATESTR/`date +%Y%m%d $(if $(SOURCE_DATE_EPOCH),--date "@$(SOURCE_DATE_EPOCH)")`/g" $@.tmp/ImageInfo + (cd $@.tmp; tar --sort=name --owner=0 --group=0 --numeric-owner -czf $@ * \ $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)")) |