]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: make BPP and ANSI configs optional
authorAnatolij Gustschin <agust@denx.de>
Wed, 4 Dec 2019 14:48:54 +0000 (15:48 +0100)
committerAnatolij Gustschin <agust@denx.de>
Fri, 6 Dec 2019 15:38:51 +0000 (16:38 +0100)
commit2cc393f32fd9ffcf47f4877e8d1345a7981a0d02
tree49565c0cfbcd5135553fd35cc588f92dadd4bc0e
parentca5655d8006cfbaa4ff8ff450e4a5931e57fe050
video: make BPP and ANSI configs optional

Many boards do not use all selected framebuffer depth
configurations, for such boards there is some unused
code in video and console uclass routines. Make depth
specific code optional to avoid dead code and slightly
reduce binary size. Also make ANSI code optional for
the same reason. When i.e. using only VIDEO_BPP16 the
code size shrinks (below values when using gcc-7.3.0):

  $ ./tools/buildman/buildman -b video-wip -sS wandboard
  ...
  01: Merge git://git.denx.de/u-boot-sh
  02: video: add guards around 16bpp/32bbp code
  03: video: make BPP and ANSI configs optional
         arm: (for 1/1 boards) all -776.0 bss -8.0 text -768.0

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Eugen Hristev <eugen.hristev@microchip.com>
Tested-by: Patrice Chotard <patrice.chotard@st.com>
Tested-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
105 files changed:
configs/apalis_imx6_defconfig
configs/at91sam9x5ek_dataflash_defconfig
configs/at91sam9x5ek_mmc_defconfig
configs/at91sam9x5ek_nandflash_defconfig
configs/at91sam9x5ek_spiflash_defconfig
configs/chromebit_mickey_defconfig
configs/chromebook_jerry_defconfig
configs/chromebook_minnie_defconfig
configs/chromebook_speedy_defconfig
configs/colibri-imx6ull_defconfig
configs/colibri_imx6_defconfig
configs/colibri_imx7_defconfig
configs/colibri_imx7_emmc_defconfig
configs/colibri_t20_defconfig
configs/colibri_vf_defconfig
configs/evb-px30_defconfig
configs/evb-rk3288_defconfig
configs/evb-rk3399_defconfig
configs/firefly-rk3288_defconfig
configs/gazerbeam_defconfig
configs/ge_bx50v3_defconfig
configs/gurnard_defconfig
configs/harmony_defconfig
configs/imx6dl_icore_nand_defconfig
configs/imx6q_icore_nand_defconfig
configs/imx6qdl_icore_mmc_defconfig
configs/imx6qdl_icore_nand_defconfig
configs/libretech-ac_defconfig
configs/libretech-cc_defconfig
configs/m53menlo_defconfig
configs/medcom-wide_defconfig
configs/miqi-rk3288_defconfig
configs/mx53cx9020_defconfig
configs/mx6sabreauto_defconfig
configs/mx6sabresd_defconfig
configs/mx6ul_14x14_evk_defconfig
configs/mx6ul_9x9_evk_defconfig
configs/novena_defconfig
configs/nyan-big_defconfig
configs/opos6uldev_defconfig
configs/paz00_defconfig
configs/peach-pi_defconfig
configs/peach-pit_defconfig
configs/pico-dwarf-imx7d_defconfig
configs/pico-hobbit-imx7d_defconfig
configs/pico-imx7d_bl33_defconfig
configs/pico-imx7d_defconfig
configs/pico-nymph-imx7d_defconfig
configs/pico-pi-imx7d_defconfig
configs/pm9261_defconfig
configs/pm9263_defconfig
configs/puma-rk3399_defconfig
configs/rock2_defconfig
configs/rpi_0_w_defconfig
configs/rpi_2_defconfig
configs/rpi_3_32b_defconfig
configs/rpi_3_b_plus_defconfig
configs/rpi_3_defconfig
configs/rpi_4_32b_defconfig
configs/rpi_4_defconfig
configs/rpi_arm64_defconfig
configs/rpi_defconfig
configs/sama5d27_som1_ek_mmc1_defconfig
configs/sama5d27_som1_ek_mmc_defconfig
configs/sama5d27_som1_ek_qspiflash_defconfig
configs/sama5d27_wlsom1_ek_mmc_defconfig
configs/sama5d27_wlsom1_ek_qspiflash_defconfig
configs/sama5d2_xplained_emmc_defconfig
configs/sama5d2_xplained_mmc_defconfig
configs/sama5d2_xplained_qspiflash_defconfig
configs/sama5d2_xplained_spiflash_defconfig
configs/sama5d36ek_cmp_mmc_defconfig
configs/sama5d36ek_cmp_nandflash_defconfig
configs/sama5d36ek_cmp_spiflash_defconfig
configs/sama5d3xek_mmc_defconfig
configs/sama5d3xek_nandflash_defconfig
configs/sama5d3xek_spiflash_defconfig
configs/sama5d4_xplained_mmc_defconfig
configs/sama5d4_xplained_nandflash_defconfig
configs/sama5d4_xplained_spiflash_defconfig
configs/sama5d4ek_mmc_defconfig
configs/sama5d4ek_nandflash_defconfig
configs/sama5d4ek_spiflash_defconfig
configs/sandbox64_defconfig
configs/sandbox_defconfig
configs/sandbox_flattree_defconfig
configs/sandbox_spl_defconfig
configs/seaboard_defconfig
configs/sei510_defconfig
configs/sei610_defconfig
configs/snow_defconfig
configs/spring_defconfig
configs/stm32f746-disco_defconfig
configs/stm32f769-disco_defconfig
configs/stm32mp15_basic_defconfig
configs/stm32mp15_optee_defconfig
configs/stm32mp15_trusted_defconfig
configs/tec_defconfig
configs/theadorable_debug_defconfig
configs/tinker-s-rk3288_defconfig
configs/ventana_defconfig
configs/vyasa-rk3288_defconfig
configs/wandboard_defconfig
drivers/video/Kconfig
drivers/video/console_normal.c