Hi, I am trying to integrate a package in openwrt style. Unlike other make files for my package, I have nothing to compile [no make step], i just want to copy .bin, .so, and .h files to their respected target locations [ headers to $(1) /../include and remaining inside $(1)].
When I try to compile the package, it is reporting an error like this :
Package XXXX is missing dependencies for the following libraries:
libc.so.0
libdl.so.0
libpthread.so.0
Note: Headers are being copied to its location (1)/../include [Instruction in install step]
If my package is having anything to compile and if it throws this error, I can add in DEPENDS section but in this case have no clue about this error can anyone please give some pointers on this, that might help.
Thanks in advance.
I have removed some parts, I think i'm not sure if i can post as it is ,
include $(TOPDIR)/rules.mk
PKG_NAME:=ABC
PKG_VERSION:=1
PKG_RELEASE:=1
PKG_LICENSE:=CC0-1.0
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
V54_DIR := $(TOPDIR)/../video54
ABC_LIB_INSTALL_DIR = $(TARGET_DIR)/usr/lib
ABC_TMP_DIR = $(TARGET_DIR)/tmp/dpi/ABC/lib
ABC_ROOT_LIB_DIR = $(TARGET_DIR)/lib/dpi
ABC_INC_INSTALL_DIR = $(TARGET_DIR)/../include
ABC_SRC_DIR = $(V54_DIR)/lib/ABC/i386
ABC_INC_DIR = $(V54_DIR)/lib/ABC/i386/include
define Package/$(PKG_NAME)
SECTION:=
CATEGORY:=Video54
TITLE:=ABC
DEPENDS:=
SUBMENU:=Libraries
endef
define Package/$(PKG_NAME)/description
library.
endef
define Build/Prepare
cp -af $(ABC_SRC_DIR)/* $(PKG_BUILD_DIR)/
cp -af $(ABC_INC_DIR)/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/lib/dpi
$(INSTALL_DIR) $(1)/../include
$(INSTALL_DIR) $(1)/tmp/dpi/ABC/lib
$(INSTALL_BIN) $(ABC_SRC_DIR)/*.bin $(1)/lib/dpi
$(INSTALL_BIN) $(ABC_SRC_DIR)/*.so $(1)/lib/dpi
$(INSTALL_BIN) $(ABC_SRC_DIR)/signatures.pdb* $(1)/lib/dpi
$(INSTALL_BIN) $(ABC_INC_DIR)/*.h $(TARGET_DIR)/../include
$(INSTALL_BIN) $(ABC_INC_DIR)/dpi/*.h $(TARGET_DIR)/../include
$(INSTALL_BIN) $(ABC_INC_DIR)/dpi/ctl/*.h $(TARGET_DIR)/../include
$(INSTALL_BIN) $(ABC_SRC_DIR)/*.so $(1)/tmp/dpi/ABC/lib
endef
$(eval $(call BuildPackage,$(PKG_NAME)))