summaryrefslogtreecommitdiffstats
path: root/scripts/imx/Makefile
blob: 029f9ca9f8af487e7a625ec16f30f655d4619229 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
hostprogs-always-$(CONFIG_ARCH_IMX_IMXIMAGE)	+= imx-image
hostprogs-always-$(CONFIG_ARCH_IMX_USBLOADER)	+= imx-usb-loader

HOSTCFLAGS_imx-usb-loader.o = `pkg-config --cflags libusb-1.0`
HOSTLDLIBS_imx-usb-loader  = `pkg-config --libs libusb-1.0`

HOSTCFLAGS_imx.o = -I$(srctree)/arch/arm/mach-imx/include
HOSTCFLAGS_imx-image.o = -I$(srctree) -I$(srctree)/arch/arm/mach-imx/include
HOSTCFLAGS_imx-usb-loader.o += -I$(srctree) -I$(srctree)/arch/arm/mach-imx/include
ifdef CONFIG_ARCH_IMX_IMXIMAGE_SSL_SUPPORT
HOSTCFLAGS_imx-image.o += -DIMXIMAGE_SSL_SUPPORT
HOSTLDLIBS_imx-image  = `pkg-config --libs openssl`
endif

imx-usb-loader-objs := imx-usb-loader.o imx.o
imx-image-objs := imx-image.o imx.o