Build custom kernel but my config disappeared

i followed the step @Build VyOS — VyOS 1.4.x (sagitta) documentation
add
CONFIG_DEBUG_INFO_BTF=y
CONFIG_KPROBE_EVENTS=y
into vyos_defconfig and run build-kernel.sh

and I checked .config inside linux kernel source dir, it has no such entries.
how can I fix it? thanks

I managed to get it fixed

Leave your solution for later searches.

          sed -i '/CONFIG_DEBUG_INFO/d;/CONFIG_RING_BUFFER/d;/CONFIG_TRACING/d;/CONFIG_STACKTRACE/d;/CONFIG_NOP_TRACER/d;/CONFIG_BINARY_PRINTF/d;/CONFIG_EVENT_TRACING/d;/CONFIG_TRACE_CLOCK/d;/CONFIG_TASKS_RCU/d' configs/vyos_defconfig
          echo "CONFIG_DEBUG_INFO=y
          CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
          CONFIG_DEBUG_INFO_COMPRESSED_ZLIB=y
          CONFIG_DEBUG_INFO_BTF=y
          CONFIG_KPROBE_EVENTS=y
          CONFIG_BPF_EVENTS=y
          CONFIG_RING_BUFFER=y
          CONFIG_TRACING=y
          CONFIG_STACKTRACE=y
          CONFIG_NOP_TRACER=y
          CONFIG_BINARY_PRINTF=y
          CONFIG_EVENT_TRACING=y
          CONFIG_TRACE_CLOCK=y
          CONFIG_TASKS_RCU=y" >> configs/vyos_defconfig
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.