Makefile (2842c1c24269a05142802d25520e7cb9035e456c) Makefile (6bf4ca076f8c7a3c1c5abd1cbb059516f7af15df)
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier: GPL-2.0+
6#
7
8#

--- 46 unchanged lines hidden (view full) ---

55
56hostprogs-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes$(SFX)
57HOSTCFLAGS_xway-swap-bytes$(SFX).o := -pedantic
58
59hostprogs-y += mkenvimage$(SFX)
60mkenvimage$(SFX)-objs := crc32.o mkenvimage.o os_support.o
61
62hostprogs-y += dumpimage$(SFX) mkimage$(SFX)
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier: GPL-2.0+
6#
7
8#

--- 46 unchanged lines hidden (view full) ---

55
56hostprogs-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes$(SFX)
57HOSTCFLAGS_xway-swap-bytes$(SFX).o := -pedantic
58
59hostprogs-y += mkenvimage$(SFX)
60mkenvimage$(SFX)-objs := crc32.o mkenvimage.o os_support.o
61
62hostprogs-y += dumpimage$(SFX) mkimage$(SFX)
63ifdef CONFIG_FIT_SIGNATURE
64hostprogs-y += fit_info$(SFX)
65endif
63
64FIT_SIG_OBJS-$(CONFIG_FIT_SIGNATURE) := image-sig.o
65# Flattened device tree objects
66LIBFDT_OBJS := fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o
67RSA_OBJS-$(CONFIG_FIT_SIGNATURE) := rsa-sign.o
68
69# common objs for dumpimage and mkimage
70dumpimage-mkimage-objs := aisimage.o \
71 $(FIT_SIG_OBJS-y) \
72 crc32.o \
73 default_image.o \
66
67FIT_SIG_OBJS-$(CONFIG_FIT_SIGNATURE) := image-sig.o
68# Flattened device tree objects
69LIBFDT_OBJS := fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o
70RSA_OBJS-$(CONFIG_FIT_SIGNATURE) := rsa-sign.o
71
72# common objs for dumpimage and mkimage
73dumpimage-mkimage-objs := aisimage.o \
74 $(FIT_SIG_OBJS-y) \
75 crc32.o \
76 default_image.o \
77 fdtdec.o \
78 fit_common.o \
74 fit_image.o \
75 image-fit.o \
76 image-host.o \
77 image.o \
78 imagetool.o \
79 imximage.o \
80 kwbimage.o \
81 md5.o \

--- 4 unchanged lines hidden (view full) ---

86 sha1.o \
87 sha256.o \
88 ublimage.o \
89 $(LIBFDT_OBJS) \
90 $(RSA_OBJS-y)
91
92dumpimage$(SFX)-objs := $(dumpimage-mkimage-objs) dumpimage.o
93mkimage$(SFX)-objs := $(dumpimage-mkimage-objs) mkimage.o
79 fit_image.o \
80 image-fit.o \
81 image-host.o \
82 image.o \
83 imagetool.o \
84 imximage.o \
85 kwbimage.o \
86 md5.o \

--- 4 unchanged lines hidden (view full) ---

91 sha1.o \
92 sha256.o \
93 ublimage.o \
94 $(LIBFDT_OBJS) \
95 $(RSA_OBJS-y)
96
97dumpimage$(SFX)-objs := $(dumpimage-mkimage-objs) dumpimage.o
98mkimage$(SFX)-objs := $(dumpimage-mkimage-objs) mkimage.o
99fit_info$(SFX)-objs := $(dumpimage-mkimage-objs) fit_info.o
94
95# TODO(sjg@chromium.org): Is this correct on Mac OS?
96
97# MXSImage needs LibSSL
98ifneq ($(CONFIG_MX23)$(CONFIG_MX28),)
99HOSTLOADLIBES_dumpimage$(SFX) := -lssl -lcrypto
100HOSTLOADLIBES_mkimage$(SFX) := -lssl -lcrypto
100
101# TODO(sjg@chromium.org): Is this correct on Mac OS?
102
103# MXSImage needs LibSSL
104ifneq ($(CONFIG_MX23)$(CONFIG_MX28),)
105HOSTLOADLIBES_dumpimage$(SFX) := -lssl -lcrypto
106HOSTLOADLIBES_mkimage$(SFX) := -lssl -lcrypto
107HOSTLOADLIBES_fit_info$(SFX) := -lssl -lcrypto
101# Add CONFIG_MXS into host CFLAGS, so we can check whether or not register
102# the mxsimage support within tools/mxsimage.c .
103HOSTCFLAGS_mxsimage.o += -DCONFIG_MXS
104endif
105
106ifdef CONFIG_FIT_SIGNATURE
107HOSTLOADLIBES_dumpimage$(SFX) := -lssl -lcrypto
108HOSTLOADLIBES_mkimage$(SFX) := -lssl -lcrypto
108# Add CONFIG_MXS into host CFLAGS, so we can check whether or not register
109# the mxsimage support within tools/mxsimage.c .
110HOSTCFLAGS_mxsimage.o += -DCONFIG_MXS
111endif
112
113ifdef CONFIG_FIT_SIGNATURE
114HOSTLOADLIBES_dumpimage$(SFX) := -lssl -lcrypto
115HOSTLOADLIBES_mkimage$(SFX) := -lssl -lcrypto
116HOSTLOADLIBES_fit_info$(SFX) := -lssl -lcrypto
109
110# This affects include/image.h, but including the board config file
111# is tricky, so manually define this options here.
112HOST_EXTRACFLAGS += -DCONFIG_FIT_SIGNATURE
113endif
114
115hostprogs-$(CONFIG_EXYNOS5250) += mkexynosspl$(SFX)
116hostprogs-$(CONFIG_EXYNOS5420) += mkexynosspl$(SFX)

--- 90 unchanged lines hidden ---
117
118# This affects include/image.h, but including the board config file
119# is tricky, so manually define this options here.
120HOST_EXTRACFLAGS += -DCONFIG_FIT_SIGNATURE
121endif
122
123hostprogs-$(CONFIG_EXYNOS5250) += mkexynosspl$(SFX)
124hostprogs-$(CONFIG_EXYNOS5420) += mkexynosspl$(SFX)

--- 90 unchanged lines hidden ---