tools/mkimage: copy mkenvimage to bin directory
authorEvgeniy Didin <[email protected]>
Mon, 12 Feb 2018 16:42:01 +0000 (19:42 +0300)
committerJohn Crispin <[email protected]>
Tue, 13 Feb 2018 09:01:52 +0000 (10:01 +0100)
For some boards u-boot binary environment file is required,
which is generated by mkenvimage utility. But in OpenWrt there
is no separate support for mkenvimage, which is a part of u-boot tools.
mkenvimage gets built in u-boot/tools as well as mkimage anyways.

So lets just copy mkenvimage to the $(STAGING_DIR_HOST)/bin/ directory.

Signed-off-by: Evgeniy Didin <[email protected]>
CC: Alexey Brodkin <[email protected]>
CC: Hauke Mehrtens <[email protected]>
CC: John Crispin <[email protected]>
tools/mkimage/Makefile

index bfe60993e27093888858df70dbf3201ad8f8f578..00f85ae27263a22ec226cd6a89b3f983f88d19d9 100644 (file)
@@ -37,10 +37,12 @@ endef
 
 define Host/Install
        $(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
+       $(CP) $(HOST_BUILD_DIR)/tools/mkenvimage $(STAGING_DIR_HOST)/bin/
 endef
 
 define Host/Clean
        rm -f $(STAGING_DIR_HOST)/bin/mkimage
+       rm -f $(STAGING_DIR_HOST)/bin/mkenvimage
 endef
 
 $(eval $(call HostBuild))