aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Kamel Bouhara <kamel.bouhara@bootlin.com>2020-07-06 17:34:06 +0200
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-07-07 22:58:39 +0200
commitc5b5b5ccabe35e11f0ca8db4361bb3f335fc59fb (patch)
treec647aae765dea0906166e8500013e1fe1ac42cb0
parent6a3893e44114df4e5d066731e4a3a8c7f4b988c8 (diff)
downloadbuildroot-c5b5b5ccabe35e11f0ca8db4361bb3f335fc59fb.tar.gz
buildroot-c5b5b5ccabe35e11f0ca8db4361bb3f335fc59fb.tar.bz2
package/zip: install to staging
Install header files and libraries into the staging area. Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/zip/zip.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/zip/zip.mk b/package/zip/zip.mk
index ca52c74fb1..c78efedc25 100644
--- a/package/zip/zip.mk
+++ b/package/zip/zip.mk
@@ -10,6 +10,7 @@ ZIP_SOURCE = zip$(subst .,,$(ZIP_VERSION)).tgz
ZIP_SITE = ftp://ftp.info-zip.org/pub/infozip/src
ZIP_LICENSE = Info-ZIP
ZIP_LICENSE_FILES = LICENSE
+ZIP_INSTALL_STAGING = YES
ifeq ($(BR2_PACKAGE_BZIP2),y)
ZIP_DEPENDENCIES += bzip2
@@ -39,6 +40,11 @@ define ZIP_INSTALL_TARGET_CMDS
prefix=$(TARGET_DIR)/usr
endef
+define ZIP_INSTALLING_STAGING_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install \
+ prefix=$(STAGING_DIR)/usr
+endef
+
define HOST_ZIP_BUILD_CMDS
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) \
CFLAGS="$(HOST_CFLAGS) $(ZIP_CFLAGS)" \