[Omni Q&A] Shedaim:
It may be best practice to have it separated, but I see no wrong in linking the TARGET_KERNEL_SOURCE to the device tree. I mean, it's just a path.

Hmm, I think it is loading in permissive mode (see last line). This is a log taken from recovery, which was built using the same tree and kernel configuration.

MODEL_NAME:{{SM-T395}}
eMMC_SERIAL_NUMBER:{{150100414A5444345200DB205BCAC461}}

[Debug Info.]
S-BOOT : VERSION_-+J0
SecureOS : 32 (MB)
blk_bread: MMC mode
- read_bl1
blk_bread_bootsector: MMC mode
Verify_Signature_With_Signingtype 0x45820130 3872@0x45810000, 256@0x45820030
pit_check_signature (PIT) valid.
blk_bread: MMC mode
PARAM ENV VERSION: v1.0..
RECOVERY IS NOT SEANDROID ENFORCING
RECOVERY IS NOT SEANDROID ENFORCING
ATAG_CMDLINE: 103 54410009 'console=ram loglevel=4 bootmode=2 sec_debug.level=0 sec_watchdog.sec_pet=5 androidboot.debug_level=0x4f4c ess_setup=0x46000000 sec_tima_log=0x200000@0x47002000 sec_avc_log=0x40000@0x47204000 s3cfb.bootloaderfb=0x67000000 sysscope=0xee000000 lcdtype=812552 consoleblank=0 vmalloc=384m sec_debug.reset_reason=6 sec_reset.reset_reason=6 ehci_hcd.park=3 oops=panic pmic_info=27 ccic_info=1 cordon=eeeb5ced9430d2cfe0bf16a079f70608 connie=SM-T395_OPEN_EUR_63e3f4ca8271d4c7e2d2c3239cb7fb2e androidboot.emmc_checksum=3 androidboot.sales.param.offset=7340572 sales_code=ILO androidboot.odin_download=1 androidboot.bootloader=T395JXU1AQJ2 androidboot.selinux=enforcing androidboot.security_mode=1526595585 androidboot.ucs_mode=0 androidboot.hw_rev=4 androidboot.hardware=samsungexynos7870 androidboot.warranty_bit=1 androidboot.hmac_mismatch=0 androidboot.sec_atd.tty=/dev/ttySAC2 androidboot.serialno=5200db205bcac461 snd_soc_core.pmdown_time=1000 androidboot.verifiedbootstate=orange reserve-fimc=0 firmware_class.path=/vendor/firmware'
param logs:
<6>[ 0.000000] [0: swapper: 0] Initializing cgroup subsys cpu
<6>[ 0.000000] [0: swapper: 0] Initializing cgroup subsys cpuacct
<5>[ 0.000000] [0: swapper: 0] Linux version 3.18.14 (root@ubuntu) (gcc version 4.9 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Sun Jul 29 16:36:16 IDT 2018
<4>[ 0.000000] [0: swapper: 0] CPU: AArch64 Processor [410fd034] revision 4
<6>[ 0.000000] [0: swapper: 0] Detected VIPT I-cache on CPU0
<6>[ 0.000000] [0: swapper: 0] alternative: enabling workaround for ARM erratum 845719
<6>[ 0.000000] [0: swapper: 0] [ECT] Address 90000000, Size 14000setup_bootmode: boot_mode is 0
<4>[ 0.000000] [0: swapper: 0] setup_bootmode: boot_mode is 2
<6>[ 0.000000] [0: swapper: 0] dsim: --- Parse LCD TYPE ---
<6>[ 0.000000] [0: swapper: 0] dsim: LCDTYPE : 000c6608
<4>[ 0.000000] [0: swapper: 0] val = 49
<6>[ 0.000000] [0: swapper: 0] Security Boot Mode
<3>[ 0.000000] [0: swapper: 0] modem_if_reserved_mem_setup: memory reserved: paddr=4026531840, t_size=125829120
<6>[ 0.000000] [0: swapper: 0] Reserved memory: initialized node modem_if, compatible id exynos7870,modem_if
<3>[ 0.000000] [0: swapper: 0] deliver_cp_reserved_mem_setup: memory reserved: paddr=4026527744, t_size=4096
<6>[ 0.000000] [0: swapper: 0] Reserved memory: initialized node dram_init, compatible id exynos7870,deliver_cp
<6>[ 0.000000] [0: swapper: 0] cma: CMA: reserved 8 MiB at 80000000
<6>[ 0.000000] [0: swapper: 0] CMA memory[1]: crypto:0x800000
<6>[ 0.000000] [0: swapper: 0] Reserved memory: initialized node crypto, compatible id exynos8890-ion,crypto
<6>[ 0.000000] [0: swapper: 0] cma: CMA: reserved 4 MiB at 80800000
<6>[ 0.000000] [0: swapper: 0] CMA memory[2]: video_fw:0x400000
<6>[ 0.000000] [0: swapper: 0] Reserved memory: initialized node video_fw, compatible id exynos8890-ion,vfw
<6>[ 0.000000] [0: swapper: 0] cma: CMA: reserved 4 MiB at 80c00000
<6>[ 0.000000] [0: swapper: 0] CMA memory[7]: video_nfw:0x400000
<6>[ 0.000000] [0: swapper: 0] Reserved memory: initialized node video_nfw, compatible id exynos8890-ion,vnfw
<6>[ 0.000000] [0: swapper: 0] cma: CMA: reserved 16 MiB at 81000000
<6>[ 0.000000] [0: swapper: 0] CMA memory[3]: video_stream:0x1000000
<6>[ 0.000000] [0: swapper: 0] Reserved memory: initialized node video_stream, compatible id exynos8890-ion,vstream
<6>[ 0.000000] [0: swapper: 0] cma: CMA: reserved 84 MiB at 82000000
<6>[ 0.000000] [0: swapper: 0] CMA memory[5]: video_frame:0x5400000
<6>[ 0.000000] [0: swapper: 0] Reserved memory: initialized node video_frame, compatible id exynos8890-ion,vframe
<6>[ 0.000000] [0: swapper: 0] cma: CMA: reserved 28 MiB at 87400000
<6>[ 0.000000] [0: swapper: 0] CMA memory[6]: video_scaler:0x1c00000
<6>[ 0.000000] [0: swapper: 0] Reserved memory: initialized node video_scaler, compatible id exynos8890-ion,vscaler
<6>[ 0.000000] [0: swapper: 0] cma: CMA: reserved 16 MiB at ff000000
<7>[ 0.000000] [0: swapper: 0] On node 0 totalpages: 776192
<7>[ 0.000000] [0: swapper: 0] DMA zone: 10752 pages used for memmap
<7>[ 0.000000] [0: swapper: 0] DMA zone: 0 pages reserved
<7>[ 0.000000] [0: swapper: 0] DMA zone: 776192 pages, LIFO batch:31
<6>[ 0.000000] [0: swapper: 0] psci: probing for conduit method from DT.
<6>[ 0.000000] [0: swapper: 0] psci: Using PSCI v0.1 Function IDs from DT
<6>[ 0.000000] [0: swapper: 0] PERCPU: Embedded 14 pages/cpu @ffffffc0beed1000 s18752 r8192 d30400 u57344
<7>[ 0.000000] [0: swapper: 0] pcpu-alloc: s18752 r8192 d30400 u57344 alloc=14*4096
<7>[ 0.000000] [0: swapper: 0] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7
<4>[ 0.000000] [0: swapper: 0] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 765440
Kernel command line: console=ram loglevel=4 bootmode=2 sec_debug.level=0 sec_watchdog.sec_pet=5 androidboot.debug_level=0x4f4c ess_setup=0x46000000 sec_tima_log=0x200000@0x47002000 sec_avc_log=0x40000@0x47204000 s3cfb.bootloaderfb=0x67000000 sysscope=0xee000000 lcdtype=812552 consoleblank=0 vmalloc=384m sec_debug.reset_reason=6 sec_reset.reset_reason=6 ehci_hcd.park=3 oops=panic pmic_info=27 ccic_info=1 cordon=eeeb5ced9430d2cfe0bf16a079f70608 connie=SM-T395_OPEN_EUR_63e3f4ca8271d4c7e2d2c3239cb7fb2e androidboot.emmc_checksum=3 androidboot.sales.param.offset=7340572 sales_code=ILO androidboot.odin_download=1 androidboot.bootloader=T395JXU1AQJ2 androidboot.selinux=enforcing androidboot.security_mode=1526595585 androidboot.ucs_mode=0 androidboot.hw_rev=4 androidboot.hardware=samsungexynos7870 androidboot.warranty_bit=1 androidboot.hmac_mismatch=0 androidboot.sec_atd.tty=/dev/ttySAC2 androidboot.serialno=5200db205bcac461 snd_soc_core.pmdown_time=1000 androidboot.v<6>[ 0.000000] [0: swapper: 0] ../../../../../../device/samsung/gtactive2lte/kernel/drivers/staging/samsung/sec_debug.c: Reserved Mem(0x40000000, 0x1000) - Success
<0>[ 0.000000] [0: swapper: 0] sec_debug: set magic code (0x66262564)
<6>[ 0.000000] [0: swapper: 0] exynos-snapshot: try to reserve dedicated memory : 0x46000000, 0x1000000
<6>[ 0.000000] [0: swapper: 0] exynos-snapshot: memory reserved complete : 0x46000000, 0x1000000
<6>[ 0.000000] [0: swapper: 0] sec_debug: GetLog support (mark:0xffffffc000f25938, klog: 0xffffffc006800000)
<6>[ 0.000000] [0: swapper: 0] tima :sec_tima_log_setup, base:47002000, size:200000
<6>[ 0.000000] [0: swapper: 0] RKP :tima_setup_rkp_mem, base:52300000, size:40000
<6>[ 0.000000] [0: swapper: 0] RKP :tima_setup_rkp_mem, base:52400000, size:7000
<6>[ 0.000000] [0: swapper: 0] RKP :tima_setup_rkp_mem, base:4da00000, size:300000
<6>[ 0.000000] [0: swapper: 0] RKP :tima_setup_rkp_mem, base:52407000, size:1000
<6>[ 0.000000] [0: swapper: 0] RKP :tima_setup_rkp_mem, base:52408000, size:5f8000
<6>[ 0.000000] [0: swapper: 0] RKP :tima_setup_rkp_mem, base:4dd00000, size:100000
<6>[ 0.000000] [0: swapper: 0] sec_avc_log_setup: *sec_avc_log_ptr:5cc8 sec_avc_log_buf:ffffffc007204000 sec_log_size:0x40000
<6>[ 0.000000] [0: swapper: 0] sec_avc_log_setup: no old log found
<6>[ 0.000000] [0: swapper: 0] set_switch_sel: switch_sel: 0x01b
<6>[ 0.000000] [0: swapper: 0] set_ccic_info: ccic_info: 0x0001
<1>[ 0.000000] [0: swapper: 0] vmm_init
<1>[ 0.000000] [0: swapper: 0] bin 0xffffffc000da4000, 0x4a808
<1>[ 0.000000] [0: swapper: 0] ram 0xffffffc00dd00000, 0x100000
<1>[ 0.000000] [0: swapper: 0] vmm, 312176
<1>[ 0.000000] [0: swapper: 0] vmm_translate
<1>[ 0.000000] [0: swapper: 0] vmm_translate
<1>[ 0.000000] [0: swapper: 0] vmm_entry
<1>[ 0.000000] [0: swapper: 0] vmm entry point: 000000004dd01290
<1>[ 0.000000] [0: swapper: 0] vmm(000000004dd00000, 0x100000): 0
<6>[ 0.000000] [0: swapper: 0] PID hash table entries: 4096 (order: 3, 32768 bytes)
<6>[ 0.000000] [0: swapper: 0] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
<6>[ 0.000000] [0: swapper: 0] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
<4>[ 0.000000] [0: swapper: 0] Memory: 2693600K/3104768K available (9152K kernel code, 1037K rwdata, 4616K rodata, 408K init, 2885K bss, 411168K reserved)
<5>[ 0.000000] [0: swapper: 0] Virtual kernel memory layout:
<5>[ 0.000000] [0: swapper: 0] vmalloc : 0xffffff8000000000 - 0xffffffbdffff0000 ( 247 GB)
<5>[ 0.000000] [0: swapper: 0] vmemmap : 0xffffffbe00000000 - 0xffffffbfc0000000 ( 7 GB maximum)
<5>[ 0.000000] [0: swapper: 0] 0xffffffbe00e00000 - 0xffffffbe03800000 ( 42 MB actual)
<5>[ 0.000000] [0: swapper: 0] PCI I/O : 0xffffffbffa000000 - 0xffffffbffb000000 ( 16 MB)
<5>[ 0.000000] [0: swapper: 0] fixed : 0xffffffbffbdfe000 - 0xffffffbffbdff000 ( 4 KB)
<5>[ 0.000000] [0: swapper: 0] modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
<5>[ 0.000000] [0: swapper: 0] memory : 0xffffffc000000000 - 0xffffffc0c0000000 ( 3072 MB)
<5>[ 0.000000] [0: swapper: 0] .init : 0xffffffc000df3000 - 0xffffffc000e59000 ( 408 KB)
<6>[ 0.000000] [0: swapper: 0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
<6>[ 0.000000] [0: swapper/0: 0] Preemptible hierarchical RCU implementation.
<6>[ 0.000000] [0: swapper/0: 0] NR_IRQS:64 nr_irqs:64 0
<6>[ 0.000000] [0: swapper/0: 0] ========================================
<6>[ 0.000000] [0: swapper/0: 0] =
<6>[ 0.000000] [0: swapper/0: 0] = [ECT] current version is TEST VERSION!!
<6>[ 0.000000] [0: swapper/0: 0] = Please be aware that error can be happen.
<6>[ 0.000000] [0: swapper/0: 0] = [VERSION] : 1001
<6>[ 0.000000] [0: swapper/0: 0] =
<6>[ 0.000000] [0: swapper/0: 0] ========================================
<6>[ 0.000000] [0: swapper/0: 0] asv_table_ver : 5
<6>[ 0.000000] [0: swapper/0: 0] fused_grp : 1
<6>[ 0.000000] [0: swapper/0: 0] cpucl0_asv_group : 7
<6>[ 0.000000] [0: swapper/0: 0] cpucl1_asv_group : 7
<6>[ 0.000000] [0: swapper/0: 0] g3d_asv_group : 7
<6>[ 0.000000] [0: swapper/0: 0] mif_asv_group : 7
<6>[ 0.000000] [0: swapper/0: 0] int_asv_group : 7
<6>[ 0.000000] [0: swapper/0: 0] disp_asv_group : 5
<3>[ 0.000000] [0: swapper/0: 0] cal_dfs_get_rate : dvfs_cam reference count is zero
<3>[ 0.000000] [0: swapper/0: 0] cal_dfs_get_rate : dvfs_disp reference count is zero
<6>[ 0.000000] [0: swapper/0: 0] EXYNOS7870: Clock setup completed
<6>[ 0.000000] [0: swapper/0: 0] Exynos: pwm: clock setup completed
<6>[ 0.000000] [0: swapper/0: 0] arch_timer_init: arch_timer is used only clocksource
<6>[ 0.000000] [0: swapper/0: 0] Architected cp15 timer(s) running at 26.00MHz (virt).
<6>[ 0.000004] [0: swapper/0: 0] sched_clock: 56 bits at 26MHz, resolution 38ns, wraps every 2643056787456ns
<6>[ 0.002320] [0: swapper/0: 0] Enable console clock to add reference count
<6>[ 0.002352] [0: swapper/0: 0] Calibrating delay loop (skipped), value calculated using timer frequency.. 52.00 BogoMIPS (lpj=260000)
<6>[ 0.002364] [0: swapper/0: 0] pid_max: default: 32768 minimum: 301
<6>[ 0.005573] [0: swapper/0: 0] Security Framework initialized
<6>[ 0.005590] [0: swapper/0: 0] SELinux: Initializing.
<7>[ 0.005628] [0: swapper/0: 0] SELinux: Starting in [B]permissive [/B]mode