[Android General] _JaSoN_:
ok thanks for answering rom will be for personal use only included gapps with it too :) trying to have the derp kernel already in it that i dont need to flash it always after rom :)

Question 1: here is what i get when i try to build lineage 15.1 with derp kernel using the default branch pie https://github.com/akhilnarang/whyred path is kernel/xiaomi/sdm660 like its on the original 1 from lineage

7 warnings generated.
[ 8% 8101/98433] Building Kernel
FAILED: TARGET_KERNEL_BINARIES
/bin/bash -c "(rm -rf /home/jason/lineage15/out/target/product/whyred/vendor/lib/modules ) && (mkdir -p /home/jason/lineage15/out/target/product/whyred/vendor/lib/modules ) && (rm -rf /home/jason/lineage15/out/target/product/whyred/obj/PACKAGING/depmod_vendor_intermediates ) && (make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/xiaomi/sdm660 O=/home/jason/lineage15/out/target/product/whyred/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" /home/jason/lineage15/prebuilts/clang/host/linux-x86/clang-4053586/bin/clang\" Image.gz-dtb ) && (if grep -q '^CONFIG_OF=y' /home/jason/lineage15/out/target/product/whyred/obj/KERNEL_OBJ/.config; then	echo \"Building DTBs\";	make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/xiaomi/sdm660 O=/home/jason/lineage15/out/target/product/whyred/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" /home/jason/lineage15/prebuilts/clang/host/linux-x86/clang-4053586/bin/clang\" dtbs;	fi ) && (if grep -q '^CONFIG_MODULES=y' /home/jason/lineage15/out/target/product/whyred/obj/KERNEL_OBJ/.config; then	echo \"Building Kernel Modules\";	make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/xiaomi/sdm660 O=/home/jason/lineage15/out/target/product/whyred/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" /home/jason/lineage15/prebuilts/clang/host/linux-x86/clang-4053586/bin/clang\" modules;	fi )"
make: Entering directory '/home/jason/lineage15/kernel/xiaomi/sdm660'
make[1]: Entering directory '/home/jason/lineage15/out/target/product/whyred/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
HOSTCC scripts/basic/bin2c
UPD include/config/kernel.release
Using /home/jason/lineage15/kernel/xiaomi/sdm660 as source for kernel
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
CC scripts/mod/empty.o
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/mod/mk_elfconfig
HOSTCC scripts/dtc/flattree.o
CC scripts/mod/devicetable-offsets.s
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/selinux/mdp/mdp
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
HOSTCC scripts/dtc/fstree.o
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/parse.tab.o
MKELF scripts/mod/elfconfig.h
CHK scripts/mod/devicetable-offsets.h
UPD scripts/mod/devicetable-offsets.h
HOSTCC scripts/dtc/data.o
HOSTCC scripts/kallsyms
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/pnmtologo
HOSTCC scripts/sortextable
HOSTCC scripts/dtc/treesource.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/asn1_compiler
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/sign-file
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/extract-cert
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
HOSTLD scripts/mod/modpost
HOSTLD scripts/dtc/dtc
CHK include/generated/timeconst.h
CC kernel/bounds.s
UPD include/generated/timeconst.h
CHK include/generated/bounds.h
UPD include/generated/bounds.h
CC arch/arm64/kernel/asm-offsets.s
CHK include/generated/asm-offsets.h
UPD include/generated/asm-offsets.h
CALL /home/jason/lineage15/kernel/xiaomi/sdm660/scripts/checksyscalls.sh
LDS arch/arm64/kernel/vdso/vdso.lds
VDSOC arch/arm64/kernel/vdso/vgettimeofday.o
VDSOA arch/arm64/kernel/vdso/sigreturn.o
VDSOA arch/arm64/kernel/vdso/note.o
VDSOL arch/arm64/kernel/vdso/vdso.so.dbg
VDSOSYM include/generated/vdso-offsets.h
CC init/main.o
HOSTCC usr/gen_init_cpio
CC arch/arm64/mm/dma-mapping.o
CC arch/arm64/kernel/debug-monitors.o
GEN usr/initramfs_data.cpio.gz
AS usr/initramfs_data.o
LD usr/built-in.o
AS arch/arm64/kernel/entry.o
LD arch/arm64/net/built-in.o
CC arch/arm64/kernel/irq.o
CC arch/arm64/mm/extable.o
CHK include/generated/compile.h
CC arch/arm64/kernel/fpsimd.o
CC arch/arm64/mm/fault.o
CC arch/arm64/crypto/sha1-ce-glue.o
UPD include/generated/compile.h
CC init/do_mounts.o
CC arch/arm64/mm/init.o
AS arch/arm64/kernel/entry-fpsimd.o
AS arch/arm64/crypto/sha1-ce-core.o
CC arch/arm64/kernel/process.o
CC arch/arm64/crypto/sha2-ce-glue.o
AS arch/arm64/crypto/sha2-ce-core.o
AS arch/arm64/mm/cache.o
CC arch/arm64/crypto/ghash-ce-glue.o
CC arch/arm64/mm/copypage.o
CC init/do_mounts_rd.o
CC arch/arm64/kernel/ptrace.o
AS arch/arm64/crypto/ghash-ce-core.o
CC arch/arm64/mm/flush.o
CC arch/arm64/crypto/poly-hash-ce-glue.o
CC init/do_mounts_initrd.o
AS arch/arm64/crypto/poly-hash-ce-core.o
CC init/do_mounts_md.o
CC arch/arm64/kernel/setup.o
CC arch/arm64/crypto/aes-ce-cipher.o
CC arch/arm64/mm/ioremap.o
CC arch/arm64/crypto/aes-ce-ccm-glue.o
CC init/do_mounts_dm.o
CC init/noinitramfs.o
AS arch/arm64/crypto/aes-ce-ccm-core.o
CC arch/arm64/crypto/aes-glue-ce.o
CC arch/arm64/mm/mmap.o
CC arch/arm64/kernel/signal.o
CC init/initramfs.o
AS arch/arm64/crypto/aes-ce.o
CC arch/arm64/crypto/aes-glue-neon.o
CC arch/arm64/mm/pgd.o
CC init/calibrate.o
CC arch/arm64/kernel/sys.o
CC init/init_task.o
CC arch/arm64/mm/mmu.o
AS arch/arm64/crypto/aes-neon.o
CC arch/arm64/kernel/stacktrace.o
CC arch/arm64/crypto/crc32-arm64.o
CC init/version.o
LD arch/arm64/crypto/sha1-ce.o
LD arch/arm64/crypto/sha2-ce.o
LD arch/arm64/crypto/ghash-ce.o
CC arch/arm64/kernel/time.o
CC arch/arm64/mm/context.o
LD arch/arm64/crypto/poly-hash-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
LD init/mounts.o
AS arch/arm64/mm/proc.o
LD init/built-in.o
CC arch/arm64/mm/pageattr.o
CC certs/system_keyring.o
CC arch/arm64/kernel/traps.o
LD arch/arm64/mm/built-in.o
EXTRACT_CERTS /home/jason/lineage15/kernel/xiaomi/sdm660/certs/"verity.x509.pem"
CC kernel/fork.o
CC arch/arm64/kernel/io.o
Generating X.509 key generation config
###
### Now generating an X.509 key pair to be used for signing modules.
###
### If this takes a long time, you might wish to run rngd in the
### background to keep the supply of entropy topped up. It
### needs to be run as root, and uses a hardware random
### number generator if one is available.
###
Generating a 4096 bit RSA private key
...........++
...... CC mm/filemap.o
..............++
writing new private key to 'certs/signing_key.pem'
-----
###
### Key pair generated.
###
EXTRACT_CERTS certs/signing_key.pem
AS certs/system_certificates.o
LD certs/built-in.o
CC arch/arm64/kernel/vdso.o
CC fs/open.o
AS arch/arm64/kernel/hyp-stub.o
CC mm/mempool.o
CC arch/arm64/kernel/psci.o
CC kernel/exec_domain.o
CC arch/arm64/kernel/cpu_ops.o
CC kernel/panic.o
CC mm/oom_kill.o
CC arch/arm64/kernel/insn.o
CC fs/read_write.o
CC arch/arm64/kernel/return_address.o
CC kernel/cpu.o
CC mm/maccess.o
CC fs/file_table.o
CC arch/arm64/kernel/cpuinfo.o
CC mm/page_alloc.o
CC fs/super.o
CC kernel/exit.o
CC arch/arm64/kernel/cpu_errata.o
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/mm/page_alloc.c:18:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/include/linux/mm.h:9:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/include/linux/gfp.h:5:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/include/linux/mmzone.h:7:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/include/linux/spinlock.h:87:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/arch/arm64/include/asm/spinlock.h:21:
/home/jason/lineage15/kernel/xiaomi/sdm660/arch/arm64/include/asm/processor.h:181:15: error: invalid operand in inline asm: 'prfm pstl1keep, ${0:a}'
asm volatile("prfm pstl1keep, %a0\n" : : "p" (ptr));
^
/home/jason/lineage15/kernel/xiaomi/sdm660/arch/arm64/include/asm/processor.h:181:15: error: invalid operand in inline asm: 'prfm pstl1keep, ${0:a}'
CC arch/arm64/kernel/cpufeature.o
2 errors generated.
/home/jason/lineage15/kernel/xiaomi/sdm660/scripts/Makefile.build:282: recipe for target 'mm/page_alloc.o' failed
make[2]: *** [mm/page_alloc.o] Error 1
/home/jason/lineage15/kernel/xiaomi/sdm660/Makefile:1027: recipe for target 'mm' failed
make[1]: *** [mm] Error 2
make[1]: *** Waiting for unfinished jobs....
CC kernel/softirq.o
CC fs/char_dev.o
CC arch/arm64/kernel/alternative.o
CC kernel/resource.o
CC arch/arm64/kernel/cacheinfo.o
CC fs/stat.o
CC arch/arm64/kernel/smp.o
CC kernel/sysctl.o
CC fs/exec.o
CC arch/arm64/kernel/smp_spin_table.o
CC fs/pipe.o
CC arch/arm64/kernel/topology.o
CC kernel/sysctl_binary.o
CC kernel/capability.o
AS arch/arm64/kernel/smccc-call.o
CC fs/namei.o
CC arch/arm64/kernel/signal32.o
CC arch/arm64/kernel/sys32.o
CC fs/fcntl.o
CC kernel/ptrace.o
CC arch/arm64/kernel/sys_compat.o
AS arch/arm64/kernel/entry32.o
AS arch/arm64/kernel/sigreturn32.o
AS arch/arm64/kernel/kuser32.o
CC fs/ioctl.o
CC arch/arm64/kernel/arm64ksyms.o
CC kernel/user.o
CC kernel/signal.o
CC fs/readdir.o
CC arch/arm64/kernel/module.o
CC fs/select.o
CC arch/arm64/kernel/module-plts.o
CC arch/arm64/kernel/perf_regs.o
CC kernel/sys.o
CC arch/arm64/kernel/perf_callchain.o
CC kernel/kmod.o
CC fs/dcache.o
CC arch/arm64/kernel/perf_debug.o
CC arch/arm64/kernel/perf_trace_counters.o
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/fs/dcache.c:17:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/include/linux/syscalls.h:76:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/include/linux/sem.h:5:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/include/linux/rcupdate.h:38:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/include/linux/spinlock.h:87:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/arch/arm64/include/asm/spinlock.h:21:
/home/jason/lineage15/kernel/xiaomi/sdm660/arch/arm64/include/asm/processor.h:175:15: error: invalid operand in inline asm: 'prfm pldl1keep, ${0:a}'
asm volatile("prfm pldl1keep, %a0\n" : : "p" (ptr));
^
/home/jason/lineage15/kernel/xiaomi/sdm660/arch/arm64/include/asm/processor.h:175:15: error: invalid operand in inline asm: 'prfm pldl1keep, ${0:a}'
CC arch/arm64/kernel/perf_trace_user.o
CC kernel/workqueue.o
2 errors generated.
/home/jason/lineage15/kernel/xiaomi/sdm660/scripts/Makefile.build:282: recipe for target 'fs/dcache.o' failed
make[2]: *** [fs/dcache.o] Error 1
/home/jason/lineage15/kernel/xiaomi/sdm660/Makefile:1027: recipe for target 'fs' failed
make[1]: *** [fs] Error 2
CC kernel/pid.o
CC arch/arm64/kernel/hw_breakpoint.o
CC kernel/task_work.o
AS arch/arm64/kernel/sleep.o
CC arch/arm64/kernel/suspend.o
CC kernel/extable.o
CC kernel/params.o
CC kernel/kthread.o
CC arch/arm64/kernel/cpuidle.o
CC arch/arm64/kernel/jump_label.o
CC arch/arm64/kernel/pci.o
CC kernel/sys_ni.o
CC arch/arm64/kernel/armv8_deprecated.o
CC kernel/nsproxy.o
CC kernel/notifier.o
CC kernel/ksysfs.o
CC kernel/cred.o
CC arch/arm64/kernel/acpi.o
CC kernel/reboot.o
CC kernel/async.o
CC kernel/range.o
CC arch/arm64/kernel/kaslr.o
LD arch/arm64/kernel/probes/built-in.o
AS arch/arm64/kernel/head.o
CC kernel/smpboot.o
LDS arch/arm64/kernel/vmlinux.lds
CC kernel/groups.o
OBJCOPY arch/arm64/kernel/vdso/vdso.so
AS arch/arm64/kernel/vdso/vdso.o
CC kernel/bpf/core.o
LD arch/arm64/kernel/vdso/built-in.o
LD arch/arm64/kernel/built-in.o
CC kernel/events/core.o
LD kernel/livepatch/built-in.o
CC kernel/irq/irqdesc.o
CC kernel/locking/mutex.o
LD kernel/bpf/built-in.o
CC kernel/irq/handle.o
CC kernel/locking/semaphore.o
CC kernel/power/qos.o
CC kernel/irq/manage.o
CC kernel/locking/rwsem.o
CC kernel/power/main.o
CC kernel/locking/percpu-rwsem.o
CC kernel/irq/spurious.o
CC kernel/locking/spinlock.o
CC kernel/events/ring_buffer.o
CC kernel/irq/resend.o
CC kernel/power/process.o
CC kernel/irq/chip.o
CC kernel/locking/osq_lock.o
CC kernel/events/callchain.o
CC kernel/power/suspend.o
CC kernel/locking/lglock.o
CC kernel/events/hw_breakpoint.o
CC kernel/irq/dummychip.o
CC kernel/locking/rtmutex.o
CC kernel/irq/devres.o
CC kernel/power/autosleep.o
LD kernel/events/built-in.o
CC kernel/printk/printk.o
CC kernel/locking/rwsem-xadd.o
CC kernel/power/wakelock.o
CC kernel/irq/autoprobe.o
LD kernel/locking/built-in.o
CC kernel/power/poweroff.o
CC kernel/irq/irqdomain.o
CC kernel/rcu/update.o
CC kernel/power/wakeup_reason.o
LD kernel/printk/built-in.o
LD kernel/power/built-in.o
CC kernel/irq/proc.o
CC kernel/rcu/sync.o
CC kernel/sched/core.o
CC kernel/time/time.o
CC kernel/rcu/srcu.o
CC kernel/irq/cpuhotplug.o
CC kernel/irq/pm.o
CC kernel/rcu/tree.o
CC kernel/time/timer.o
CC kernel/irq/msi.o
CC kernel/time/hrtimer.o
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/kernel/rcu/tree.c:33:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/include/linux/spinlock.h:87:
In file included from /home/jason/lineage15/kernel/xiaomi/sdm660/arch/arm64/include/asm/spinlock.h:21:
/home/jason/lineage15/kernel/xiaomi/sdm660/arch/arm64/include/asm/processor.h:175:15: error: invalid operand in inline asm: 'prfm pldl1keep, ${0:a}'
asm volatile("prfm pldl1keep, %a0\n" : : "p" (ptr));
^
LD kernel/irq/built-in.o
CC kernel/time/itimer.o
1 error generated.
/home/jason/lineage15/kernel/xiaomi/sdm660/scripts/Makefile.build:282: recipe for target 'kernel/rcu/tree.o' failed
make[3]: *** [kernel/rcu/tree.o] Error 1
/home/jason/lineage15/kernel/xiaomi/sdm660/scripts/Makefile.build:489: recipe for target 'kernel/rcu' failed
make[2]: *** [kernel/rcu] Error 2
make[2]: *** Waiting for unfinished jobs....
CC kernel/time/posix-timers.o
CC kernel/sched/loadavg.o
CC kernel/time/posix-cpu-timers.o
CC kernel/time/timekeeping.o
CC kernel/sched/clock.o
CC kernel/time/ntp.o
CC kernel/sched/cputime.o
CC kernel/time/clocksource.o
CC kernel/time/jiffies.o
CC kernel/sched/idle_task.o
CC kernel/sched/fair.o
CC kernel/sched/rt.o
CC kernel/time/timer_list.o
CC kernel/sched/deadline.o
CC kernel/time/timeconv.o
CC kernel/sched/stop_task.o
CC kernel/sched/wait.o
CC kernel/time/timecounter.o
CC kernel/time/posix-clock.o
CC kernel/sched/completion.o
CC kernel/sched/idle.o
CC kernel/time/alarmtimer.o
CC kernel/sched/sched_avg.o
CC kernel/sched/cpupri.o
CC kernel/sched/cpudeadline.o
CC kernel/time/clockevents.o
CC kernel/sched/energy.o
CC kernel/time/tick-common.o
CC kernel/time/tick-broadcast.o
CC kernel/sched/hmp.o
CC kernel/sched/boost.o
CC kernel/time/tick-broadcast-hrtimer.o
CC kernel/sched/auto_group.o
CC kernel/time/sched_clock.o
CC kernel/time/tick-oneshot.o
CC kernel/time/tick-sched.o
CC kernel/sched/stats.o
CC kernel/time/timekeeping_debug.o
CC kernel/sched/tune.o
CC kernel/sched/cpuacct.o
CC kernel/sched/core_ctl.o
LD kernel/time/built-in.o
CC kernel/sched/cpufreq.o
LD kernel/sched/built-in.o
/home/jason/lineage15/kernel/xiaomi/sdm660/Makefile:1027: recipe for target 'kernel' failed
make[1]: *** [kernel] Error 2
make[1]: Leaving directory '/home/jason/lineage15/out/target/product/whyred/obj/KERNEL_OBJ'
Makefile:152: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/jason/lineage15/kernel/xiaomi/sdm660'
[ 8% 8106/98433] target thumb C++: libv8src_32 <= external/v8/src/builtins/builtins-async-iterator.cc
ninja: build stopped: subcommand failed.
12:17:20 ninja failed with: exit status 1

#### failed to build some targets (11:21 (mm:ss)) ####

link for full view https://pastebin.com/Upx9pRwj

when i use the kernel from lineage all working fine

and another

Question 2: when i want to update the vendor security level is it enough to change in vendor_prop.mk

from

# Security Patch Level
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.build.security_patch=2018-05-01

to

# Security Patch Level
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.build.security_patch=2019-01-01

or do i have to get latest fastboot rom and get them from the vendor.img ? and if so is it hard to do or is there a tool i can use for it :confused: i looked on google and all i always found is the change of that line

or can i use this https://github.com/GuaiYiHu/android_vendor_xiaomi_whyred for 15.1 too ?

at the moment i use TheMuppets/proprietary_vendor_xiaomi