common: mk-md.sh: remove BLOCK and OFFSET replace

Buildroot change Iaee8834b4262ceec2de7521fc2720f62b6295e23
(security-overlay: auto look for rootfs partition and init file)
it can look for these info by itself. So remove them.

Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I06ce237757635c79e32483f2f3424914814e0357
This commit is contained in:
Zain Wang
2022-04-08 17:15:27 +08:00
parent 43d991a747
commit 33c3e7450f

View File

@ -102,14 +102,11 @@ if [ "$MODE" = "DM-V" ]; then
TMP_OFFSET=`cat ${ROOT_HASH_OFFSET}`
sed -i "s/OFFSET=/OFFSET=${TMP_OFFSET}/" ${INIT_FILE}
sed -i "s/HASH=/HASH=${TMP_HASH}/" ${INIT_FILE}
sed -i "s/BLOCK=/BLOCK=${PARTITION_NUM}/" ${INIT_FILE}
sed -i "s/ENC_EN=/ENC_EN=false/" ${INIT_FILE}
elif [ "$MODE" = "DM-E" ]; then
source ${TEMPDIR}/enc.info
sed -i "s/BLOCK=/BLOCK=${PARTITION_NUM}/" ${INIT_FILE}
sed -i "s/ENC_EN=/ENC_EN=true/" ${INIT_FILE}
sed -i "s/OFFSET=/OFFSET=${sectors}/" ${INIT_FILE}
sed -i "s/CIPHER=/CIPHER=${cipher}/" ${INIT_FILE}
echo "Generate misc with key"