提交 a53c9d5b 编写于 作者: S Sam Ravnborg 提交者: Linus Torvalds

fbdev: generated logo sources depend on scripts/pnmtologo

The generated logo sources are not automatically regenerated if
scripts/pnmtologo.c has changed. Add the missing dependency to fix this.
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
Tested-by: NGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 8f3128e7
...@@ -37,22 +37,24 @@ extra-y += $(call logo-cfiles,_clut224,ppm) ...@@ -37,22 +37,24 @@ extra-y += $(call logo-cfiles,_clut224,ppm)
# Gray 256 # Gray 256
extra-y += $(call logo-cfiles,_gray256,pgm) extra-y += $(call logo-cfiles,_gray256,pgm)
pnmtologo := scripts/pnmtologo
# Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..." # Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..."
quiet_cmd_logo = LOGO $@ quiet_cmd_logo = LOGO $@
cmd_logo = scripts/pnmtologo \ cmd_logo = $(pnmtologo) \
-t $(patsubst $*_%,%,$(notdir $(basename $<))) \ -t $(patsubst $*_%,%,$(notdir $(basename $<))) \
-n $(notdir $(basename $<)) -o $@ $< -n $(notdir $(basename $<)) -o $@ $<
$(obj)/%_mono.c: $(src)/%_mono.pbm FORCE $(obj)/%_mono.c: $(src)/%_mono.pbm $(pnmtologo) FORCE
$(call if_changed,logo) $(call if_changed,logo)
$(obj)/%_vga16.c: $(src)/%_vga16.ppm FORCE $(obj)/%_vga16.c: $(src)/%_vga16.ppm $(pnmtologo) FORCE
$(call if_changed,logo) $(call if_changed,logo)
$(obj)/%_clut224.c: $(src)/%_clut224.ppm FORCE $(obj)/%_clut224.c: $(src)/%_clut224.ppm $(pnmtologo) FORCE
$(call if_changed,logo) $(call if_changed,logo)
$(obj)/%_gray256.c: $(src)/%_gray256.pgm FORCE $(obj)/%_gray256.c: $(src)/%_gray256.pgm $(pnmtologo) FORCE
$(call if_changed,logo) $(call if_changed,logo)
# Files generated that shall be removed upon make clean # Files generated that shall be removed upon make clean
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册