mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
5f2fb52fac
In old days, the "host-progs" syntax was used for specifying host programs. It was renamed to the current "hostprogs-y" in 2004. It is typically useful in scripts/Makefile because it allows Kbuild to selectively compile host programs based on the kernel configuration. This commit renames like follows: always -> always-y hostprogs-y -> hostprogs So, scripts/Makefile will look like this: always-$(CONFIG_BUILD_BIN2C) += ... always-$(CONFIG_KALLSYMS) += ... ... hostprogs := $(always-y) $(always-m) I think this makes more sense because a host program is always a host program, irrespective of the kernel configuration. We want to specify which ones to compile by CONFIG options, so always-y will be handier. The "always", "hostprogs-y", "hostprogs-m" will be kept for backward compatibility for a while. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
# 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
|
|
|
|
hostprogs := pnmtologo
|
|
|
|
# Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..."
|
|
quiet_cmd_logo = LOGO $@
|
|
cmd_logo = $(obj)/pnmtologo -t $(lastword $(subst _, ,$*)) -n $* -o $@ $<
|
|
|
|
$(obj)/%.c: $(src)/%.pbm $(obj)/pnmtologo FORCE
|
|
$(call if_changed,logo)
|
|
|
|
$(obj)/%.c: $(src)/%.ppm $(obj)/pnmtologo FORCE
|
|
$(call if_changed,logo)
|
|
|
|
$(obj)/%.c: $(src)/%.pgm $(obj)/pnmtologo FORCE
|
|
$(call if_changed,logo)
|
|
|
|
# generated C files
|
|
targets += *_mono.c *_vga16.c *_clut224.c *_gray256.c
|