[Android Software/Hacking General [Developers Only]] laperry1:
[MENTION=6842057]nathanchance[/MENTION],

many thanks for this & your other useful & concise guides!! after upstreaming my kernel for OP3 I thought i'd like to build it separately to test building w/your prebuilt linaro toolchain (v7.2.1)... i managed 1-successful build, but it wouldn't boot (i forgot to add this commit: https://github.com/nathanchance/angler/commit/406d54a7f006142372157d4fb49d7e76a5564d00)

so after wiping my build folder & starting from scratch and making the following commits:

https://github.com/engstk/op3t/commit/a83fd9d829d1a63a5b7f6930ccc81bb47f2e74a1

https://github.com/nathanchance/angler/commit/406d54a7f006142372157d4fb49d7e76a5564d00

i'm faced w/the following issues running make clean/mrproper:

Makefile:958: target 'arch/arm64/kernel' given more than once in the same rule

Makefile:958: target 'arch/arm64/mm' given more than once in the same rule

Makefile:958: target 'arch/arm64/lib' given more than once in the same rule

the build fails w/the following error messages:

arch/arm64/kernel/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/kernel/suspend.c:46: multiple definition of `hw_breakpoint_restore'

arch/arm64/kernel/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/kernel/suspend.c:46: first defined here

arch/arm64/kernel/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/kernel/suspend.c:151: multiple definition of `sleep_save_sp'

arch/arm64/kernel/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/kernel/suspend.c:151: first defined here

arch/arm64/kernel/built-in.o: In function `compat_sys_sigreturn':

/home/samadhi/kernel/msm8996/arch/arm64/kernel/signal32.c:369: multiple definition of `compat_sys_sigreturn'

arch/arm64/kernel/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/kernel/signal32.c:369: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_cbc_decrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:210: multiple definition of `ce_aes_cbc_decrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:210: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_ctr_encrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:269: multiple definition of `ce_aes_ctr_encrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:269: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_setkey':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-cipher.c:224: multiple definition of `ce_aes_setkey'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-cipher.c:224: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_xts_decrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:464: multiple definition of `ce_aes_xts_decrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:464: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_ecb_decrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:150: multiple definition of `ce_aes_ecb_decrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:150: first defined here

arch/arm64/crypto/built-in.o: In function `neon_aes_ctr_encrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:269: multiple definition of `neon_aes_ctr_encrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:269: first defined here

arch/arm64/crypto/built-in.o: In function `neon_aes_ecb_encrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:114: multiple definition of `neon_aes_ecb_encrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:114: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_expandkey':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-cipher.c:151: multiple definition of `ce_aes_expandkey'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-cipher.c:151: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_xts_encrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:392: multiple definition of `ce_aes_xts_encrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:392: first defined here

arch/arm64/crypto/built-in.o: In function `sha2_ce_transform':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/sha2-ce-core.S:81: multiple definition of `sha2_ce_transform'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/sha2-ce-core.S:81: first defined here

arch/arm64/crypto/built-in.o: In function `pmull_ghash_update':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/ghash-ce-core.S:32: multiple definition of `pmull_ghash_update'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/ghash-ce-core.S:32: first defined here

arch/arm64/crypto/built-in.o: In function `neon_aes_cbc_encrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:193: multiple definition of `neon_aes_cbc_encrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:193: first defined here

arch/arm64/crypto/built-in.o: In function `neon_aes_xts_encrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:392: multiple definition of `neon_aes_xts_encrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:392: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_ccm_auth_data':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-ccm-core.S:21: multiple definition of `ce_aes_ccm_auth_data'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-ccm-core.S:21: first defined here

arch/arm64/crypto/built-in.o: In function `neon_aes_cbc_decrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:210: multiple definition of `neon_aes_cbc_decrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:210: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_cbc_encrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:193: multiple definition of `ce_aes_cbc_encrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:193: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_ccm_encrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-ccm-core.S:217: multiple definition of `ce_aes_ccm_encrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-ccm-core.S:217: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_ccm_final':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-ccm-core.S:92: multiple definition of `ce_aes_ccm_final'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-ccm-core.S:92: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_ecb_encrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:114: multiple definition of `ce_aes_ecb_encrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:114: first defined here

arch/arm64/crypto/built-in.o: In function `ce_aes_ccm_decrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-ccm-core.S:221: multiple definition of `ce_aes_ccm_decrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-ce-ccm-core.S:221: first defined here

arch/arm64/crypto/built-in.o: In function `neon_aes_ecb_decrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:150: multiple definition of `neon_aes_ecb_decrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:150: first defined here

arch/arm64/crypto/built-in.o: In function `neon_aes_xts_decrypt':

/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:464: multiple definition of `neon_aes_xts_decrypt'

arch/arm64/crypto/built-in.o:/home/samadhi/kernel/msm8996/arch/arm64/crypto/aes-modes.S:464: first defined here

Makefile:941: recipe for target 'vmlinux' failed

make: *** [vmlinux] Error 1

of course, i can't find anything definitive on the net to resolve... hope someone can help.