mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Remove JustArchi's compiler flag optimizations
While some tasks complete slightly faster overall there are too many downsides - Too large system images - Weird compiler errors - Performance regressions on some devices - General maintenance overhead Maybe a less aggressive variant can be brought back in the future
This commit is contained in:
parent
9cdfc59d5e
commit
994a069deb
7 changed files with 8 additions and 1611 deletions
|
@ -68,6 +68,7 @@ buildAll() {
|
|||
brunch lineage_d802-userdebug;
|
||||
brunch lineage_d855-userdebug;
|
||||
brunch lineage_ether-user;
|
||||
brunch lineage_flo-user;
|
||||
brunch lineage_flounder-user;
|
||||
brunch lineage_FP2-user;
|
||||
# brunch lineage_h815-user; - (UPSTREAM) drivers/input/touchscreen/DS5/RefCode_CustomerImplementation.c:147:1: warning: the frame size of 2064 bytes is larger than 2048 bytes
|
||||
|
@ -75,10 +76,13 @@ buildAll() {
|
|||
brunch lineage_hammerhead-user;
|
||||
brunch lineage_herolte-user;
|
||||
brunch lineage_himaul-user;
|
||||
brunch lineage_i9100-userdebug;
|
||||
brunch lineage_i9305-user;
|
||||
brunch lineage_jfltexx-user;
|
||||
brunch lineage_klte-user;
|
||||
brunch lineage_m8-user;
|
||||
brunch lineage_marlin-user;
|
||||
brunch lineage_n5110-user;
|
||||
brunch lineage_osprey-user;
|
||||
brunch lineage_sailfish-user;
|
||||
brunch lineage_shamu-user;
|
||||
|
@ -86,16 +90,6 @@ buildAll() {
|
|||
}
|
||||
export -f buildAll;
|
||||
|
||||
buildAllNO3() {
|
||||
brunch lineage_flo-user; #Not affected by size, but breaks: undefined reference to 'mm_jpeg_get_new_session_idx'
|
||||
#Devices incompatible with -O3 due to size constraints
|
||||
#TODO: Consider moving these devices back and simply disabling recovery.img compilation
|
||||
brunch lineage_i9100-userdebug;
|
||||
brunch lineage_i9305-user;
|
||||
brunch lineage_n5110-user;
|
||||
}
|
||||
export -f buildAllNO3;
|
||||
|
||||
patchWorkspace() {
|
||||
source $scripts/Patch.sh;
|
||||
source $scripts/Defaults.sh;
|
||||
|
|
|
@ -62,7 +62,6 @@ patch -p1 < $patches"android_bootable_recovery/0001-Squash_Menus.patch"; #What's
|
|||
|
||||
enterAndClear "build"
|
||||
patch -p1 < $patches"android_build/0001-Automated_Build_Signing.patch" #Automated build signing. Disclaimer: From CopperheadOS 13.0
|
||||
patch -p1 < $patches"android_build/JustArchis_Optimizations-Rebased.patch" #JustArchi's Compiler Flags XXX: Breaks some devices, see buildAllNO3()
|
||||
sed -i 's/messaging/Silence/' target/product/*.mk; #Replace AOSP Messaging app with Silence
|
||||
|
||||
enterAndClear "device/qcom/sepolicy"
|
||||
|
|
|
@ -58,22 +58,18 @@ export -f buildDevice;
|
|||
buildAll() {
|
||||
#Select devices are userdebug due to SELinux policy issues
|
||||
#TODO: Add victara, griffin, athene, us997, us996, pme, t0lte, hlte
|
||||
brunch lineage_angler-user;
|
||||
brunch lineage_bacon-user;
|
||||
brunch lineage_bullhead-user;
|
||||
brunch lineage_d852-userdebug;
|
||||
brunch lineage_d855-userdebug;
|
||||
brunch lineage_angler-user;
|
||||
brunch lineage_bullhead-user;
|
||||
brunch lineage_flo-user; #Not affected by size, but breaks: undefined reference to 'mm_jpeg_get_new_session_idx'
|
||||
brunch lineage_flounder-user;
|
||||
#brunch lineage_shamu-user;
|
||||
#brunch lineage_hammerhead-user;
|
||||
#brunch lineage_shamu-user;
|
||||
}
|
||||
export -f buildAll;
|
||||
|
||||
buildAllNO3() {
|
||||
brunch lineage_flo-user; #Not affected by size, but breaks: undefined reference to 'mm_jpeg_get_new_session_idx'
|
||||
}
|
||||
export -f buildAllNO3;
|
||||
|
||||
patchWorkspace() {
|
||||
source build/envsetup.sh;
|
||||
repopick 204743 204744;
|
||||
|
|
|
@ -58,7 +58,6 @@ echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/a
|
|||
cp -r $patches"Fennec_DOS-Shim" $base"packages/apps/"; #Add a shim to install Fennec DOS without actually including the large APK
|
||||
|
||||
enterAndClear "build/make"
|
||||
#patch -p1 < $patches"android_build/0002-JustArchis_Optimizations.patch" #JustArchi's Compiler Flags XXX: Breaks some devices, see buildAllNO3() TODO: Rebase
|
||||
sed -i 's/messaging/Silence/' target/product/*.mk; #Replace AOSP Messaging app with Silence
|
||||
|
||||
enterAndClear "device/qcom/sepolicy"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue