Browse Source

Merge pull request #4828 from ianchi/zip

zip: add host compile
lilik-openwrt-22.03
Hannu Nyman 7 years ago
committed by GitHub
parent
commit
2a57aa4e77
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      utils/zip/Makefile

+ 12
- 0
utils/zip/Makefile View File

@ -21,8 +21,10 @@ PKG_LICENSE:=BSD-4-Clause
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/zip$(PKG_REV)
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)/zip$(PKG_REV)
PKG_CHECK_FORMAT_SECURITY:=0
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
define Package/zip
@ -58,4 +60,14 @@ define Package/zip/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
endef
define Host/Compile
+$(HOST_MAKE_VARS) $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) -I. -f unix/Makefile generic
endef
define Host/Install
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
$(INSTALL_BIN) $(HOST_BUILD_DIR)/zip $(STAGING_DIR_HOSTPKG)/bin/
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,zip))

Loading…
Cancel
Save