2007-07-05 16:01:13 +00:00
|
|
|
###
|
|
|
|
# scripts contains sources for various helper programs used throughout
|
2013-09-26 05:38:00 +00:00
|
|
|
# barebox for the build process.
|
2007-07-05 16:01:13 +00:00
|
|
|
# ---------------------------------------------------------------------------
|
2009-12-15 08:11:09 +00:00
|
|
|
# kallsyms: Find all symbols in barebox
|
2007-07-05 16:01:13 +00:00
|
|
|
|
2007-07-05 16:01:52 +00:00
|
|
|
hostprogs-y += bin2c
|
2007-09-21 11:55:04 +00:00
|
|
|
hostprogs-y += mkimage
|
2013-09-14 12:27:18 +00:00
|
|
|
hostprogs-y += fix_size
|
2009-12-15 08:11:09 +00:00
|
|
|
hostprogs-y += bareboxenv
|
2013-12-03 23:06:38 +00:00
|
|
|
hostprogs-y += bareboxcrc32
|
2013-09-15 08:09:23 +00:00
|
|
|
hostprogs-y += kernel-install
|
2014-07-28 05:22:40 +00:00
|
|
|
hostprogs-$(CONFIG_IMD) += bareboximd
|
2013-09-26 05:38:00 +00:00
|
|
|
hostprogs-$(CONFIG_KALLSYMS) += kallsyms
|
2013-05-09 09:52:46 +00:00
|
|
|
hostprogs-$(CONFIG_ARCH_MVEBU) += kwbimage kwboot
|
2007-09-05 10:58:41 +00:00
|
|
|
hostprogs-$(CONFIG_ARCH_NETX) += gen_netx_image
|
2014-09-24 10:03:44 +00:00
|
|
|
hostprogs-$(CONFIG_ARCH_OMAP) += omap_signGP mk-omap-image
|
2012-05-18 09:43:28 +00:00
|
|
|
hostprogs-$(CONFIG_ARCH_S5PCxx) += s5p_cksum
|
2012-06-28 14:52:17 +00:00
|
|
|
hostprogs-$(CONFIG_ARCH_DAVINCI) += mkublheader
|
2013-03-26 09:11:25 +00:00
|
|
|
hostprogs-$(CONFIG_ARCH_ZYNQ) += zynq_mkimage
|
2013-09-11 10:01:00 +00:00
|
|
|
hostprogs-$(CONFIG_ARCH_SOCFPGA) += socfpga_mkimage
|
2014-12-09 16:07:16 +00:00
|
|
|
hostprogs-$(CONFIG_ARCH_MXS) += mxsimage mxsboot
|
2014-12-04 13:43:52 +00:00
|
|
|
HOSTLOADLIBES_mxsimage = `pkg-config --libs openssl`
|
2014-12-09 17:26:52 +00:00
|
|
|
HOSTCFLAGS_mxs-usb-loader.o = `pkg-config --cflags libusb-1.0`
|
|
|
|
HOSTLOADLIBES_mxs-usb-loader = `pkg-config --libs libusb-1.0`
|
|
|
|
hostprogs-$(CONFIG_ARCH_MXS_USBLOADER) += mxs-usb-loader
|
2015-06-24 12:25:10 +00:00
|
|
|
HOSTCFLAGS_omap3-usb-loader.o = `pkg-config --cflags libusb-1.0`
|
|
|
|
HOSTLOADLIBES_omap3-usb-loader = `pkg-config --libs libusb-1.0`
|
|
|
|
hostprogs-$(CONFIG_OMAP3_USB_LOADER) += omap3-usb-loader
|
2013-09-26 05:38:00 +00:00
|
|
|
|
|
|
|
subdir-y += mod
|
2013-09-26 06:01:21 +00:00
|
|
|
subdir-$(CONFIG_OMAP4_USBBOOT) += omap4_usbboot
|
2013-09-26 05:38:00 +00:00
|
|
|
subdir-$(CONFIG_ARCH_IMX) += imx
|
|
|
|
subdir-$(CONFIG_X86) += setupmbr
|
|
|
|
subdir-$(CONFIG_DTC) += dtc
|
2014-05-14 20:45:43 +00:00
|
|
|
subdir-$(CONFIG_ARCH_TEGRA) += tegra
|
2013-09-26 05:38:00 +00:00
|
|
|
|
2013-09-26 05:53:11 +00:00
|
|
|
targetprogs-$(CONFIG_BAREBOXENV_TARGET) += bareboxenv-target
|
2013-11-19 01:08:12 +00:00
|
|
|
targetprogs-$(CONFIG_KERNEL_INSTALL_TARGET) += kernel-install-target
|
2013-12-03 23:06:38 +00:00
|
|
|
targetprogs-$(CONFIG_BAREBOXCRC32_TARGET) += bareboxcrc32-target
|
2014-07-28 05:22:40 +00:00
|
|
|
targetprogs-$(CONFIG_IMD_TARGET) += bareboximd-target
|
2007-07-05 16:01:13 +00:00
|
|
|
|
|
|
|
# Let clean descend into subdirs
|
2010-01-12 10:15:35 +00:00
|
|
|
subdir- += basic kconfig setupmbr
|
2012-03-07 11:14:05 +00:00
|
|
|
|
|
|
|
quiet_cmd_csingle = CC $@
|
|
|
|
cmd_csingle = $(CC) -Wp,-MD,$(depfile) $(CFLAGS) -o $@ $<
|
|
|
|
|
2013-09-26 05:53:11 +00:00
|
|
|
__targetprogs := $(sort $(targetprogs-y) $(targetprogs-m))
|
|
|
|
target-csingle := $(foreach m,$(__targetprogs),$(if $($(m)-objs),,$(m)))
|
|
|
|
__targetprogs := $(addprefix $(obj)/,$(__targetprogs))
|
|
|
|
target-csingle := $(addprefix $(obj)/,$(target-csingle))
|
2012-03-07 11:14:05 +00:00
|
|
|
|
2013-09-26 05:53:11 +00:00
|
|
|
always := $(hostprogs-y) $(hostprogs-m) $(targetprogs-y)
|
2013-03-05 23:01:22 +00:00
|
|
|
|
2013-09-26 05:53:11 +00:00
|
|
|
$(target-csingle): %-target: %.c FORCE
|
|
|
|
$(call if_changed_dep,csingle)
|