diff options
author | Bjørn Mork <bjorn@mork.no> | 2019-05-12 00:56:02 +0200 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2019-05-12 00:56:02 +0200 |
commit | a8c7339807e15a5dd8e29add39a97e017297e858 (patch) | |
tree | f8d6471cad9cd8c1614b005c85730839c997abd4 | |
parent | 2cedabbd4107ac085310567356c21f27f786afc8 (diff) |
WiP: working exam
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -4,6 +4,8 @@ FILES=version opt.local PRIKEY=PriKey.pem SIGNKEY=signkey.pem +MODEL=DCS-8000LH +BUILD=9999 all: fw.tar @@ -38,6 +40,18 @@ update.sha1: update.aes update.aes: aes.key opt.squashfs openssl aes-128-cbc -md md5 -kfile aes.key -nosalt -e -out $@ -in opt.squashfs +update.bin: update.aes + $(eval MD5SUM := $(shell openssl aes-128-cbc -md md5 -kfile aes.key -nosalt -d -in update.aes | md5sum - | cut -d' ' -f1 | md5sum - | cut -d' ' -f1)) + sed -i -e "s/^MD5SUM=.*/MD5SUM=\"$(MD5SUM)\"/" -e "s/^VERSION=\"1.0.0-.*/VERSION=\"1.0.0-$(BUILD)\"/" update.bin + +certificate.info: + echo "Publisher:DMdssdFW1" >$@ + echo "Supported Models:$(MODEL),$(MODEL)" >>$@ + echo "Firmware Version:1.0.0" >>$@ + echo "Target:update.bin" >>$@ + echo "Build No:$(BUILD)" >>$@ + echo "Contents:update" >>$@ + update.bin.aes: aes.key update.bin openssl aes-128-cbc -md md5 -kfile aes.key -nosalt -e -out $@ -in update.bin |