Dear Sir.
My env is see below
openWRT : 14.07
This time i'm try to add new package to my buildroot.
new package name is "tpm-tools".
First, I'm create "tpm-tools" directory and Makefile.
Second, I'm build the this package. All compile is done.
Next, I'm try to install, But occured fail.
Error message is see below.
Package tpm-tools is missing dependencies for the following libraries:
libiconv.so.2
My Makefile is see below
include $(TOPDIR)/rules.mk
PKG_NAME:=tpm-tools
PKG_VERSION:=1.3.8
PKG_RELEASE:=
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SRC_DIR:=$(TOPDIR)/package/nexg/tpm-tools/src
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
TARGET_LDFLAGS += \
-L$(STAGING_DIR)/usr/lib/libiconv-full/lib -ltspi -lcrypto -lssl -liconv
CONFIGURE_ARGS += \
LDFLAGS="-L$(STAGING_DIR)/usr/lib/libiconv-full/lib -ltspi -lcrypto -lssl -liconv"
define Package/tpm-tools/Default
SECTION:=nexg
CATEGORY:=NEXG
TITLE:=tpm-tools
DEPENDS:=+trousers
URL:=nexg.net
endef
# tmp/.config-package.in 을 자동 생성하는데 사용된다.
# help 항목으로 저장됨.
define Package/tpm-tools/Default/description
This is just sample for "How to add new project to buildroot"
endef
# tmp/.config-package.in 생성과정에서 필요한 정보를 정의한 "Package/trousers/Default" 를 호출해준다.
define Package/tpm-tools
$(call Package/tpm-tools/Default)
endef
# 소스 설치등의 컴파일 이전에 필요한 내용을 준비합니다.
define Build/Prepare
@echo "[S]=========================================="
@echo "[package/nexg/tpm-tools] : Build/Prepare"
(mkdir -p $(PKG_BUILD_DIR); cd $(PKG_BUILD_DIR); lndir $(PKG_SRC_DIR))
@echo "[E] Build/Prepare===================="
endef
define Package/tpm-tools/install
echo "BABO"
$(INSTALL_DIR) $(1)/usr
$(CP) $(PKG_INSTALL_DIR)/usr/bin $(1)/usr/
$(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
$(CP) $(PKG_INSTALL_DIR)/usr/man $(1)/usr/
$(CP) $(PKG_INSTALL_DIR)/usr/sbin $(1)/usr/
endef
define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/usr $(STAGING_DIR)/
endef
$(eval $(call BuildPackage,tpm-tools))
Please review the my Makefile and advise to me.
Thank you