[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
this is the output from clean.sh & edit_kernel.sh and build.sh. there are indeed errors now i can look back in the process

mick@ubuntu2:~/Samsung_dreamlte_Kernel$ ./clean.sh

CLEAN .

CLEAN arch/arm64/kernel/vdso

security/defex_lsm/Makefile:57: [DEFEX] VTS false

drivers/sensorhub/brcm/Makefile:57: ANDROID_MAJOR_VERSION : p

drivers/sensorhub/brcm/Makefile:58: ANDROID_PLATFORM_VERSION : 990000

CLEAN .tmp_versions

security/defex_lsm/Makefile:57: [DEFEX] VTS false

CLEAN scripts/basic

CLEAN scripts/dtc

CLEAN scripts/kconfig

CLEAN scripts/mod

drivers/sensorhub/brcm/Makefile:57: ANDROID_MAJOR_VERSION : p

drivers/sensorhub/brcm/Makefile:58: ANDROID_PLATFORM_VERSION : 990000

CLEAN include/config include/generated arch/arm64/include/generated

CLEAN .config .config.old

mick@ubuntu2:~/Samsung_dreamlte_Kernel$ ./edit_kernel_g950x.sh

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

SHIPPED scripts/kconfig/zconf.tab.c

SHIPPED scripts/kconfig/zconf.lex.c

SHIPPED scripts/kconfig/zconf.hash.c

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

#

# configuration written to .config

#

HOSTCC scripts/kconfig/mconf.o

HOSTCC scripts/kconfig/lxdialog/checklist.o

HOSTCC scripts/kconfig/lxdialog/util.o

HOSTCC scripts/kconfig/lxdialog/inputbox.o

HOSTCC scripts/kconfig/lxdialog/textbox.o

HOSTCC scripts/kconfig/lxdialog/yesno.o

HOSTCC scripts/kconfig/lxdialog/menubox.o

HOSTLD scripts/kconfig/mconf

scripts/kconfig/mconf Kconfig

*** End of the configuration.

*** Execute 'make' to start the build or try 'make help'.

mick@ubuntu2:~/Samsung_dreamlte_Kernel$ ./build_kernel_g950x.sh

rm: cannot remove 'arch/arm64/boot/dts/exynos/*dtb*': No such file or directory

#

# configuration written to .config

#

scripts/kconfig/conf --silentoldconfig Kconfig

INFO: CC is ../gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc

CHK include/config/kernel.release

WRAP arch/arm64/include/generated/asm/bug.h

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/dma-contiguous.h

WRAP arch/arm64/include/generated/asm/early_ioremap.h

WRAP arch/arm64/include/generated/asm/emergency-restart.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/mm-arch-hooks.h

WRAP arch/arm64/include/generated/asm/mman.h

WRAP arch/arm64/include/generated/asm/msgbuf.h

WRAP arch/arm64/include/generated/asm/msi.h

WRAP arch/arm64/include/generated/asm/mutex.h

WRAP arch/arm64/include/generated/asm/pci.h

WRAP arch/arm64/include/generated/asm/pci-bridge.h

WRAP arch/arm64/include/generated/asm/poll.h

WRAP arch/arm64/include/generated/asm/preempt.h

WRAP arch/arm64/include/generated/asm/resource.h

WRAP arch/arm64/include/generated/asm/rwsem.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

UPD include/config/kernel.release

CHK include/generated/uapi/linux/version.h

UPD include/generated/uapi/linux/version.h

WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h

CHK include/generated/utsrelease.h

UPD include/generated/utsrelease.h

HOSTCC scripts/basic/fixdep

drivers/sensorhub/brcm/Makefile:57: ANDROID_MAJOR_VERSION : p

drivers/sensorhub/brcm/Makefile:58: ANDROID_PLATFORM_VERSION : 990000

HOSTCC scripts/dtc/dtc.o

CC kernel/bounds.s

CHK include/generated/timeconst.h

UPD include/generated/timeconst.h

CHK include/generated/bounds.h

UPD include/generated/bounds.h

CC arch/arm64/kernel/asm-offsets.s

HOSTCC scripts/dtc/flattree.o

CHK include/generated/asm-offsets.h

UPD include/generated/asm-offsets.h

CALL scripts/checksyscalls.sh

HOSTCC scripts/dtc/fstree.o

HOSTCC scripts/dtc/data.o

HOSTCC scripts/dtc/livetree.o

HOSTCC scripts/dtc/treesource.o

HOSTCC scripts/dtc/srcpos.o

CC scripts/mod/empty.o

HOSTCC scripts/mod/mk_elfconfig

HOSTCC scripts/dtc/checks.o

CC scripts/mod/devicetable-offsets.s

MKELF scripts/mod/elfconfig.h

CHK scripts/mod/devicetable-offsets.h

UPD scripts/mod/devicetable-offsets.h

HOSTCC scripts/mod/sumversion.o

HOSTCC scripts/mod/modpost.o

HOSTCC scripts/dtc/util.o

SHIPPED scripts/dtc/dtc-lexer.lex.c

SHIPPED scripts/dtc/dtc-parser.tab.h

SHIPPED scripts/dtc/dtc-parser.tab.c

HOSTCC scripts/dtc/dtc-lexer.lex.o

HOSTCC scripts/dtc/dtc-parser.tab.o

HOSTCC scripts/mod/file2alias.o

HOSTLD scripts/dtc/dtc

/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here

collect2: error: ld returned 1 exit status

make[2]: *** [scripts/Makefile.host:100: scripts/dtc/dtc] Error 1

make[1]: *** [scripts/Makefile.build:411: scripts/dtc] Error 2

make[1]: *** Waiting for unfinished jobs....

LDS arch/arm64/kernel/vdso/vdso.lds

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

VDSOSYM include/generated/vdso-offsets.h

HOSTLD scripts/mod/modpost

make: *** [Makefile:617: scripts] Error 2

cp: cannot stat 'fs/cifs/cifs.ko': No such file or directory

cp: cannot stat 'crypto/md4.ko': No such file or directory

cp: cannot stat 'fs/fscache/fscache.ko': No such file or directory

cp: cannot stat 'net/dns_resolver/dns_resolver.ko': No such file or directory

cp: cannot stat 'drivers/usb/gadget/function/usb_f_mtp_samsung.ko': No such file or directory

cp: cannot stat 'drivers/usb/gadget/function/usb_f_ptp.ko': No such file or directory

cp: cannot stat 'fs/ntfs/ntfs.ko': No such file or directory

cp: cannot stat 'fs/nfs_common/grace.ko': No such file or directory

cp: cannot stat 'fs/nfs/nfs.ko': No such file or directory

cp: cannot stat 'fs/nfs/nfsv2.ko': No such file or directory

cp: cannot stat 'fs/nfs/nfsv3.ko': No such file or directory

cp: cannot stat 'fs/nfs/nfsv4.ko': No such file or directory

cp: cannot stat 'fs/lockd/lockd.ko': No such file or directory

cp: cannot stat 'net/sunrpc/sunrpc.ko': No such file or directory

cp: cannot stat 'net/sunrpc/auth_gss/auth_rpcgss.ko': No such file or directory

cp: cannot stat 'lib/oid_registry.ko': No such file or directory

cp: cannot stat 'net/ipv4/udp_tunnel.ko': No such file or directory

cp: cannot stat 'net/ipv6/ip6_udp_tunnel.ko': No such file or directory

cp: cannot stat 'net/wireguard/wireguard.ko': No such file or directory

cp: cannot stat 'net/l2tp/l2tp_core.ko': No such file or directory

cp: cannot stat 'crypto/crc32.ko': No such file or directory

cp: cannot stat 'fs/f2fs/f2fs.ko': No such file or directory

cp: cannot stat 'arch/arm64/boot/Image': No such file or directory

DTB combiner:

Input directory: 'arch/arm64/boot/dts/exynos/'

Output file: '/home/mick/AIK-Linux/split_img/boot.img-dt'

=> Found 0 unique DTB(s)

Android Image Kitchen - RepackImg Script

by osm0sis @ xda-developers

Packing ramdisk (as root)...

Warning: Using cpio 2.13 may result in an unusable repack; downgrade to 2.12 to be safe!

Using compression: lz4-l

[sudo] password for mick:

Getting build information...

kernel = boot.img-kernel

cmdline =

board = SRPPK02A010KU

base = 0x10000000

pagesize = 2048

kernel_offset = 0x00008000

ramdisk_offset = 0x01000000

second_offset = 0x00f00000

tags_offset = 0x00000100

os_version = 9.0.0

os_patch_level = 2021-08

hashtype = sha1

dt = boot.img-dt

Building image...

Using format: AOSP

Appending footer...

Using type: SEAndroid

Done!

adding: META-INF/ (stored 0%)

adding: META-INF/com/ (stored 0%)

adding: META-INF/com/google/ (stored 0%)

adding: META-INF/com/google/android/ (stored 0%)

adding: META-INF/com/google/android/updater-script (deflated 76%)

adding: META-INF/com/google/android/update-binary (deflated 37%)

adding: system/ (stored 0%)

adding: system/etc/ (stored 0%)

adding: system/etc/init/ (stored 0%)

adding: system/etc/init/secure_storage_daemon_system.rc (deflated 60%)

adding: system/etc/init.d/ (stored 0%)

adding: system/etc/init.d/99_user.sh (stored 0%)

adding: system/etc/init.d.a2n/ (stored 0%)

adding: system/etc/init.d.a2n/a2n_user.sh (stored 0%)

adding: system/etc/A2NKernelControl[G95x]/ (stored 0%)

adding: system/etc/A2NKernelControl[G95x]/last_kmsg.sh (deflated 36%)

adding: system/etc/A2NKernelControl[G95x]/wireguard.sh (deflated 65%)

adding: system/etc/A2NKernelControl[G95x]/logcat.sh (deflated 43%)

adding: system/etc/A2NKernelControl[G95x]/cifs.sh (deflated 63%)

adding: system/etc/A2NKernelControl[G95x]/A2NKernelControl[G95x]Demo.apk (deflated 50%)

adding: system/etc/A2NKernelControl[G95x]/nfs.sh (deflated 70%)

adding: system/etc/A2NKernelControl[G95x]/ntfs.sh (deflated 59%)

adding: system/etc/A2NKernelControl[G95x]/l2tp.sh (deflated 63%)

adding: system/etc/A2NKernelControl[G95x]/zram.sh (deflated 62%)

adding: system/xbin/ (stored 0%)

adding: system/xbin/busybox_static (deflated 42%)

adding: system/lib64/ (stored 0%)

adding: system/lib64/libsecure_storage.so (deflated 58%)

adding: system/vendor/ (stored 0%)

adding: system/vendor/firmware/ (stored 0%)

adding: system/vendor/firmware/fimc_is_rta_2l2_3h1.bin (deflated 75%)

adding: system/vendor/firmware/fimc_is_lib.bin (deflated 71%)

adding: system/lib/ (stored 0%)

adding: system/lib/modules/ (stored 0%)

adding: system/lib/modules/lockd.ko (deflated 73%)

adding: system/lib/modules/wireguard.ko (deflated 63%)

adding: system/lib/modules/udp_tunnel.ko (deflated 66%)

adding: system/lib/modules/oid_registry.ko (deflated 64%)

adding: system/lib/modules/ntfs.ko (deflated 68%)

adding: system/lib/modules/md4.ko (deflated 62%)

adding: system/lib/modules/ip6_udp_tunnel.ko (deflated 65%)

adding: system/lib/modules/nfsv2.ko (deflated 72%)

adding: system/lib/modules/auth_rpcgss.ko (deflated 67%)

adding: system/lib/modules/grace.ko (deflated 74%)

adding: system/lib/modules/nfsv3.ko (deflated 73%)

adding: system/lib/modules/nfs.ko (deflated 69%)

adding: system/lib/modules/nfsv4.ko (deflated 68%)

adding: system/lib/modules/fscache.ko (deflated 73%)

adding: system/lib/modules/dns_resolver.ko (deflated 69%)

adding: system/lib/modules/cifs.ko (deflated 70%)

adding: system/lib/modules/l2tp_core.ko (deflated 66%)

adding: system/lib/modules/usb_f_mtp_samsung.ko (deflated 69%)

adding: system/lib/modules/sunrpc.ko (deflated 70%)

adding: system/lib/modules/usb_f_ptp.ko (deflated 75%)

adding: system/lib/libsecure_storage.so (deflated 57%)

adding: boot.img (deflated 56%)