Hello:
I'm creating a package with several modules.
The package compiles right if the structure is:
- package_name
. Makefile
. files
. src
+ CMakeLists.txt
+ Module1
+ Module2
+ ...
+ Modulen
But if I change the name src by modules it show me errors. I know the default structure search for src directory, but,
what should I add to my Makefile.txt to change default value src to any other one?
My makefile is:
include $(TOPDIR)/rules.mk
PKG_NAME:=emims
PKG_RELEASE:=1
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/emims
SECTION:=emitools
CATEGORY:=Network
DEPENDS:=+libuci +libstdcpp +libcurl
VERSION:=$(PKG_RELEASE)
TITLE:=Software ministation
MAINTAINER:=EMI
endef
define Package/emims/conffiles
/etc/config/riego
endef
define Build/Compile
true
endef
define Package/emims/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/usr/local/bin
$(INSTALL_CONF) ./files/riego.conf $(1)/etc/config/riego
$(INSTALL_BIN) ./files/riego.init $(1)/etc/init.d/riego
$(INSTALL_BIN) $(PKG_BUILD_DIR)/module1 $(1)/usr/local/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/module2 $(1)/usr/local/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/module3 $(1)/usr/local/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/module4 $(1)/usr/local/bin
endef
$(eval $(call BuildPackage,emims))
Thank you