Showing posts with label compile. Show all posts
Showing posts with label compile. Show all posts

Friday, 16 October 2015

Attempting to compile using Sabermod



Compiling the code from https://github.com/SaberMod/android_kernel_moto_shamu using sabermod-prebuilts-07042015.tar.xz, arm-linux-androideabi-5.2-08-28-15.tar.xz.

It compiles well, until the very end; Using GNU/Debian here.

Any thoughts what I'm doing wrong? (bit of a new noob) Should I make make "CONFIG_NO_ERROR_ON_MISMATCH=y" to avoid it?


Code:


make CONFIG_DEBUG_SECTION_MISMATCH=y
  [...] 
  CC      lib/ratelimit.o
  CC      lib/rbtree.o
  CC      lib/reciprocal_div.o
  CC      lib/rwsem-spinlock.o
  CC      lib/sha1.o
  CC      lib/show_mem.o
  CC      lib/string.o
  CC      lib/timerqueue.o
  CC      lib/vsprintf.o
  AR      lib/lib.a
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o(.data+0x7740): Section mismatch in reference from the variable msm_rpm_match_table to the function .init.text:mpm_irq_domain_linear_size()
The variable msm_rpm_match_table references
the function __init mpm_irq_domain_linear_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: vmlinux.o(.data+0x7758): Section mismatch in reference from the variable msm_rpm_match_table to the function .init.text:mpm_irq_domain_legacy_size()
The variable msm_rpm_match_table references
the function __init mpm_irq_domain_legacy_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
/root/SaberMod/android_kernel_moto_shamu/scripts/Makefile.modpost:95: recipe for target 'vmlinux.o' failed
make[1]: *** [vmlinux.o] Error 1
Makefile:901: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 2





Monday, 12 October 2015

[Q] Compile Chromium apk with AOSP



With Chromium now available for Android, is it possible to integrate it into AOSP?

I'm starting to modify my local AOSP copy by stripping out unwanted Apps, like the Browser because i like Chromium better, but i'm still a noob regarding adding apps.
I found this to be a helpfl starting point, but the build instructions are confusing me on how i'd build Chromium within the process of compiling AOSP.

Thankful for any tips, guides, pointers, etc.



Tuesday, 6 October 2015

Compile kernel ?



I wonder if anyone was able to compile or, just provide hints how to do it,
kernel from published sources https://github.com/MotorolaMobilityL...LPH23.116-18.1

I am able to compile with config
arch/arm64/configs/msm8994-perf_defconfig

but final boot.img does not boot, no matter what I do.



Help me compile and build a Lollipop kernel (currently BlissPop preferable)



I want to compile a kernel for lollipop, but I always get somekind of error... Can this be cause of toolchain that I use or cause sources from GitHub arent good? Do u have any recomendation on stable, working source, and toolchain that goes along with it? I compiled cm11 rom, but couldn't compile just a kernel... Do u have any nice tutorials on that, ones that i found arent working for me...
i tried with this toolchain gcc/linux-x86/arm/arm-eabi-4.6 from tutorial source.android.com/source/building-kernels.html