Skip to content

Commit 5d44b5d

Browse files
Jerry0443ConchuOD
authored andcommitted
sama5d3-eds: linux: Compile kernel for size
The kernel size exceeds the partition allocated in the bootargs and the sam-ba loading script. Compiling for size reduces the kernel memory footprint to be similar to what it has been in the past. Signed-off-by: Jerry Ray <[email protected]>
1 parent b964bb8 commit 5d44b5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

board/microchip/sama5d3_eds/linux.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ CONFIG_CGROUP_CPUACCT=y
1717
CONFIG_NAMESPACES=y
1818
CONFIG_USER_NS=y
1919
CONFIG_BLK_DEV_INITRD=y
20+
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
2021
# CONFIG_KALLSYMS is not set
2122
CONFIG_EMBEDDED=y
2223
CONFIG_SLAB=y

0 commit comments

Comments
 (0)