source "package/genext2fs/Config.in"
source "package/genpart/Config.in"
source "package/genromfs/Config.in"
+ source "package/imx-usb-loader/Config.in"
source "package/mmc-utils/Config.in"
source "package/mtd/Config.in"
source "package/mtools/Config.in"
--- /dev/null
+config BR2_PACKAGE_IMX_USB_LOADER
+ bool "imx-usb-loader"
+ select BR2_PACKAGE_LIBUSB
+ help
+ This package contains tools to download and execute code
+ on Freescale i.MX5/i.MX6 and Vybrid SoCs through the
+ Serial Download Protocol.
+
+ https://github.com/boundarydevices/imx_usb_loader
IMX_USB_LOADER_SITE = $(call github,boundarydevices,imx_usb_loader,$(IMX_USB_LOADER_VERSION))
IMX_USB_LOADER_LICENSE = LGPL-2.1+
IMX_USB_LOADER_LICENSE_FILES = COPYING
+IMX_USB_LOADER_DEPENDENCIES = libusb host-pkgconf
HOST_IMX_USB_LOADER_DEPENDENCIES = host-libusb host-pkgconf
+define IMX_USB_LOADER_BUILD_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
define HOST_IMX_USB_LOADER_BUILD_CMDS
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef
+define IMX_USB_LOADER_INSTALL_TARGET_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) prefix=$(TARGET_DIR)/usr install
+endef
+
define HOST_IMX_USB_LOADER_INSTALL_CMDS
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) prefix=$(HOST_DIR) install
endef
+$(eval $(generic-package))
$(eval $(host-generic-package))