summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/dm-verity-img.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/dm-verity-img.bbclass b/classes/dm-verity-img.bbclass
index 7f79548..9a3a97e 100644
--- a/classes/dm-verity-img.bbclass
+++ b/classes/dm-verity-img.bbclass
@@ -46,6 +46,9 @@ DM_VERITY_IMAGE_HASH_BLOCK_SIZE ?= "4096"
46# Should we store the hash data on a separate device/partition? 46# Should we store the hash data on a separate device/partition?
47DM_VERITY_SEPARATE_HASH ?= "0" 47DM_VERITY_SEPARATE_HASH ?= "0"
48 48
49# Additional arguments for veritysetup
50DM_VERITY_SETUP_ARGS ?= ""
51
49# These are arch specific. We could probably intelligently auto-assign these? 52# These are arch specific. We could probably intelligently auto-assign these?
50# Take x86-64 values as defaults. No impact on functionality currently. 53# Take x86-64 values as defaults. No impact on functionality currently.
51# See SD_GPT_ROOT_X86_64 and SD_GPT_ROOT_X86_64_VERITY in the spec. 54# See SD_GPT_ROOT_X86_64 and SD_GPT_ROOT_X86_64_VERITY in the spec.
@@ -146,6 +149,7 @@ verity_setup() {
146 cp -a $INPUT $OUTPUT 149 cp -a $INPUT $OUTPUT
147 150
148 SETUP_ARGS=" \ 151 SETUP_ARGS=" \
152 ${DM_VERITY_SETUP_ARGS} \
149 --data-block-size=${DM_VERITY_IMAGE_DATA_BLOCK_SIZE} \ 153 --data-block-size=${DM_VERITY_IMAGE_DATA_BLOCK_SIZE} \
150 --hash-block-size=${DM_VERITY_IMAGE_HASH_BLOCK_SIZE} \ 154 --hash-block-size=${DM_VERITY_IMAGE_HASH_BLOCK_SIZE} \
151 $HASH_OFFSET format $OUTPUT $OUTPUT_HASH \ 155 $HASH_OFFSET format $OUTPUT $OUTPUT_HASH \