add fstab for zuma platform
Bug: 274823764 Change-Id: I121a1434a5e4eb764f07003a40a58926d6525932
This commit is contained in:
parent
400e773e10
commit
63d759fd29
2 changed files with 54 additions and 0 deletions
|
@ -33,6 +33,15 @@ package {
|
|||
default_applicable_licenses: ["device_google_zumapro_license"],
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen_fstab.zuma-hw-encrypt",
|
||||
srcs: ["fstab.zumapro.in"],
|
||||
out: ["fstab.zuma"],
|
||||
cmd: "sed -e s/@fileencryption@/fileencryption=:aes-256-hctr2:inlinecrypt_optimized+wrappedkey_v0/" +
|
||||
" -e s/@inlinecrypt@/inlinecrypt/ " +
|
||||
" -e s/@metadata_encryption@/metadata_encryption=:wrappedkey_v0/ $(in) > $(out)",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen_fstab.zumapro-hw-encrypt",
|
||||
srcs: ["fstab.zumapro.in"],
|
||||
|
@ -42,6 +51,15 @@ genrule {
|
|||
" -e s/@metadata_encryption@/metadata_encryption=:wrappedkey_v0/ $(in) > $(out)",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen_fstab.zuma-sw-encrypt",
|
||||
srcs: ["fstab.zumapro.in"],
|
||||
out: ["fstab.zuma"],
|
||||
cmd: "sed -e s/@fileencryption@/fileencryption=aes-256-xts:aes-256-hctr2/" +
|
||||
" -e s/@inlinecrypt@// " +
|
||||
" -e s/@metadata_encryption@/metadata_encryption=/ $(in) > $(out)",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen_fstab.zumapro-sw-encrypt",
|
||||
srcs: ["fstab.zumapro.in"],
|
||||
|
@ -51,6 +69,15 @@ genrule {
|
|||
" -e s/@metadata_encryption@/metadata_encryption=/ $(in) > $(out)",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen_fstab.zuma-no-encrypt",
|
||||
srcs: ["fstab.zumapro.in"],
|
||||
out: ["fstab.zuma"],
|
||||
cmd: "sed -e s/@fileencryption@//" +
|
||||
" -e s/@inlinecrypt@// " +
|
||||
" -e s/@metadata_encryption@// $(in) > $(out)",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen_fstab.zumapro-no-encrypt",
|
||||
srcs: ["fstab.zumapro.in"],
|
||||
|
@ -60,6 +87,15 @@ genrule {
|
|||
" -e s/@metadata_encryption@// $(in) > $(out)",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen_fstab.zuma-fips",
|
||||
srcs: ["fstab.zumapro.in"],
|
||||
out: ["fstab.zuma-fips"],
|
||||
cmd: "sed -e s/@fileencryption@/fileencryption=aes-256-xts/" +
|
||||
" -e s/@inlinecrypt@/inlinecrypt/ " +
|
||||
" -e s/@metadata_encryption@/metadata_encryption=aes-256-xts/ $(in) > $(out)",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen_fstab.zumapro-fips",
|
||||
srcs: ["fstab.zumapro.in"],
|
||||
|
@ -69,6 +105,13 @@ genrule {
|
|||
" -e s/@metadata_encryption@/metadata_encryption=aes-256-xts/ $(in) > $(out)",
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "fstab.zuma",
|
||||
src: ":gen_fstab.zuma-no-encrypt",
|
||||
vendor: true,
|
||||
vendor_ramdisk_available: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "fstab.zumapro",
|
||||
src: ":gen_fstab.zumapro-no-encrypt",
|
||||
|
@ -76,6 +119,13 @@ prebuilt_etc {
|
|||
vendor_ramdisk_available: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "fstab.zuma-fips",
|
||||
src: ":gen_fstab.zuma-fips",
|
||||
vendor: true,
|
||||
vendor_ramdisk_available: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "fstab.zumapro-fips",
|
||||
src: ":gen_fstab.zumapro-fips",
|
||||
|
|
|
@ -332,9 +332,13 @@ PRODUCT_COPY_FILES += \
|
|||
|
||||
# Fstab files
|
||||
PRODUCT_PACKAGES += \
|
||||
fstab.zuma \
|
||||
fstab.zumapro \
|
||||
fstab.zuma.vendor_ramdisk \
|
||||
fstab.zumapro.vendor_ramdisk \
|
||||
fstab.zuma-fips \
|
||||
fstab.zumapro-fips \
|
||||
fstab.zuma-fips.vendor_ramdisk \
|
||||
fstab.zumapro-fips.vendor_ramdisk
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue