[PATCH 0/7] filetype: Some size reduction patches
Alexander Shiyan
eagle.alexander923 at gmail.com
Tue Mar 18 08:01:19 PDT 2025
Hello Sascha!
I've been using a separate config for this board for a long time :)
Maybe you can take something from my working configuration that
has been working for several years:
https://github.com/shcgit/barebox/blob/milas/arch/arm/configs/mm_am335x_mlo_defconfig
Thanks!
вт, 18 мар. 2025 г. в 17:46, Sascha Hauer <s.hauer at pengutronix.de>:
>
> The am335x_mlo_defconfig is very size constrained and doesn't build
> within these constraint anymore for some time. The filetype detection
> code has become quite big and offers some opportunities for size
> reduction. Specifically file_detect_type() is quite big, but many
> callers are only interested in some specific file types like supported
> file systems or supported compressed binary formats. This series
> introduces some more specific smaller file detection functions so that
> we can get rid of the big file_detect_type() in the binary.
>
> Also included some patches for the myirtech-mid board to use a stripped
> down device tree for the MLO. The same is already done for the other
> boards supported in am335x_mlo_defconfig
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
> Sascha Hauer (7):
> filetype: add file_detect_compression_type()
> filetype: add file_detect_fs_type()
> filetype: add function pointer to file_name_detect_type_offset()
> filetype: let cdev_detect_type() only detect filesystems
> filetype: make file type strings optional
> ARM: am33xx: myirtech-myd: add MLO specific device tree
> ARM: am335x_mlo_defconfig: disable file type strings
>
> arch/arm/boards/myirtech-x335x/lowlevel.c | 6 +-
> arch/arm/configs/am335x_mlo_defconfig | 1 +
> arch/arm/dts/Makefile | 2 +-
> arch/arm/dts/am335x-myirtech-myd-mlo.dts | 10 +++
> common/Kconfig | 8 ++
> common/filetype.c | 132 +++++++++++++++++++++---------
> fs/fs.c | 3 +-
> include/filetype.h | 5 +-
> lib/uncompress.c | 4 +-
> 9 files changed, 125 insertions(+), 46 deletions(-)
> ---
> base-commit: a0ba27e06535570e8e4653f5f92a607f8b99022e
> change-id: 20250318-filetype-size-reduction-0cbf74281e2e
>
> Best regards,
> --
> Sascha Hauer <s.hauer at pengutronix.de>
>
>
More information about the barebox
mailing list