Skip to content

Commit

Permalink
Marvell-armhf: Reduce kernel image size for u-boot
Browse files Browse the repository at this point in the history
Marvell-armhf platforms using u-boot has constraints when loading the
kernel image into the physical memory region reserved for the kernel
and ramdisk image. This commit reduces the size of the kernel image to
meet those constraints.

- Disable unused architectures to reduce the size of the kernel
- Disable sound device driver module

Testing:
 - Check kernel boots without any memory overlapping errors
 - kernel binary size before this commit : 6197760 bytes
 - kernel binary size after this commit  : 5192480 bytes

Signed-off-by: Antony Rheneus <arheneus@marvell.com>
  • Loading branch information
antony-rheneus committed Dec 16, 2020
1 parent b6ee695 commit 305dc69
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patch/kconfig-exclusions
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,25 @@ CONFIG_MLXSW_PCI
[armhf]

[marvell-armhf]
CONFIG_ARCH_VIRT
CONFIG_ARCH_BCM
CONFIG_ARCH_EXYNOS
CONFIG_ARCH_HIGHBANK
CONFIG_ARCH_MXC
CONFIG_ARCH_MESON
CONFIG_ARCH_OMAP3
CONFIG_ARCH_OMAP4
CONFIG_SOC_OMAP5
CONFIG_SOC_AM33XX
CONFIG_SOC_DRA7XX
CONFIG_ARCH_ROCKCHIP
CONFIG_ARCH_SOCFPGA
CONFIG_ARCH_SUNXI
CONFIG_ARCH_TEGRA
CONFIG_ARCH_VEXPRESS
CONFIG_ARCH_WM8850
CONFIG_FW_CFG_SYSFS
CONFIG_VORTEX
CONFIG_NTP_PPS
CONFIG_SENSORS_MAX6620
CONFIG_SND_LX6464ES

0 comments on commit 305dc69

Please sign in to comment.