From c64ad2ecdcfca06817eb8f6cf644f2d17749fa2e Mon Sep 17 00:00:00 2001 From: Tad Date: Fri, 22 Mar 2019 05:38:58 -0400 Subject: [PATCH] Make it easier to build all supported branches of a device --- Scripts/LineageOS-14.1/Functions.sh | 50 +++++++++++++++-------------- Scripts/LineageOS-15.1/Functions.sh | 18 ++++++----- Scripts/init.sh | 1 + 3 files changed, 37 insertions(+), 32 deletions(-) diff --git a/Scripts/LineageOS-14.1/Functions.sh b/Scripts/LineageOS-14.1/Functions.sh index c359ee63..128d5df6 100644 --- a/Scripts/LineageOS-14.1/Functions.sh +++ b/Scripts/LineageOS-14.1/Functions.sh @@ -67,30 +67,32 @@ buildAll() { brunch lineage_Z00T-user; #The following are all superseded, and should only be enabled if the newer version is broken (not building/booting/etc.) - #brunch lineage_angler-user; - #brunch lineage_bullhead-user; - #brunch lineage_bacon-user; - #brunch lineage_d802-user; - #brunch lineage_d852-user; - #brunch lineage_d855-user; - #brunch lineage_dragon-user; - #brunch lineage_ether-user; - #brunch lineage_flo-user; - #brunch lineage_flounder-user; - #brunch lineage_FP2-user; - #brunch lineage_fugu-user; - #brunch lineage_griffin-user; - #brunch lineage_h850-user; - #brunch lineage_hammerhead-user; - #brunch lineage_klte-user; - #brunch lineage_m8-user; - #brunch lineage_mako-user; - #brunch lineage_marlin-user; - #brunch lineage_sailfish-user; - #brunch lineage_shamu-user; - #brunch lineage_us996-user; - #brunch lineage_us997-user; - #brunch lineage_victara-user; #needs manual patching - fwb xml: fused: dangling tag + if [ "$DOS_BUILDALL_SUPERSEDED" = true ]; then + brunch lineage_angler-user; + brunch lineage_bullhead-user; + brunch lineage_bacon-user; + brunch lineage_d802-user; + brunch lineage_d852-user; + brunch lineage_d855-user; + brunch lineage_dragon-user; + brunch lineage_ether-user; + brunch lineage_flo-user; + brunch lineage_flounder-user; + brunch lineage_FP2-user; + brunch lineage_fugu-user; + brunch lineage_griffin-user; + brunch lineage_h850-user; + brunch lineage_hammerhead-user; + brunch lineage_klte-user; + brunch lineage_m8-user; + brunch lineage_mako-user; + brunch lineage_marlin-user; + brunch lineage_sailfish-user; + brunch lineage_shamu-user; + brunch lineage_us996-user; + brunch lineage_us997-user; + brunch lineage_victara-user; #needs manual patching - fwb xml: fused: dangling tag + fi; } export -f buildAll; diff --git a/Scripts/LineageOS-15.1/Functions.sh b/Scripts/LineageOS-15.1/Functions.sh index 9b40a2e8..c64af895 100644 --- a/Scripts/LineageOS-15.1/Functions.sh +++ b/Scripts/LineageOS-15.1/Functions.sh @@ -68,14 +68,16 @@ buildAll() { brunch lineage_victara-user; #The following are all superseded, and should only be enabled if the newer version is broken (not building/booting/etc.) - #brunch lineage_bacon-user; - #brunch lineage_ether-user; - #brunch lineage_griffin-user; - #brunch lineage_klte-user; - #brunch lineage_mako-user; - #brunch lineage_marlin-user; - #brunch lineage_sailfish-user; - #brunch lineage_shamu-user; + if [ "$DOS_BUILDALL_SUPERSEDED" = true ]; then + brunch lineage_bacon-user; + brunch lineage_ether-user; + brunch lineage_griffin-user; + brunch lineage_klte-user; + brunch lineage_mako-user; + brunch lineage_marlin-user; + brunch lineage_sailfish-user; + brunch lineage_shamu-user; + fi; } export -f buildAll; diff --git a/Scripts/init.sh b/Scripts/init.sh index 5334d6fc..2f41f2db 100644 --- a/Scripts/init.sh +++ b/Scripts/init.sh @@ -23,6 +23,7 @@ export DOS_SIGNING_KEYS=$DOS_WORKSPACE_ROOT"Signing_Keys"; #export DOS_BINARY_PATCHER=""; #export DOS_TOR_WRAPPER="torsocks"; #Uncomment to perform select build operations over Tor +export DOS_BUILDALL_SUPERSEDED=false; #Set true to build superseded devices when running buildAll() export DOS_DEBLOBBER_REMOVE_ACCESSORIES=true; #Set false to allow use of external accessories export DOS_DEBLOBBER_REMOVE_AUDIOFX=true; #Set true to remove AudioFX export DOS_DEBLOBBER_REMOVE_GRAPHICS=false; #Set true to remove all graphics blobs and use SwiftShader CPU renderer