mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
uboot-tools: add option for mkenvimage
The tool mkenvimage generates a valid binary environment image from a text file describing the key=value pairs of the environment. This commit allows installation on target and host. Signed-off-by: Arnaud Rébillout <rebillout@syscom.ch> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
c415c33959
commit
a8694c3cb5
@ -13,6 +13,13 @@ config BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE
|
|||||||
The mkimage tool from Das U-Boot bootloader, which allows
|
The mkimage tool from Das U-Boot bootloader, which allows
|
||||||
generation of U-Boot images in various formats.
|
generation of U-Boot images in various formats.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_UBOOT_TOOLS_MKENVIMAGE
|
||||||
|
bool "mkenvimage"
|
||||||
|
help
|
||||||
|
The mkenvimage tool from Das U-Boot bootloader, which allows
|
||||||
|
generation of a valid binary environment image from a text file
|
||||||
|
describing the key=value pairs of the environment.
|
||||||
|
|
||||||
config BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV
|
config BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV
|
||||||
bool "fw_printenv"
|
bool "fw_printenv"
|
||||||
default y
|
default y
|
||||||
|
@ -24,6 +24,12 @@ define UBOOT_TOOLS_INSTALL_MKIMAGE
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_MKENVIMAGE),y)
|
||||||
|
define UBOOT_TOOLS_INSTALL_MKENVIMAGE
|
||||||
|
$(INSTALL) -m 0755 -D $(@D)/tools/mkenvimage $(TARGET_DIR)/usr/bin/mkenvimage
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV),y)
|
ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV),y)
|
||||||
define UBOOT_TOOLS_INSTALL_FWPRINTENV
|
define UBOOT_TOOLS_INSTALL_FWPRINTENV
|
||||||
$(INSTALL) -m 0755 -D $(@D)/tools/env/fw_printenv $(TARGET_DIR)/usr/sbin/fw_printenv
|
$(INSTALL) -m 0755 -D $(@D)/tools/env/fw_printenv $(TARGET_DIR)/usr/sbin/fw_printenv
|
||||||
@ -33,6 +39,7 @@ endif
|
|||||||
|
|
||||||
define UBOOT_TOOLS_INSTALL_TARGET_CMDS
|
define UBOOT_TOOLS_INSTALL_TARGET_CMDS
|
||||||
$(UBOOT_TOOLS_INSTALL_MKIMAGE)
|
$(UBOOT_TOOLS_INSTALL_MKIMAGE)
|
||||||
|
$(UBOOT_TOOLS_INSTALL_MKENVIMAGE)
|
||||||
$(UBOOT_TOOLS_INSTALL_FWPRINTENV)
|
$(UBOOT_TOOLS_INSTALL_FWPRINTENV)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -51,6 +58,7 @@ endef
|
|||||||
|
|
||||||
define HOST_UBOOT_TOOLS_INSTALL_CMDS
|
define HOST_UBOOT_TOOLS_INSTALL_CMDS
|
||||||
$(INSTALL) -m 0755 -D $(@D)/tools/mkimage $(HOST_DIR)/usr/bin/mkimage
|
$(INSTALL) -m 0755 -D $(@D)/tools/mkimage $(HOST_DIR)/usr/bin/mkimage
|
||||||
|
$(INSTALL) -m 0755 -D $(@D)/tools/mkenvimage $(HOST_DIR)/usr/bin/mkenvimage
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user