Skip to content

Commit

Permalink
od: linux_defconfig: Remove debug options
Browse files Browse the repository at this point in the history
We enable `CONFIG_EMBEDDED`, which selects `CONFIG_EXPERT`.

`CONFIG_EXPERT` selects `CONFIG_DEBUG_KERNEL`, which enables
several kernel debugging options by default.

This commit disables them.

I thought of disabling `CONFIG_EMBEDDED` instead because we
do not use it for anything but we do need `CONFIG_EXPERT`
for `LD_DEAD_CODE_DATA_ELIMINATION` anyway.

rg99 comparison (`dmesg | grep Memory`):

```
- Memory: 23616K/32768K available (4150K kernel code, 610K rwdata, 604K rodata, 1216K init, 274K bss, 7104K reserved, 2048K cma-reserved)
+ Memory: 23664K/32768K available (4126K kernel code, 606K rwdata, 600K rodata, 1248K init, 238K bss, 7056K reserved, 2048K cma-reserved)
```

Signed-off-by: Gleb Mazovetskiy <[email protected]>
  • Loading branch information
glebm authored and pcercuei committed Nov 20, 2022
1 parent e731684 commit 5113151
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions board/opendingux/gcw0/linux_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ CONFIG_HIGH_RES_TIMERS=y
CONFIG_PREEMPT_VOLUNTARY=y
CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y
CONFIG_EMBEDDED=y
# CONFIG_DEBUG_MISC is not set
# CONFIG_SCHED_DEBUG is not set
# CONFIG_DEBUG_PREEMPT is not set
# CONFIG_RCU_TRACE is not set
CONFIG_PROFILING=y
CONFIG_MACH_INGENIC_SOC=y
CONFIG_JZ4770_GCW0=y
Expand Down
4 changes: 4 additions & 0 deletions board/opendingux/lepus/linux_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ CONFIG_HIGH_RES_TIMERS=y
CONFIG_PREEMPT_VOLUNTARY=y
CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y
CONFIG_EMBEDDED=y
# CONFIG_DEBUG_MISC is not set
# CONFIG_SCHED_DEBUG is not set
# CONFIG_DEBUG_PREEMPT is not set
# CONFIG_RCU_TRACE is not set
CONFIG_PROFILING=y
CONFIG_MACH_INGENIC_SOC=y
CONFIG_JZ4760_RS97=y
Expand Down
4 changes: 4 additions & 0 deletions board/opendingux/rs90/linux_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y
# CONFIG_ADVISE_SYSCALLS is not set
# CONFIG_KALLSYMS is not set
CONFIG_EMBEDDED=y
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_SCHED_DEBUG is not set
# CONFIG_DEBUG_PREEMPT is not set
# CONFIG_RCU_TRACE is not set
CONFIG_PROFILING=y
CONFIG_MACH_INGENIC_SOC=y
CONFIG_JZ4740_RS90=y
Expand Down

0 comments on commit 5113151

Please sign in to comment.