• Forumda özel mesajlaşmalar kapalıdır. İstek, öneri, şikayet durumunda buraya konu açabilirsiniz.

Custom Kernel Derleme Kılavuzu

serhat9779

Üye
Katılım
7 Kas 2018
Mesajlar
53
Arkadaşlar merhaba, ben @caneray ın bizlere açtığı caf v1.1 kernel kaynaklarını derlemeye çalışıyorum. Ancak kesinlikle arm64 olarak build edemedim, google kaynaklarını
Kullandığım kaynak şu:
https://android.googlesource.com/kernel/msm/+/android-msm-shamrock-3.10-nougat-mr1-release
arm olarak(arm64 değil) https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/ bununla build etmeyi başardım. zImage_dts çıktısını aldım.
Ancak https://github.com/OneTeamDevelopments/android_kernel_google_shamrock kaynağındaki kerneli kesinlikle arm64 olarak build edemedim, arch/arm64/config/OneX_shamrock_defconfig kullanarak, https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/ ile build almaya çalışıyorum ancak sürekli yarıda kendi kendine kesiliyor, çıktı şu şekilde, toolchain değiştirip duruyorum ancak nafile, yardımcı olabilir misiniz.
Kernelde hiçbir değişiklik yapmadım, direkt build almaya çalışıyorum ama nafile. Kodun son satırında görüldüğü gibi orda sonlanıyor.

Kod:
serhat@serhat-HP-Pavilion-Gaming-Laptop-15-dk0xxx:~/android/shamrocklabr$ make -j4
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
  WRAP    arch/arm64/include/generated/asm/bugs.h
  WRAP    arch/arm64/include/generated/asm/checksum.h
  WRAP    arch/arm64/include/generated/asm/clkdev.h
  WRAP    arch/arm64/include/generated/asm/cputime.h
  WRAP    arch/arm64/include/generated/asm/current.h
  WRAP    arch/arm64/include/generated/asm/delay.h
  WRAP    arch/arm64/include/generated/asm/div64.h
  WRAP    arch/arm64/include/generated/asm/dma.h
  WRAP    arch/arm64/include/generated/asm/emergency-restart.h
  WRAP    arch/arm64/include/generated/asm/early_ioremap.h
  WRAP    arch/arm64/include/generated/asm/errno.h
  WRAP    arch/arm64/include/generated/asm/ftrace.h
  WRAP    arch/arm64/include/generated/asm/hw_irq.h
  WRAP    arch/arm64/include/generated/asm/ioctl.h
  WRAP    arch/arm64/include/generated/asm/ioctls.h
  WRAP    arch/arm64/include/generated/asm/ipcbuf.h
  WRAP    arch/arm64/include/generated/asm/irq_regs.h
  WRAP    arch/arm64/include/generated/asm/kdebug.h
  WRAP    arch/arm64/include/generated/asm/kmap_types.h
  WRAP    arch/arm64/include/generated/asm/kvm_para.h
  WRAP    arch/arm64/include/generated/asm/local.h
  WRAP    arch/arm64/include/generated/asm/local64.h
  WRAP    arch/arm64/include/generated/asm/mcs_spinlock.h
  WRAP    arch/arm64/include/generated/asm/mman.h
  WRAP    arch/arm64/include/generated/asm/msgbuf.h
  WRAP    arch/arm64/include/generated/asm/mutex.h
  WRAP    arch/arm64/include/generated/asm/pci.h
  WRAP    arch/arm64/include/generated/asm/poll.h
  WRAP    arch/arm64/include/generated/asm/resource.h
  WRAP    arch/arm64/include/generated/asm/rwsem.h
  WRAP    arch/arm64/include/generated/asm/scatterlist.h
  WRAP    arch/arm64/include/generated/asm/sections.h
  WRAP    arch/arm64/include/generated/asm/segment.h
  WRAP    arch/arm64/include/generated/asm/sembuf.h
  WRAP    arch/arm64/include/generated/asm/serial.h
  WRAP    arch/arm64/include/generated/asm/shmbuf.h
  WRAP    arch/arm64/include/generated/asm/simd.h
  WRAP    arch/arm64/include/generated/asm/sizes.h
  WRAP    arch/arm64/include/generated/asm/socket.h
  WRAP    arch/arm64/include/generated/asm/sockios.h
  WRAP    arch/arm64/include/generated/asm/swab.h
  WRAP    arch/arm64/include/generated/asm/switch_to.h
  WRAP    arch/arm64/include/generated/asm/termbits.h
  WRAP    arch/arm64/include/generated/asm/termios.h
  WRAP    arch/arm64/include/generated/asm/topology.h
  WRAP    arch/arm64/include/generated/asm/trace_clock.h
  WRAP    arch/arm64/include/generated/asm/types.h
  WRAP    arch/arm64/include/generated/asm/unaligned.h
  WRAP    arch/arm64/include/generated/asm/user.h
  WRAP    arch/arm64/include/generated/asm/vga.h
  WRAP    arch/arm64/include/generated/asm/xor.h
  CHK     include/generated/uapi/linux/version.h
  WRAP    arch/arm64/include/generated/uapi/asm/kvm_para.h
  UPD     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  HOSTCC  scripts/kallsyms
  CC      scripts/mod/empty.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/mod/mk_elfconfig
  HOSTCC  scripts/selinux/mdp/mdp
  CC      scripts/mod/devicetable-offsets.s
  MKELF   scripts/mod/elfconfig.h
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/dtc/data.o
  SHIPPED scripts/dtc/dtc-lexer.lex.c
  SHIPPED scripts/dtc/dtc-parser.tab.h
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/mod/sumversion.o
scripts/sortextable.c:68:1: warning: ‘succeed_file’ defined but not used [-Wunused-function]
 succeed_file(void)
 ^~~~~~~~~~~~
In file included from scripts/sortextable.c:166:0:
scripts/sortextable.c: In function ‘main’:
scripts/sortextable.h:158:3: warning: ‘relocs_size’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   memset(relocs, 0, relocs_size);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/sortextable.h:104:6: note: ‘relocs_size’ was declared here
  int relocs_size;
      ^~~~~~~~~~~
In file included from scripts/sortextable.c:164:0:
scripts/sortextable.h:158:3: warning: ‘relocs_size’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   memset(relocs, 0, relocs_size);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/sortextable.h:104:6: note: ‘relocs_size’ was declared here
  int relocs_size;
      ^~~~~~~~~~~
  SHIPPED scripts/dtc/dtc-parser.tab.c
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/util.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/mod/modpost
  HOSTLD  scripts/dtc/dtc
  CC      kernel/bounds.s
make[1]: Nothing to be done for 'dtbs'.
  DTC     arch/arm64/boot/dts/qcom/../MSM8952_Shamrock.dtb
  GEN     include/generated/bounds.h
  CC      arch/arm64/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CC      init/main.o
  CHK     include/generated/compile.h
  CC      init/do_mounts.o
  UPD     include/generated/compile.h
  CC      init/do_mounts_rd.o
  HOSTCC  usr/gen_init_cpio
  GEN     usr/initramfs_data.cpio
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  CC      init/do_mounts_initrd.o
  CC      init/do_mounts_dm.o
  CC      init/noinitramfs.o
  CC      arch/arm64/kernel/swp_emulate.o
  CC      init/initramfs.o
  CC      arch/arm64/mm/dma-mapping.o
  CC      arch/arm64/crypto/aes-glue-ce.o
  CC      arch/arm64/kernel/pcibios.o
  CC      init/calibrate.o
  AS      arch/arm64/crypto/aes-ce.o
  CC      arch/arm64/crypto/aes-ce-ccm-glue.o
  LDS     arch/arm64/kernel/vdso/vdso.lds
  CC      init/init_task.o
  VDSOA arch/arm64/kernel/vdso/gettimeofday.o
  VDSOA arch/arm64/kernel/vdso/note.o
  VDSOA arch/arm64/kernel/vdso/sigreturn.o
  VDSOL arch/arm64/kernel/vdso/vdso.so.dbg
  CC      arch/arm64/mm/extable.o
  OBJCOPY arch/arm64/kernel/vdso/vdso.so
  VDSOSYM arch/arm64/kernel/vdso/vdso-offsets.h
  AS      arch/arm64/kernel/vdso/vdso.o
  AS      arch/arm64/crypto/aes-ce-ccm-core.o
  CC      init/version.o
  LD      arch/arm64/kernel/vdso/built-in.o
  AS      arch/arm64/kernel/head.o
  CC      arch/arm64/crypto/aes-glue-neon.o
  LDS     arch/arm64/kernel/vmlinux.lds
  CC      arch/arm64/mm/fault.o
  CC      arch/arm64/kernel/cputable.o
  CC      arch/arm64/kernel/debug-monitors.o
  LD      init/mounts.o
  LD      init/built-in.o
  AS      arch/arm64/kernel/entry.o
  CC      kernel/fork.o
  AS      arch/arm64/crypto/aes-neon.o
  CC      arch/arm64/crypto/ghash-ce-glue.o
  CC      arch/arm64/mm/init.o
  CC      arch/arm64/kernel/irq.o
  AS      arch/arm64/crypto/ghash-ce-core.o
  AS      arch/arm64/mm/cache.o
  CC      arch/arm64/mm/copypage.o
  CC      arch/arm64/crypto/sha1-ce-glue.o
  CC      arch/arm64/kernel/fpsimd.o
  CC      arch/arm64/mm/flush.o
  AS      arch/arm64/kernel/entry-fpsimd.o
arch/arm64/kernel/entry-fpsimd.S: Assembler messages:
arch/arm64/kernel/entry-fpsimd.S:53: Error: unexpected end of file in irp or irpc
/tmp/ccYclHjW.s: Error: local label `"0" (instance number 1 of a fb label)' is not defined
scripts/Makefile.build:344: recipe for target 'arch/arm64/kernel/entry-fpsimd.o' failed
make[1]: *** [arch/arm64/kernel/entry-fpsimd.o] Error 1
Makefile:825: recipe for target 'arch/arm64/kernel' failed
make: *** [arch/arm64/kernel] Error 2
make: *** Bitmemiş işler için bekliyor....
  CC      arch/arm64/mm/ioremap.o
  AS      arch/arm64/crypto/sha1-ce-core.o
  CC      arch/arm64/crypto/sha2-ce-glue.o
  AS      arch/arm64/crypto/sha2-ce-core.o
  CC      arch/arm64/mm/iomap.o
  CC      arch/arm64/mm/mmap.o
  CC      kernel/exec_domain.o
  CC      arch/arm64/crypto/aes-ce-cipher.o
  CC      kernel/panic.o
  CC      arch/arm64/mm/pgd.o
  CC      arch/arm64/mm/mmu.o
  LD      arch/arm64/crypto/sha1-ce.o
  LD      arch/arm64/crypto/sha2-ce.o
  LD      arch/arm64/crypto/ghash-ce.o
  LD      arch/arm64/crypto/aes-ce-ccm.o
  LD      arch/arm64/crypto/aes-ce-blk.o
  LD      arch/arm64/crypto/aes-neon-blk.o
  LD      arch/arm64/crypto/built-in.o
  CC      arch/arm64/mm/context.o
  AS      arch/arm64/mm/proc.o
  CC      kernel/printk.o
  CC      arch/arm64/mm/pageattr.o
  CC      kernel/cpu.o
  CC      kernel/exit.o
  LD      arch/arm64/mm/built-in.o
  CC      kernel/itimer.o
  HZFILE  kernel/hz.bc
  CC      kernel/softirq.o
  CC      kernel/resource.o
  CC      kernel/sysctl.o
  CC      kernel/sysctl_binary.o
  CC      kernel/capability.o
  CC      kernel/ptrace.o
  CC      kernel/timer.o
  CC      kernel/user.o
  CC      kernel/signal.o
  CC      kernel/sys.o
  CC      kernel/kmod.o
  CC      kernel/workqueue.o
  CC      kernel/pid.o
  CC      kernel/task_work.o
  CC      kernel/extable.o
  CC      kernel/params.o
  CC      kernel/posix-timers.o
  CC      kernel/kthread.o
  CC      kernel/sys_ni.o
  CC      kernel/posix-cpu-timers.o
  CC      kernel/hrtimer.o
  CC      kernel/nsproxy.o
  CC      kernel/notifier.o
  CC      kernel/ksysfs.o
  CC      kernel/cred.o
  CC      kernel/async.o
  CC      kernel/range.o
  CC      kernel/groups.o
  CC      kernel/smpboot.o
  CC      kernel/cpu/idle.o
  CC      kernel/events/core.o
  CC      kernel/irq/irqdesc.o
  CC      kernel/irq/handle.o
  LD      kernel/cpu/built-in.o
  CC      kernel/irq/manage.o
  CC      kernel/events/ring_buffer.o
  CC      kernel/events/callchain.o
  CC      kernel/irq/spurious.o
  CC      kernel/locking/mutex.o
  CC      kernel/locking/semaphore.o
  CC      kernel/irq/resend.o
  CC      kernel/irq/chip.o
  CC      kernel/locking/rwsem.o
  CC      kernel/locking/lglock.o
  CC      kernel/locking/spinlock.o
  CC      kernel/power/qos.o
  CC      kernel/irq/dummychip.o
  CC      kernel/locking/rtmutex.o
  CC      kernel/irq/devres.o
  CC      kernel/locking/rwsem-xadd.o
  CC      kernel/power/main.o
  CC      kernel/irq/autoprobe.o
  LD      kernel/events/built-in.o
  CC      kernel/power/process.o
  LD      kernel/locking/built-in.o
  CC      kernel/power/suspend.o
  CC      kernel/irq/irqdomain.o
  CC      kernel/irq/proc.o
  CC      kernel/irq/pm.o
  CC      kernel/power/autosleep.o
  CC      kernel/power/wakelock.o
  CC      kernel/power/suspend_time.o
  LD      kernel/irq/built-in.o
  CC      kernel/power/poweroff.o
  CC      kernel/power/wakeup_reason.o
  CC      kernel/rcu/update.o
  CC      kernel/rcu/srcu.o
  CC      kernel/rcu/tree.o
  CC      kernel/sched/core.o
  CC      kernel/time/timekeeping.o
  LD      kernel/power/built-in.o
  CC      kernel/time/ntp.o
  CC      kernel/sched/clock.o
  CC      kernel/time/clocksource.o
  CC      kernel/sched/cputime.o
  CC      kernel/time/jiffies.o
  CC      kernel/time/timer_list.o
  CC      kernel/sched/idle_task.o
  LD      kernel/rcu/built-in.o
  CC      kernel/time/timeconv.o
  CC      kernel/sched/fair.o
  CC      kernel/time/posix-clock.o
  CC      kernel/sched/rt.o
  CC      kernel/time/alarmtimer.o
  CC      kernel/time/clockevents.o
  CC      kernel/time/tick-common.o
  CC      kernel/sched/stop_task.o
  CC      kernel/time/tick-broadcast.o
  CC      kernel/sched/sched_avg.o
  CC      kernel/time/tick-broadcast-hrtimer.o
  CC      kernel/sched/wait.o
  CC      kernel/time/sched_clock.o
  CC      kernel/time/tick-oneshot.o
  CC      kernel/time/tick-sched.o
  CC      kernel/time/timer_stats.o
  CC      kernel/trace/trace_clock.o
  CC      kernel/sched/deadline.o
  CC      kernel/trace/ring_buffer.o
  CC      kernel/trace/trace.o
  LD      kernel/time/built-in.o
  CC      kernel/freezer.o
  CC      kernel/sched/cpupri.o
  CC      kernel/profile.o
  CC      kernel/sched/cpudeadline.o
  CC      kernel/sched/stats.o
  CC      kernel/sched/cpuacct.o
  CC      kernel/trace/trace_output.o
  CC      kernel/trace/trace_stat.o
  LD      kernel/sched/built-in.o
  CC      kernel/trace/trace_printk.o
  CC      kernel/trace/trace_sched_switch.o
  CC      kernel/stacktrace.o
  CC      kernel/futex.o
  CC      kernel/trace/trace_nop.o
  CC      kernel/futex_compat.o
  CC      kernel/trace/blktrace.o
  CC      kernel/trace/trace_events.o
  CC      kernel/trace/trace_export.o
  CC      kernel/trace/trace_event_perf.o
  CC      kernel/smp.o
  CC      kernel/trace/trace_events_filter.o
  CC      kernel/uid16.o
  CC      kernel/kallsyms.o
  CC      kernel/trace/power-traces.o
  CC      kernel/compat.o
  CC      kernel/trace/rpm-traces.o
  CC      kernel/cgroup.o
  CC      kernel/trace/ipc_logging.o
  CC      kernel/cgroup_freezer.o
  CC      kernel/trace/ipc_logging_debug.o
  CC      kernel/cpuset.o
  LD      kernel/trace/built-in.o
  CC      kernel/res_counter.o
  CC      kernel/stop_machine.o
  CC      kernel/audit.o
  CC      kernel/auditfilter.o
  CC      kernel/seccomp.o
  CC      kernel/relay.o
  CC      kernel/utsname_sysctl.o
  CC      kernel/taskstats.o
  CC      kernel/tsacct.o
  CC      kernel/tracepoint.o
  CC      kernel/elfcore.o
  CC      kernel/irq_work.o
  CC      kernel/cpu_pm.o
  BC      kernel/timeconst.h
  CC      kernel/time.o
  LD      kernel/built-in.o
 

Benzer Konular


Üst Alt