# SPDX-License-Identifier: GPL-2.0-only

menuconfig BAREBOX_LOGO
	bool "include barebox logos in build"
	depends on IMAGE_RENDERER
	help
	  Say yes here to build the barebox logos. This adds ImageMagick's
	  convert tool to the build dependencies. The logo can be found under
	  /logo/barebox-logo-<width>.<ext> in the running barebox.

if BAREBOX_LOGO

choice
	prompt "Logo image encoding format to be used"
	default BAREBOX_LOGO_PNG

config BAREBOX_LOGO_PNG
	bool "png"
	select PNG
	help
	  Encode logo with the PNG image format

config BAREBOX_LOGO_BMP
	bool "bmp"
	select BMP
	help
	  Encode logo with the BMP image format

config BAREBOX_LOGO_QOI
	bool "qoi"
	select QOI
	select QOICONV
	help
	  Encode logo with the QOI image format

endchoice

config BAREBOX_LOGO_64
	bool "include 64x32 pixel logo"

config BAREBOX_LOGO_240
	bool "include 240x120 pixel logo"

config BAREBOX_LOGO_320
	bool "include 320x160 pixel logo"

config BAREBOX_LOGO_400
	bool "include 400x200 pixel logo"

config BAREBOX_LOGO_640
	bool "include 640x320 pixel logo"

endif # BAREBOX_LOGO
