mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
tools: mkimage: Makefile sorted
The tools/Makefile is sorted for all entries, Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
This commit is contained in:
parent
f7644c0bf3
commit
14821d7dea
1 changed files with 32 additions and 32 deletions
|
@ -66,8 +66,8 @@ endif
|
|||
include $(TOPDIR)/config.mk
|
||||
|
||||
# Generated executable files
|
||||
BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX)
|
||||
BIN_FILES-y += mkimage$(SFX)
|
||||
BIN_FILES-$(CONFIG_LCD_LOGO) += bmp_logo$(SFX)
|
||||
BIN_FILES-$(CONFIG_VIDEO_LOGO) += bmp_logo$(SFX)
|
||||
BIN_FILES-$(CONFIG_ENV_IS_EMBEDDED) += envcrc$(SFX)
|
||||
BIN_FILES-$(CONFIG_ENV_IS_IN_DATAFLASH) += envcrc$(SFX)
|
||||
BIN_FILES-$(CONFIG_ENV_IS_IN_EEPROM) += envcrc$(SFX)
|
||||
|
@ -76,31 +76,31 @@ BIN_FILES-$(CONFIG_ENV_IS_IN_ONENAND) += envcrc$(SFX)
|
|||
BIN_FILES-$(CONFIG_ENV_IS_IN_NAND) += envcrc$(SFX)
|
||||
BIN_FILES-$(CONFIG_ENV_IS_IN_NVRAM) += envcrc$(SFX)
|
||||
BIN_FILES-$(CONFIG_ENV_IS_IN_SPI_FLASH) += envcrc$(SFX)
|
||||
BIN_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1$(SFX)
|
||||
BIN_FILES-$(CONFIG_CMD_NET) += gen_eth_addr$(SFX)
|
||||
BIN_FILES-$(CONFIG_LCD_LOGO) += bmp_logo$(SFX)
|
||||
BIN_FILES-$(CONFIG_VIDEO_LOGO) += bmp_logo$(SFX)
|
||||
BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX)
|
||||
BIN_FILES-$(CONFIG_INCA_IP) += inca-swap-bytes$(SFX)
|
||||
BIN_FILES-y += mkimage$(SFX)
|
||||
BIN_FILES-$(CONFIG_NETCONSOLE) += ncb$(SFX)
|
||||
BIN_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1$(SFX)
|
||||
|
||||
# Source files which exist outside the tools directory
|
||||
EXT_OBJ_FILES-y += common/env_embedded.o
|
||||
EXT_OBJ_FILES-y += common/image.o
|
||||
EXT_OBJ_FILES-y += lib_generic/crc32.o
|
||||
EXT_OBJ_FILES-y += lib_generic/md5.o
|
||||
EXT_OBJ_FILES-y += lib_generic/sha1.o
|
||||
EXT_OBJ_FILES-y += common/image.o
|
||||
|
||||
# Source files located in the tools directory
|
||||
OBJ_FILES-$(CONFIG_CMD_LOADS) += img2srec.o
|
||||
OBJ_FILES-y += mkimage.o
|
||||
OBJ_FILES-$(CONFIG_ENV_IS_EMBEDDED) += envcrc.o
|
||||
OBJ_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1.o
|
||||
OBJ_FILES-$(CONFIG_CMD_NET) += gen_eth_addr.o
|
||||
OBJ_FILES-$(CONFIG_LCD_LOGO) += bmp_logo.o
|
||||
OBJ_FILES-$(CONFIG_VIDEO_LOGO) += bmp_logo.o
|
||||
OBJ_FILES-$(CONFIG_ENV_IS_EMBEDDED) += envcrc.o
|
||||
OBJ_FILES-$(CONFIG_CMD_NET) += gen_eth_addr.o
|
||||
OBJ_FILES-$(CONFIG_CMD_LOADS) += img2srec.o
|
||||
OBJ_FILES-$(CONFIG_INCA_IP) += inca-swap-bytes.o
|
||||
OBJ_FILES-y += mkimage.o
|
||||
OBJ_FILES-$(CONFIG_NETCONSOLE) += ncb.o
|
||||
OBJ_FILES-y += os_support.o
|
||||
OBJ_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1.o
|
||||
|
||||
# Don't build by default
|
||||
#ifeq ($(ARCH),ppc)
|
||||
|
@ -160,26 +160,7 @@ MAKEDEPEND = makedepend
|
|||
|
||||
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 $@ $^
|
||||
|
||||
$(obj)ubsha1$(SFX): $(obj)ubsha1.o $(obj)sha1.o $(obj)os_support.o
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
|
||||
$(obj)img2srec$(SFX): $(obj)img2srec.o
|
||||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
$(obj)mkimage$(SFX): $(obj)mkimage.o $(obj)crc32.o $(obj)image.o $(obj)md5.o \
|
||||
$(obj)sha1.o $(LIBFDT_OBJS) $(obj)os_support.o
|
||||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
$(obj)ncb$(SFX): $(obj)ncb.o
|
||||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
$(obj)gen_eth_addr$(SFX): $(obj)gen_eth_addr.o
|
||||
$(obj)bin2header$(SFX): $(obj)bin2header.o
|
||||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
|
@ -187,18 +168,37 @@ $(obj)bmp_logo$(SFX): $(obj)bmp_logo.o
|
|||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
$(obj)envcrc$(SFX): $(obj)crc32.o $(obj)env_embedded.o $(obj)envcrc.o $(obj)sha1.o
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
|
||||
$(obj)gen_eth_addr$(SFX): $(obj)gen_eth_addr.o
|
||||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
$(obj)img2srec$(SFX): $(obj)img2srec.o
|
||||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
$(obj)inca-swap-bytes$(SFX): $(obj)inca-swap-bytes.o
|
||||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
$(obj)mkimage$(SFX): $(obj)crc32.o $(obj)mkimage.o $(obj)image.o $(obj)md5.o $(obj)mkimage.o \
|
||||
$(obj)os_support.o $(obj)sha1.o $(LIBFDT_OBJS)
|
||||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
$(obj)mpc86x_clk$(SFX): $(obj)mpc86x_clk.o
|
||||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
$(obj)bin2header$(SFX): $(obj)bin2header.o
|
||||
$(obj)ncb$(SFX): $(obj)ncb.o
|
||||
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
|
||||
$(STRIP) $@
|
||||
|
||||
$(obj)ubsha1$(SFX): $(obj)os_support.o $(obj)sha1.o $(obj)ubsha1.o
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
|
||||
# Some files complain if compiled with -pedantic, use FIT_CFLAGS
|
||||
$(obj)image.o: $(SRCTREE)/common/image.c
|
||||
$(CC) -g $(FIT_CFLAGS) -c -o $@ $<
|
||||
|
|
Loading…
Reference in a new issue