Optimized battery images

Change-Id: I9850bc8896106a33d5c753dae997ea4eef549a47
corkscrew: Fix build with gcc 4.8+

gcc 4.8 has a new warning for unused parameters - we need to override
-Werror on that.

Change-Id: Ia2a831a96750ae105440291c636b80382a5702fa
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Add __attribute__((unused)) for unused parameters

GCC 4.8 is more picky about unused parameters

Change-Id: Ib3a9f3e8c54d11f4f246207d68c38764d5cad9f9