config: add a small_flash feature
[openwrt/openwrt.git] / config / Config-kernel.in
index 8ea11ed4d1f3b8de7e9a08605aa9ebc1bb1c3d5d..b05ff23694cf5c2597b49106200d0c6377a4a7ae 100644 (file)
@@ -42,9 +42,15 @@ config KERNEL_DEBUG_FS
          write to these files. Many common debugging facilities, such as
          ftrace, require the existence of debugfs.
 
+config KERNEL_ARM_PMU
+       bool
+       default n
+       depends on (arm || arm64)
+
 config KERNEL_PERF_EVENTS
        bool
        default n
+       select KERNEL_ARM_PMU if (arm || arm64)
 
 config KERNEL_PROFILING
        bool "Compile the kernel with profiling enabled"
@@ -56,7 +62,7 @@ config KERNEL_PROFILING
 
 config KERNEL_KALLSYMS
        bool "Compile the kernel with symbol table information"
-       default y
+       default y if !SMALL_FLASH
        help
          This will give you more information in stack traces from kernel oopses.