2002-07-20 20:14:13 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2000-2006
|
2002-07-20 20:14:13 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-07-20 20:14:13 +00:00
|
|
|
#
|
|
|
|
|
2012-10-06 14:04:58 +00:00
|
|
|
TOOLSUBDIRS = kernel-doc
|
2002-07-20 20:14:13 +00:00
|
|
|
|
2010-10-30 15:42:00 +00:00
|
|
|
#
|
|
|
|
# Include this after HOSTOS HOSTARCH check
|
|
|
|
# so that we can act intelligently.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2002-07-20 20:14:13 +00:00
|
|
|
#
|
2009-03-13 23:54:51 +00:00
|
|
|
# toolchains targeting win32 generate .exe files
|
2002-07-20 20:14:13 +00:00
|
|
|
#
|
2009-03-13 23:54:51 +00:00
|
|
|
ifneq (,$(findstring WIN32 ,$(shell $(HOSTCC) -E -dM -xc /dev/null)))
|
2002-07-20 20:14:13 +00:00
|
|
|
SFX = .exe
|
|
|
|
else
|
|
|
|
SFX =
|
|
|
|
endif
|
|
|
|
|
2010-01-21 09:03:22 +00:00
|
|
|
# Enable all the config-independent tools
|
|
|
|
ifneq ($(HOST_TOOLS_ALL),)
|
|
|
|
CONFIG_LCD_LOGO = y
|
2010-08-15 04:03:19 +00:00
|
|
|
CONFIG_CMD_LOADS = y
|
2010-01-21 09:03:22 +00:00
|
|
|
CONFIG_CMD_NET = y
|
2011-07-27 11:22:36 +00:00
|
|
|
CONFIG_XWAY_SWAP_BYTES = y
|
2010-01-21 09:03:22 +00:00
|
|
|
CONFIG_NETCONSOLE = y
|
|
|
|
CONFIG_SHA1_CHECK_UB_IMG = y
|
|
|
|
endif
|
|
|
|
|
2011-06-19 08:27:39 +00:00
|
|
|
# Merge all the different vars for envcrc into one
|
|
|
|
ENVCRC-$(CONFIG_ENV_IS_EMBEDDED) = y
|
|
|
|
ENVCRC-$(CONFIG_ENV_IS_IN_DATAFLASH) = y
|
|
|
|
ENVCRC-$(CONFIG_ENV_IS_IN_EEPROM) = y
|
|
|
|
ENVCRC-$(CONFIG_ENV_IS_IN_FLASH) = y
|
|
|
|
ENVCRC-$(CONFIG_ENV_IS_IN_ONENAND) = y
|
|
|
|
ENVCRC-$(CONFIG_ENV_IS_IN_NAND) = y
|
|
|
|
ENVCRC-$(CONFIG_ENV_IS_IN_NVRAM) = y
|
|
|
|
ENVCRC-$(CONFIG_ENV_IS_IN_SPI_FLASH) = y
|
|
|
|
CONFIG_BUILD_ENVCRC ?= $(ENVCRC-y)
|
|
|
|
|
2009-03-13 23:54:34 +00:00
|
|
|
# Generated executable files
|
2009-08-10 15:14:06 +00:00
|
|
|
BIN_FILES-$(CONFIG_LCD_LOGO) += bmp_logo$(SFX)
|
|
|
|
BIN_FILES-$(CONFIG_VIDEO_LOGO) += bmp_logo$(SFX)
|
2011-06-19 08:27:39 +00:00
|
|
|
BIN_FILES-$(CONFIG_BUILD_ENVCRC) += envcrc$(SFX)
|
2009-03-13 23:54:40 +00:00
|
|
|
BIN_FILES-$(CONFIG_CMD_NET) += gen_eth_addr$(SFX)
|
2009-08-10 15:14:06 +00:00
|
|
|
BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX)
|
2011-07-27 11:22:36 +00:00
|
|
|
BIN_FILES-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes$(SFX)
|
2011-09-26 03:26:34 +00:00
|
|
|
BIN_FILES-y += mkenvimage$(SFX)
|
2009-08-10 15:14:06 +00:00
|
|
|
BIN_FILES-y += mkimage$(SFX)
|
2013-07-25 12:58:52 +00:00
|
|
|
BIN_FILES-$(CONFIG_EXYNOS5250) += mk$(BOARD)spl$(SFX)
|
2013-01-11 03:19:13 +00:00
|
|
|
BIN_FILES-$(CONFIG_MX23) += mxsboot$(SFX)
|
2011-11-08 23:18:18 +00:00
|
|
|
BIN_FILES-$(CONFIG_MX28) += mxsboot$(SFX)
|
2009-03-13 23:54:41 +00:00
|
|
|
BIN_FILES-$(CONFIG_NETCONSOLE) += ncb$(SFX)
|
2009-08-10 15:14:06 +00:00
|
|
|
BIN_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1$(SFX)
|
2012-05-27 11:44:51 +00:00
|
|
|
BIN_FILES-$(CONFIG_KIRKWOOD) += kwboot$(SFX)
|
2013-06-11 18:14:43 +00:00
|
|
|
BIN_FILES-y += proftool(SFX)
|
2009-03-13 23:54:34 +00:00
|
|
|
|
2009-03-13 23:54:47 +00:00
|
|
|
# Source files which exist outside the tools directory
|
2011-06-19 08:27:39 +00:00
|
|
|
EXT_OBJ_FILES-$(CONFIG_BUILD_ENVCRC) += common/env_embedded.o
|
2009-08-10 15:14:06 +00:00
|
|
|
EXT_OBJ_FILES-y += common/image.o
|
2013-05-07 06:11:53 +00:00
|
|
|
EXT_OBJ_FILES-$(CONFIG_FIT) += common/image-fit.o
|
2013-06-13 22:10:00 +00:00
|
|
|
EXT_OBJ_FILES-y += common/image-sig.o
|
2010-04-13 03:28:05 +00:00
|
|
|
EXT_OBJ_FILES-y += lib/crc32.o
|
|
|
|
EXT_OBJ_FILES-y += lib/md5.o
|
|
|
|
EXT_OBJ_FILES-y += lib/sha1.o
|
2009-03-13 23:54:34 +00:00
|
|
|
|
|
|
|
# Source files located in the tools directory
|
2013-08-26 18:43:34 +00:00
|
|
|
NOPED_OBJ_FILES-y += aisimage.o
|
2009-11-05 00:41:41 +00:00
|
|
|
NOPED_OBJ_FILES-y += default_image.o
|
|
|
|
NOPED_OBJ_FILES-y += fit_image.o
|
2013-05-07 06:11:54 +00:00
|
|
|
NOPED_OBJ_FILES-y += image-host.o
|
2013-08-26 18:43:34 +00:00
|
|
|
NOPED_OBJ_FILES-y += imximage.o
|
|
|
|
NOPED_OBJ_FILES-y += kwbimage.o
|
2011-09-26 03:26:34 +00:00
|
|
|
NOPED_OBJ_FILES-y += mkenvimage.o
|
2009-11-05 00:41:41 +00:00
|
|
|
NOPED_OBJ_FILES-y += mkimage.o
|
2013-08-26 18:43:34 +00:00
|
|
|
NOPED_OBJ_FILES-y += mxsimage.o
|
|
|
|
NOPED_OBJ_FILES-y += omapimage.o
|
|
|
|
NOPED_OBJ_FILES-y += os_support.o
|
|
|
|
NOPED_OBJ_FILES-y += pblimage.o
|
|
|
|
NOPED_OBJ_FILES-y += proftool.o
|
|
|
|
NOPED_OBJ_FILES-y += ublimage.o
|
|
|
|
OBJ_FILES-$(CONFIG_BUILD_ENVCRC) += envcrc.o
|
|
|
|
OBJ_FILES-$(CONFIG_CMD_LOADS) += img2srec.o
|
|
|
|
OBJ_FILES-$(CONFIG_CMD_NET) += gen_eth_addr.o
|
2013-07-25 12:58:52 +00:00
|
|
|
OBJ_FILES-$(CONFIG_EXYNOS5250) += mkexynosspl.o
|
2013-08-26 18:43:34 +00:00
|
|
|
OBJ_FILES-$(CONFIG_KIRKWOOD) += kwboot.o
|
|
|
|
OBJ_FILES-$(CONFIG_LCD_LOGO) += bmp_logo.o
|
2013-01-11 03:19:13 +00:00
|
|
|
OBJ_FILES-$(CONFIG_MX23) += mxsboot.o
|
2011-11-08 23:18:18 +00:00
|
|
|
OBJ_FILES-$(CONFIG_MX28) += mxsboot.o
|
2009-03-13 23:54:41 +00:00
|
|
|
OBJ_FILES-$(CONFIG_NETCONSOLE) += ncb.o
|
2009-08-10 15:14:06 +00:00
|
|
|
OBJ_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1.o
|
2013-08-26 18:43:34 +00:00
|
|
|
OBJ_FILES-$(CONFIG_SMDK5250) += mkexynosspl.o
|
|
|
|
OBJ_FILES-$(CONFIG_VIDEO_LOGO) += bmp_logo.o
|
|
|
|
OBJ_FILES-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes.o
|
2009-03-13 23:54:34 +00:00
|
|
|
|
|
|
|
# Don't build by default
|
|
|
|
#ifeq ($(ARCH),ppc)
|
|
|
|
#BIN_FILES-y += mpc86x_clk$(SFX)
|
|
|
|
#OBJ_FILES-y += mpc86x_clk.o
|
|
|
|
#endif
|
|
|
|
|
|
|
|
# Flattened device tree objects
|
|
|
|
LIBFDT_OBJ_FILES-y += fdt.o
|
|
|
|
LIBFDT_OBJ_FILES-y += fdt_ro.o
|
|
|
|
LIBFDT_OBJ_FILES-y += fdt_rw.o
|
|
|
|
LIBFDT_OBJ_FILES-y += fdt_strerror.o
|
|
|
|
LIBFDT_OBJ_FILES-y += fdt_wip.o
|
|
|
|
|
2013-06-13 22:10:02 +00:00
|
|
|
# RSA objects
|
2013-06-27 17:43:18 +00:00
|
|
|
RSA_OBJ_FILES-$(CONFIG_FIT_SIGNATURE) += rsa-sign.o
|
2013-06-13 22:10:02 +00:00
|
|
|
|
2009-03-13 23:54:35 +00:00
|
|
|
# Generated LCD/video logo
|
2009-03-13 23:54:34 +00:00
|
|
|
LOGO_H = $(OBJTREE)/include/bmp_logo.h
|
2011-10-20 23:04:20 +00:00
|
|
|
LOGO_DATA_H = $(OBJTREE)/include/bmp_logo_data.h
|
2009-03-13 23:54:35 +00:00
|
|
|
LOGO-$(CONFIG_LCD_LOGO) += $(LOGO_H)
|
2011-10-20 23:04:20 +00:00
|
|
|
LOGO-$(CONFIG_LCD_LOGO) += $(LOGO_DATA_H)
|
2009-03-13 23:54:35 +00:00
|
|
|
LOGO-$(CONFIG_VIDEO_LOGO) += $(LOGO_H)
|
2011-10-20 23:04:20 +00:00
|
|
|
LOGO-$(CONFIG_VIDEO_LOGO) += $(LOGO_DATA_H)
|
2009-03-13 23:54:34 +00:00
|
|
|
|
2013-05-27 12:18:43 +00:00
|
|
|
# Generic logo
|
2009-03-13 23:54:34 +00:00
|
|
|
ifeq ($(LOGO_BMP),)
|
|
|
|
LOGO_BMP= logos/denx.bmp
|
2013-05-27 12:18:43 +00:00
|
|
|
|
|
|
|
# Use board logo and fallback to vendor
|
|
|
|
ifneq ($(wildcard logos/$(BOARD).bmp),)
|
|
|
|
LOGO_BMP= logos/$(BOARD).bmp
|
|
|
|
else
|
|
|
|
ifneq ($(wildcard logos/$(VENDOR).bmp),)
|
|
|
|
LOGO_BMP= logos/$(VENDOR).bmp
|
2009-03-13 23:54:34 +00:00
|
|
|
endif
|
2011-07-16 10:26:50 +00:00
|
|
|
endif
|
2009-03-13 23:54:34 +00:00
|
|
|
|
2013-05-27 12:18:43 +00:00
|
|
|
endif # !LOGO_BMP
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
# now $(obj) is defined
|
2009-11-05 00:41:41 +00:00
|
|
|
HOSTSRCS += $(addprefix $(SRCTREE)/,$(EXT_OBJ_FILES-y:.o=.c))
|
|
|
|
HOSTSRCS += $(addprefix $(SRCTREE)/tools/,$(OBJ_FILES-y:.o=.c))
|
2010-04-13 03:28:06 +00:00
|
|
|
HOSTSRCS += $(addprefix $(SRCTREE)/lib/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c))
|
2013-06-13 22:10:02 +00:00
|
|
|
HOSTSRCS += $(addprefix $(SRCTREE)/lib/rsa/,$(RSA_OBJ_FILES-y:.o=.c))
|
2009-04-04 14:10:40 +00:00
|
|
|
BINS := $(addprefix $(obj),$(sort $(BIN_FILES-y)))
|
2009-03-13 23:54:34 +00:00
|
|
|
LIBFDT_OBJS := $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y))
|
2013-06-13 22:10:02 +00:00
|
|
|
RSA_OBJS := $(addprefix $(obj),$(RSA_OBJ_FILES-y))
|
2006-09-01 17:49:50 +00:00
|
|
|
|
2013-06-13 22:10:00 +00:00
|
|
|
# We cannot check CONFIG_FIT_SIGNATURE here since it is not set on the host
|
|
|
|
FIT_SIG_OBJ_FILES := image-sig.o
|
|
|
|
FIT_SIG_OBJS := $(addprefix $(obj),$(FIT_SIG_OBJ_FILES))
|
|
|
|
|
2009-11-05 00:41:41 +00:00
|
|
|
HOSTOBJS := $(addprefix $(obj),$(OBJ_FILES-y))
|
|
|
|
NOPEDOBJS := $(addprefix $(obj),$(NOPED_OBJ_FILES-y))
|
|
|
|
|
2002-07-20 20:14:13 +00:00
|
|
|
#
|
|
|
|
# Use native tools and options
|
2009-03-13 23:54:51 +00:00
|
|
|
# Define __KERNEL_STRICT_NAMES to prevent typedef overlaps
|
2013-07-30 22:26:11 +00:00
|
|
|
# Define _GNU_SOURCE to obtain the getline prototype from stdio.h
|
2002-07-20 20:14:13 +00:00
|
|
|
#
|
2013-03-11 06:30:27 +00:00
|
|
|
HOSTCPPFLAGS = -include $(SRCTREE)/include/libfdt_env.h \
|
|
|
|
-idirafter $(SRCTREE)/include \
|
2006-09-01 17:49:50 +00:00
|
|
|
-idirafter $(OBJTREE)/include2 \
|
|
|
|
-idirafter $(OBJTREE)/include \
|
2010-04-13 03:28:06 +00:00
|
|
|
-I $(SRCTREE)/lib/libfdt \
|
2009-03-13 23:54:42 +00:00
|
|
|
-I $(SRCTREE)/tools \
|
2010-10-07 19:51:12 +00:00
|
|
|
-DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) \
|
|
|
|
-DUSE_HOSTCC \
|
2013-07-30 22:26:11 +00:00
|
|
|
-D__KERNEL_STRICT_NAMES \
|
|
|
|
-D_GNU_SOURCE
|
2008-02-29 15:00:24 +00:00
|
|
|
|
2002-07-20 20:14:13 +00:00
|
|
|
|
2009-03-13 23:54:35 +00:00
|
|
|
all: $(obj).depend $(BINS) $(LOGO-y) subdirs
|
2002-07-20 20:14:13 +00:00
|
|
|
|
2009-08-10 15:14:06 +00:00
|
|
|
$(obj)bin2header$(SFX): $(obj)bin2header.o
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
2002-07-20 20:14:13 +00:00
|
|
|
|
2009-08-10 15:14:06 +00:00
|
|
|
$(obj)bmp_logo$(SFX): $(obj)bmp_logo.o
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
2002-07-20 20:14:13 +00:00
|
|
|
|
2013-06-11 18:14:43 +00:00
|
|
|
$(obj)proftool(SFX): $(obj)proftool.o
|
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
|
|
|
|
2009-08-10 15:14:06 +00:00
|
|
|
$(obj)envcrc$(SFX): $(obj)crc32.o $(obj)env_embedded.o $(obj)envcrc.o $(obj)sha1.o
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
2004-09-08 22:03:11 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
$(obj)gen_eth_addr$(SFX): $(obj)gen_eth_addr.o
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
2002-07-20 20:14:13 +00:00
|
|
|
|
2009-08-10 15:14:06 +00:00
|
|
|
$(obj)img2srec$(SFX): $(obj)img2srec.o
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
2002-07-20 20:14:13 +00:00
|
|
|
|
2011-07-27 11:22:36 +00:00
|
|
|
$(obj)xway-swap-bytes$(SFX): $(obj)xway-swap-bytes.o
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
2003-04-05 00:53:31 +00:00
|
|
|
|
2012-07-07 10:05:06 +00:00
|
|
|
$(obj)mkenvimage$(SFX): $(obj)crc32.o $(obj)mkenvimage.o \
|
|
|
|
$(obj)os_support.o
|
2011-09-26 03:26:34 +00:00
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
2011-11-23 10:28:10 +00:00
|
|
|
$(HOSTSTRIP) $@
|
2011-09-26 03:26:34 +00:00
|
|
|
|
2011-10-17 00:07:43 +00:00
|
|
|
$(obj)mkimage$(SFX): $(obj)aisimage.o \
|
2013-08-26 18:43:34 +00:00
|
|
|
$(FIT_SIG_OBJS) \
|
2011-10-17 00:07:43 +00:00
|
|
|
$(obj)crc32.o \
|
2009-08-19 12:06:46 +00:00
|
|
|
$(obj)default_image.o \
|
|
|
|
$(obj)fit_image.o \
|
2013-05-07 06:11:53 +00:00
|
|
|
$(obj)image-fit.o \
|
2013-05-07 06:11:54 +00:00
|
|
|
$(obj)image-host.o \
|
2013-08-26 18:43:34 +00:00
|
|
|
$(obj)image.o \
|
2010-01-20 17:19:10 +00:00
|
|
|
$(obj)imximage.o \
|
2009-09-07 09:35:02 +00:00
|
|
|
$(obj)kwbimage.o \
|
2009-08-19 12:06:46 +00:00
|
|
|
$(obj)md5.o \
|
|
|
|
$(obj)mkimage.o \
|
2013-08-26 18:43:34 +00:00
|
|
|
$(obj)mxsimage.o \
|
2011-07-21 13:10:30 +00:00
|
|
|
$(obj)omapimage.o \
|
2013-08-26 18:43:34 +00:00
|
|
|
$(obj)os_support.o \
|
|
|
|
$(obj)pblimage.o \
|
2009-08-19 12:06:46 +00:00
|
|
|
$(obj)sha1.o \
|
2011-07-16 00:06:42 +00:00
|
|
|
$(obj)ublimage.o \
|
2013-06-13 22:10:02 +00:00
|
|
|
$(LIBFDT_OBJS) \
|
|
|
|
$(RSA_OBJS)
|
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTLIBS)
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTSTRIP) $@
|
2009-08-10 15:14:06 +00:00
|
|
|
|
2012-02-05 23:01:48 +00:00
|
|
|
$(obj)mk$(BOARD)spl$(SFX): $(obj)mkexynosspl.o
|
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
$(obj)mpc86x_clk$(SFX): $(obj)mpc86x_clk.o
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
2011-11-08 23:18:18 +00:00
|
|
|
|
|
|
|
$(obj)mxsboot$(SFX): $(obj)mxsboot.o
|
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
2003-10-08 22:14:02 +00:00
|
|
|
|
2009-08-10 15:14:06 +00:00
|
|
|
$(obj)ncb$(SFX): $(obj)ncb.o
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
2008-07-09 14:30:30 +00:00
|
|
|
|
2009-08-10 15:14:06 +00:00
|
|
|
$(obj)ubsha1$(SFX): $(obj)os_support.o $(obj)sha1.o $(obj)ubsha1.o
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
2009-03-13 23:54:51 +00:00
|
|
|
|
2012-05-27 11:44:51 +00:00
|
|
|
$(obj)kwboot$(SFX): $(obj)kwboot.o
|
|
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(HOSTSTRIP) $@
|
|
|
|
|
2009-03-13 23:54:49 +00:00
|
|
|
# Some of the tool objects need to be accessed from outside the tools directory
|
2011-05-13 11:36:32 +00:00
|
|
|
$(obj)%.o: $(SRCTREE)/common/%.c
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
|
2008-02-29 15:00:24 +00:00
|
|
|
|
2011-05-13 11:36:32 +00:00
|
|
|
$(obj)%.o: $(SRCTREE)/lib/%.c
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) -g $(HOSTCFLAGS) -c -o $@ $<
|
2008-02-29 15:00:24 +00:00
|
|
|
|
2010-04-13 03:28:06 +00:00
|
|
|
$(obj)%.o: $(SRCTREE)/lib/libfdt/%.c
|
2009-11-05 00:41:41 +00:00
|
|
|
$(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
|
2008-02-29 15:00:24 +00:00
|
|
|
|
2013-06-13 22:10:02 +00:00
|
|
|
$(obj)%.o: $(SRCTREE)/lib/rsa/%.c
|
|
|
|
$(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
|
|
|
|
|
2002-07-20 20:14:13 +00:00
|
|
|
subdirs:
|
2003-08-17 18:55:18 +00:00
|
|
|
ifeq ($(TOOLSUBDIRS),)
|
2009-03-13 23:54:33 +00:00
|
|
|
@:
|
2003-08-17 18:55:18 +00:00
|
|
|
else
|
2009-03-13 23:54:33 +00:00
|
|
|
@for dir in $(TOOLSUBDIRS) ; do \
|
|
|
|
$(MAKE) \
|
|
|
|
HOSTOS=$(HOSTOS) \
|
|
|
|
HOSTARCH=$(HOSTARCH) \
|
|
|
|
-C $$dir || exit 1 ; \
|
|
|
|
done
|
2003-08-17 18:55:18 +00:00
|
|
|
endif
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
$(LOGO_H): $(obj)bmp_logo $(LOGO_BMP)
|
2011-10-20 23:04:20 +00:00
|
|
|
$(obj)./bmp_logo --gen-info $(LOGO_BMP) > $@
|
|
|
|
|
|
|
|
$(LOGO_DATA_H): $(obj)bmp_logo $(LOGO_BMP)
|
|
|
|
$(obj)./bmp_logo --gen-data $(LOGO_BMP) > $@
|
2002-07-20 20:14:13 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2002-07-20 20:14:13 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
sinclude $(obj).depend
|
2002-07-20 20:14:13 +00:00
|
|
|
|
|
|
|
#########################################################################
|