mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
imx-usb-loader: allow building the target variant
Having imx-usb-loader on the target might be useful when you're building a system that itself will be responsible for booting/flashing i.MX based devices. Signed-off-by: Vincent Prince <vincent.prince.fr@gmail.com> [Thomas: - improve commit log - fix indentation - drop BR2_arm dependency - add missing host-pkgconf dependency - fix prefix variable to install in $(TARGET_DIR)/usr] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
ae7e5960a3
commit
430ac89548
@ -188,6 +188,7 @@ menu "Filesystem and flash utilities"
|
|||||||
source "package/genext2fs/Config.in"
|
source "package/genext2fs/Config.in"
|
||||||
source "package/genpart/Config.in"
|
source "package/genpart/Config.in"
|
||||||
source "package/genromfs/Config.in"
|
source "package/genromfs/Config.in"
|
||||||
|
source "package/imx-usb-loader/Config.in"
|
||||||
source "package/mmc-utils/Config.in"
|
source "package/mmc-utils/Config.in"
|
||||||
source "package/mtd/Config.in"
|
source "package/mtd/Config.in"
|
||||||
source "package/mtools/Config.in"
|
source "package/mtools/Config.in"
|
||||||
|
9
package/imx-usb-loader/Config.in
Normal file
9
package/imx-usb-loader/Config.in
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
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
|
@ -8,14 +8,24 @@ IMX_USB_LOADER_VERSION = 7e77787c83288a421080a9bf2f67063931f561be
|
|||||||
IMX_USB_LOADER_SITE = $(call github,boundarydevices,imx_usb_loader,$(IMX_USB_LOADER_VERSION))
|
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 = LGPL-2.1+
|
||||||
IMX_USB_LOADER_LICENSE_FILES = COPYING
|
IMX_USB_LOADER_LICENSE_FILES = COPYING
|
||||||
|
IMX_USB_LOADER_DEPENDENCIES = libusb host-pkgconf
|
||||||
HOST_IMX_USB_LOADER_DEPENDENCIES = host-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
|
define HOST_IMX_USB_LOADER_BUILD_CMDS
|
||||||
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||||
endef
|
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
|
define HOST_IMX_USB_LOADER_INSTALL_CMDS
|
||||||
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) prefix=$(HOST_DIR) install
|
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) prefix=$(HOST_DIR) install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
$(eval $(generic-package))
|
||||||
$(eval $(host-generic-package))
|
$(eval $(host-generic-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user