summaryrefslogtreecommitdiffstats
path: root/drivers/video/logo/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:02:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:02:30 +0000
commit76cb841cb886eef6b3bee341a2266c76578724ad (patch)
treef5892e5ba6cc11949952a6ce4ecbe6d516d6ce58 /drivers/video/logo/Makefile
parentInitial commit. (diff)
downloadlinux-upstream.tar.xz
linux-upstream.zip
Adding upstream version 4.19.249.upstream/4.19.249upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'drivers/video/logo/Makefile')
-rw-r--r--drivers/video/logo/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/drivers/video/logo/Makefile b/drivers/video/logo/Makefile
new file mode 100644
index 000000000..228a89b9b
--- /dev/null
+++ b/drivers/video/logo/Makefile
@@ -0,0 +1,59 @@
+# SPDX-License-Identifier: GPL-2.0
+# Makefile for the Linux logos
+
+obj-$(CONFIG_LOGO) += logo.o
+obj-$(CONFIG_LOGO_LINUX_MONO) += logo_linux_mono.o
+obj-$(CONFIG_LOGO_LINUX_VGA16) += logo_linux_vga16.o
+obj-$(CONFIG_LOGO_LINUX_CLUT224) += logo_linux_clut224.o
+obj-$(CONFIG_LOGO_DEC_CLUT224) += logo_dec_clut224.o
+obj-$(CONFIG_LOGO_MAC_CLUT224) += logo_mac_clut224.o
+obj-$(CONFIG_LOGO_PARISC_CLUT224) += logo_parisc_clut224.o
+obj-$(CONFIG_LOGO_SGI_CLUT224) += logo_sgi_clut224.o
+obj-$(CONFIG_LOGO_SUN_CLUT224) += logo_sun_clut224.o
+obj-$(CONFIG_LOGO_SUPERH_MONO) += logo_superh_mono.o
+obj-$(CONFIG_LOGO_SUPERH_VGA16) += logo_superh_vga16.o
+obj-$(CONFIG_LOGO_SUPERH_CLUT224) += logo_superh_clut224.o
+
+obj-$(CONFIG_SPU_BASE) += logo_spe_clut224.o
+
+# How to generate logo's
+
+# Use logo-cfiles to retrieve list of .c files to be built
+logo-cfiles = $(notdir $(patsubst %.$(2), %.c, \
+ $(wildcard $(srctree)/$(src)/*$(1).$(2))))
+
+
+# Mono logos
+extra-y += $(call logo-cfiles,_mono,pbm)
+
+# VGA16 logos
+extra-y += $(call logo-cfiles,_vga16,ppm)
+
+# 224 Logos
+extra-y += $(call logo-cfiles,_clut224,ppm)
+
+# Gray 256
+extra-y += $(call logo-cfiles,_gray256,pgm)
+
+pnmtologo := scripts/pnmtologo
+
+# Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..."
+quiet_cmd_logo = LOGO $@
+ cmd_logo = $(pnmtologo) \
+ -t $(patsubst $*_%,%,$(notdir $(basename $<))) \
+ -n $(notdir $(basename $<)) -o $@ $<
+
+$(obj)/%_mono.c: $(src)/%_mono.pbm $(pnmtologo) FORCE
+ $(call if_changed,logo)
+
+$(obj)/%_vga16.c: $(src)/%_vga16.ppm $(pnmtologo) FORCE
+ $(call if_changed,logo)
+
+$(obj)/%_clut224.c: $(src)/%_clut224.ppm $(pnmtologo) FORCE
+ $(call if_changed,logo)
+
+$(obj)/%_gray256.c: $(src)/%_gray256.pgm $(pnmtologo) FORCE
+ $(call if_changed,logo)
+
+# Files generated that shall be removed upon make clean
+clean-files := *.o *_mono.c *_vga16.c *_clut224.c *_gray256.c