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:
@ -102,14 +102,11 @@ if [ "$MODE" = "DM-V" ]; then
|
|||||||
TMP_OFFSET=`cat ${ROOT_HASH_OFFSET}`
|
TMP_OFFSET=`cat ${ROOT_HASH_OFFSET}`
|
||||||
sed -i "s/OFFSET=/OFFSET=${TMP_OFFSET}/" ${INIT_FILE}
|
sed -i "s/OFFSET=/OFFSET=${TMP_OFFSET}/" ${INIT_FILE}
|
||||||
sed -i "s/HASH=/HASH=${TMP_HASH}/" ${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}
|
sed -i "s/ENC_EN=/ENC_EN=false/" ${INIT_FILE}
|
||||||
elif [ "$MODE" = "DM-E" ]; then
|
elif [ "$MODE" = "DM-E" ]; then
|
||||||
source ${TEMPDIR}/enc.info
|
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/ENC_EN=/ENC_EN=true/" ${INIT_FILE}
|
||||||
sed -i "s/OFFSET=/OFFSET=${sectors}/" ${INIT_FILE}
|
|
||||||
sed -i "s/CIPHER=/CIPHER=${cipher}/" ${INIT_FILE}
|
sed -i "s/CIPHER=/CIPHER=${cipher}/" ${INIT_FILE}
|
||||||
|
|
||||||
echo "Generate misc with key"
|
echo "Generate misc with key"
|
||||||
|
|||||||
Reference in New Issue
Block a user