- # Enable CONFIG_KALLSYMS_ALL
- echo "CONFIG_KPROBES=y" >> "${outdir}"/.config
- echo "CONFIG_FTRACE=y" >> "${outdir}"/.config
- echo "CONFIG_BLK_DEV_IO_TRACE=y" >> "${outdir}"/.config
- echo "CONFIG_TRACEPOINTS=y" >> "${outdir}"/.config
- echo "CONFIG_KALLSYMS_ALL=y" >> "${outdir}"/.config
+ # Set required options
+ {
+ echo "CONFIG_KPROBES=y";
+ echo "CONFIG_FTRACE=y";
+ echo "CONFIG_BLK_DEV_IO_TRACE=y";
+ echo "CONFIG_TRACEPOINTS=y";
+ echo "CONFIG_KALLSYMS_ALL=y";
+ } >> "${outdir}"/.config
+
+
+ make "$oldconf_target" CC="$CC" ${koutput}
+ make modules_prepare CC="$CC" ${koutput}
+
+ # Debug
+ #cat "${outdir}"/.config