Я собираю пользовательское ядро для своего смартфона, в настоящее время я настраиваю исходный код, предоставленный Samsung.Я успешно выбрал Cherry ядро с 3.10.61 по 3.10.108 и исправил все синтаксические ошибки.В настоящее время сборка не выполняется из-за отсутствия правила для использования цели.
Сначала я попытался погуглить ошибку и быстро не нашел релевантных результатов, затем попытался самостоятельно диагностировать ошибку, используя:
make -j16 -d >> log
Я даже пытался найти саму цель здесь: https://elixir.bootlin.com/linux/v3.10.108/ident/use
все безрезультатно.
Вот первая ошибка, которую я получил, используя " make -j16":
[twilight@twilightlaptop Kernel]$ make -j16
scripts/kconfig/conf --silentoldconfig Kconfig
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
INFO: CC is /home/twilight/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc
WRAP arch/arm64/include/generated/asm/bug.h
WRAP arch/arm64/include/generated/asm/bugs.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/checksum.h
CHK include/generated/uapi/linux/version.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/delay.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
UPD include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/asm/ioctl.h
WRAP arch/arm64/include/generated/asm/ioctls.h
WRAP arch/arm64/include/generated/asm/hw_irq.h
make: *** No rule to make target 'use', needed by 'kernel'. Stop.
make: *** Waiting for unfinished jobs....
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/ipcbuf.h
WRAP arch/arm64/include/generated/asm/local.h
WRAP arch/arm64/include/generated/asm/local64.h
WRAP arch/arm64/include/generated/asm/msgbuf.h
WRAP arch/arm64/include/generated/asm/pci.h
WRAP arch/arm64/include/generated/asm/mman.h
WRAP arch/arm64/include/generated/asm/poll.h
WRAP arch/arm64/include/generated/asm/mutex.h
WRAP arch/arm64/include/generated/asm/resource.h
WRAP arch/arm64/include/generated/asm/scatterlist.h
WRAP arch/arm64/include/generated/asm/posix_types.h
WRAP arch/arm64/include/generated/asm/sections.h
WRAP arch/arm64/include/generated/asm/rwsem.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/segment.h
WRAP arch/arm64/include/generated/asm/simd.h
WRAP arch/arm64/include/generated/asm/sizes.h
WRAP arch/arm64/include/generated/asm/sockios.h
WRAP arch/arm64/include/generated/asm/socket.h
WRAP arch/arm64/include/generated/asm/switch_to.h
WRAP arch/arm64/include/generated/asm/swab.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
WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
[twilight@twilightlaptop Kernel]$
Это то, что я получил, когда снова выполнил команду:
[twilight@twilightlaptop Kernel]$ make -j16
INFO: CC is /home/twilight/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc
CHK include/generated/uapi/linux/version.h
make: *** No rule to make target 'use', needed by 'kernel'. Stop.
make: *** Waiting for unfinished jobs....
[twilight@twilightlaptop Kernel]$
, и вот фрагмент журнала, созданного" make -j16 -d >> log":
Reading makefile '/run/media/twilight/DATA/deving/SM-j700_Source/Second/Kernel/scripts/basic/Makefile' (search path) (no ~ expansion)...
Considering target file 'use'.
File 'use' does not exist.
Trying pattern rule with stem 'scatterlist'.
Found an implicit rule for 'arch/arm64/include/generated/asm/scatterlist.h'.
Looking for an implicit rule for 'use'.
No implicit rule found for 'use'.
Finished prerequisites of target file 'arch/arm64/include/generated/asm/scatterlist.h'.
No need to remake target 'arch/arm64/include/generated/asm/scatterlist.h'.
Finished prerequisites of target file 'use'.
Must remake target 'use'.