aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jörg Krause <joerg.krause@embedded.rocks>2016-05-02 13:16:53 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-05-06 15:58:06 +0200
commit0e0ea8cf5e2c57d6b3db0b6a3b36a324d678d7f7 (patch)
treecde85c739268dba6a3246b126748981d0139671d
parent5500211e201f84b6e2ce0dd5ff3013fb92628860 (diff)
downloadbuildroot-0e0ea8cf5e2c57d6b3db0b6a3b36a324d678d7f7.tar.gz
buildroot-0e0ea8cf5e2c57d6b3db0b6a3b36a324d678d7f7.tar.bz2
uboot-tools: install libubootenv to staging
libubootenv is required by swupdate. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> [Thomas: do the installation directly in <pkg>_INSTALL_STAGING_CMDS.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/uboot-tools/uboot-tools.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/uboot-tools/uboot-tools.mk b/package/uboot-tools/uboot-tools.mk
index f47b3db2e0..d1ebd6feee 100644
--- a/package/uboot-tools/uboot-tools.mk
+++ b/package/uboot-tools/uboot-tools.mk
@@ -9,6 +9,7 @@ UBOOT_TOOLS_SOURCE = u-boot-$(UBOOT_TOOLS_VERSION).tar.bz2
UBOOT_TOOLS_SITE = ftp://ftp.denx.de/pub/u-boot
UBOOT_TOOLS_LICENSE = GPLv2+
UBOOT_TOOLS_LICENSE_FILES = Licenses/gpl-2.0.txt
+UBOOT_TOOLS_INSTALL_STAGING = YES
define UBOOT_TOOLS_CONFIGURE_CMDS
mkdir -p $(@D)/include/config
@@ -58,6 +59,14 @@ define UBOOT_TOOLS_INSTALL_DUMPIMAGE
endef
endif
+define UBOOT_TOOLS_INSTALL_LIBUBOOTENV
+endef
+
+define UBOOT_TOOLS_INSTALL_STAGING_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/tools/env/lib.a $(STAGING_DIR)/usr/lib/libubootenv.a
+ $(INSTALL) -D -m 0644 $(@D)/tools/env/fw_env.h $(STAGING_DIR)/usr/include/fw_env.h
+endef
+
define UBOOT_TOOLS_INSTALL_TARGET_CMDS
$(UBOOT_TOOLS_INSTALL_MKIMAGE)
$(UBOOT_TOOLS_INSTALL_MKENVIMAGE)