Post Reply

[COMMIT] [AOSP] JustArchi's ArchiDroid Optimizations - Increases performance up to 6x

OP JustArchi

22nd October 2014, 12:48 AM   |  #891  
JustArchi's Avatar
OP Recognized Contributor / Recognized Developer
Flag Warsaw
Thanks Meter: 23,358
 
6,969 posts
Join Date:Joined: Mar 2013
Donate to Me
More
Quote:
Originally Posted by irocevo

I have been trying to build this for the nexus 7 2013 with carbon but I can't figure out this last error. Please help.

Code:
kernel/google/msm/net/sunrpc/svcauth_unix.c:531:2: warning: "gids" may be used uninitialized in this function
[-Wmaybe-uninitialized]
error, forbidden warning: svcauth_unix.c:531
make[4]: *** [net/sunrpc/svcauth_unix.o] Error 1
This is svcauth_unix.c (first line is 531)
Code:
        for (i = 0 ; i < gids ; i++) {
                int gid;
                rv = get_int(&mesg, &gid);
                err = -EINVAL;
                if (rv)
                        goto out;
                GROUP_AT(ug.gi, i) = gid;
        }

You need to modify your kernel's makefile.

Judging from path, it should be in kernel/google/msm/Makefile.

Basically you need to add -Wno-maybe-uninitialized to KBUILD_CFLAGS.
Example: https://github.com/ArchiDroid/lge-ke...61dec2f60ef34d

As I said previously, kernel uses it's own set of flags and doesn't care about what's going on in android_build. Your error is connected with using more recent toolchain (e.g. 4.8 over 4.7), which forces some additional security checks.
Last edited by JustArchi; 22nd October 2014 at 12:50 AM.
22nd October 2014, 01:30 AM   |  #892  
Senior Member
Thanks Meter: 638
 
345 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by JustArchi

You need to modify your kernel's makefile.

Judging from path, it should be in kernel/google/msm/Makefile.

Basically you need to add -Wno-maybe-uninitialized to KBUILD_CFLAGS.
Example: https://github.com/ArchiDroid/lge-ke...61dec2f60ef34d

As I said previously, kernel uses it's own set of flags and doesn't care about what's going on in android_build. Your error is connected with using more recent toolchain (e.g. 4.8 over 4.7), which forces some additional security checks.

Thanks. I did that a couple hours ago. Builds almost done, can't wait to test flo out I'm building m7spr and flo with these optimizations now with GCC 4.8 and linaro 4.9

edit:
I had to add Not booting kernel -> https://github.com/JustArchi/android...e4bfb3cff64de9 and https://github.com/JustArchi/android...90528feb0c9bdd
Now it works great. Ill make a thread in the Nexus 7 2013 (flo) forum later.
But here's a download link for carbon build if anyone is interested.
http://d-h.st/H1Y
Also replaced DSP Manager was replaced with Viper4Android
Thanks for the help
Last edited by irocevo; 22nd October 2014 at 02:38 PM.
Post Reply Subscribe to Thread

Tags
justarchi archidroid optimizations linaro hack
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software and Hacking General [Developers Only] by ThreadRank