diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2009-03-13 18:54:35 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-04-04 01:11:12 +0200 |
commit | 335ffe7e0e0a30e90ce409c3279016a582157d8e (patch) | |
tree | b16f6b5726bef09d6f85bc300e79dc6a78ffcb9f /tools/Makefile | |
parent | ee3584a5970230ee96aae19505ad3226734ee4ff (diff) | |
download | u-boot-imx-335ffe7e0e0a30e90ce409c3279016a582157d8e.zip u-boot-imx-335ffe7e0e0a30e90ce409c3279016a582157d8e.tar.gz u-boot-imx-335ffe7e0e0a30e90ce409c3279016a582157d8e.tar.bz2 |
tools/Makefile: Build bmp_logo only when LCD or VIDEO logos are enabled
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/Makefile b/tools/Makefile index 14da78d..3c59bba 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -78,7 +78,8 @@ BIN_FILES-y += mkimage$(SFX) BIN_FILES-y += envcrc$(SFX) BIN_FILES-y += ubsha1$(SFX) BIN_FILES-y += gen_eth_addr$(SFX) -BIN_FILES-y += bmp_logo$(SFX) +BIN_FILES-$(CONFIG_LCD_LOGO) += bmp_logo$(SFX) +BIN_FILES-$(CONFIG_VIDEO_LOGO) += bmp_logo$(SFX) # Source files which are symlinked from elsewhere in U-Boot OBJ_LINKS-y += env_embedded.o @@ -92,7 +93,8 @@ OBJ_FILES-y += mkimage.o OBJ_FILES-y += envcrc.o OBJ_FILES-y += ubsha1.o OBJ_FILES-y += gen_eth_addr.o -OBJ_FILES-y += bmp_logo.o +OBJ_FILES-$(CONFIG_LCD_LOGO) += bmp_logo.o +OBJ_FILES-$(CONFIG_VIDEO_LOGO) += bmp_logo.o ifeq ($(ARCH),mips) BIN_FILES-y += inca-swap-bytes$(SFX) @@ -112,7 +114,10 @@ LIBFDT_OBJ_FILES-y += fdt_rw.o LIBFDT_OBJ_FILES-y += fdt_strerror.o LIBFDT_OBJ_FILES-y += fdt_wip.o +# Generated LCD/video logo LOGO_H = $(OBJTREE)/include/bmp_logo.h +LOGO-$(CONFIG_LCD_LOGO) += $(LOGO_H) +LOGO-$(CONFIG_VIDEO_LOGO) += $(LOGO_H) ifeq ($(LOGO_BMP),) LOGO_BMP= logos/denx.bmp @@ -143,7 +148,7 @@ CC = $(HOSTCC) STRIP = $(HOSTSTRIP) MAKEDEPEND = makedepend -all: $(obj).depend $(BINS) $(LOGO_H) subdirs +all: $(obj).depend $(BINS) $(LOGO-y) subdirs $(obj)envcrc$(SFX): $(obj)envcrc.o $(obj)crc32.o $(obj)env_embedded.o $(obj)sha1.o $(CC) $(CFLAGS) -o $@ $^ |