aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/logo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/logo/Makefile')
-rw-r--r--drivers/video/logo/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/drivers/video/logo/Makefile b/drivers/video/logo/Makefile
new file mode 100644
index 000000000000..b0d995020bd1
--- /dev/null
+++ b/drivers/video/logo/Makefile
@@ -0,0 +1,54 @@
1# Makefile for the Linux logos
2
3obj-$(CONFIG_LOGO) += logo.o
4obj-$(CONFIG_LOGO_LINUX_MONO) += logo_linux_mono.o
5obj-$(CONFIG_LOGO_LINUX_VGA16) += logo_linux_vga16.o
6obj-$(CONFIG_LOGO_LINUX_CLUT224) += logo_linux_clut224.o
7obj-$(CONFIG_LOGO_DEC_CLUT224) += logo_dec_clut224.o
8obj-$(CONFIG_LOGO_MAC_CLUT224) += logo_mac_clut224.o
9obj-$(CONFIG_LOGO_PARISC_CLUT224) += logo_parisc_clut224.o
10obj-$(CONFIG_LOGO_SGI_CLUT224) += logo_sgi_clut224.o
11obj-$(CONFIG_LOGO_SUN_CLUT224) += logo_sun_clut224.o
12obj-$(CONFIG_LOGO_SUPERH_MONO) += logo_superh_mono.o
13obj-$(CONFIG_LOGO_SUPERH_VGA16) += logo_superh_vga16.o
14obj-$(CONFIG_LOGO_SUPERH_CLUT224) += logo_superh_clut224.o
15
16# How to generate logo's
17
18# Use logo-cfiles to retreive list of .c files to be built
19logo-cfiles = $(notdir $(patsubst %.$(2), %.c, \
20 $(wildcard $(srctree)/$(src)/*$(1).$(2))))
21
22
23# Mono logos
24extra-y += $(call logo-cfiles,_mono,pbm)
25
26# VGA16 logos
27extra-y += $(call logo-cfiles,_vga16,ppm)
28
29# 224 Logos
30extra-y += $(call logo-cfiles,_clut224,ppm)
31
32# Gray 256
33extra-y += $(call logo-cfiles,_gray256,pgm)
34
35# Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..."
36quiet_cmd_logo = LOGO $@
37 cmd_logo = scripts/pnmtologo \
38 -t $(patsubst $*_%,%,$(notdir $(basename $<))) \
39 -n $(notdir $(basename $<)) -o $@ $<
40
41$(obj)/%_mono.c: $(src)/%_mono.pbm FORCE
42 $(call if_changed,logo)
43
44$(obj)/%_vga16.c: $(src)/%_vga16.ppm FORCE
45 $(call if_changed,logo)
46
47$(obj)/%_clut224.c: $(src)/%_clut224.ppm FORCE
48 $(call if_changed,logo)
49
50$(obj)/%_gray256.c: $(src)/%_gray256.pgm FORCE
51 $(call if_changed,logo)
52
53# Files generated that shall be removed upon make clean
54clean-files := *.o *_mono.c *_vga16.c *_clut224.c *_gray256.c