Tweaks and add a script for creating signing keys

This commit is contained in:
Tad 2018-06-10 17:04:58 -04:00
parent 4912609425
commit 3ea4b55e70
3 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
Signing_Keys/
Signing_Keys-Old/
Builds/
Build/
Repos/

View File

@ -0,0 +1,11 @@
export desc='/O=Divested Computing, Inc./CN=DivestOS/emailAddress=support@divestos.xyz';
export type='rsa'; #Options: rsa, ec
$base/development/tools/make_key extra "$desc" "$type";
$base/development/tools/make_key media "$desc" "$type";
$base/development/tools/make_key platform "$desc" "$type";
$base/development/tools/make_key releasekey "$desc" "$type";
$base/development/tools/make_key shared "$desc" "$type";
$base/development/tools/make_key verity "$desc" "$type";
echo "Please copy created keys to your signing keys directory. Keep them safe!";

View File

@ -234,6 +234,7 @@ cd $base;
#Fixes
#Fix broken options enabled by hardenDefconfig()
sed -i "s/CONFIG_PARTIALRESUME=y/# CONFIG_STRICT_MEMORY_RWX is not set/" kernel/motorola/msm8992/arch/arm64/configs/*defconfig; #Breaks on compile
sed -i "s/CONFIG_STRICT_MEMORY_RWX=y/# CONFIG_STRICT_MEMORY_RWX is not set/" kernel/lge/msm8996/arch/arm64/configs/lineageos_*_defconfig; #Breaks on compile
#
#END OF DEVICE CHANGES