Hi,
I'm trying to create a new package with a GIT source target. I've followed the instructions on the wiki and have had success pulling the project off github, however, the makefile for the github project is not in the root directory, its in the subdirectory <git project root>/src/CMakeLists.txt. When I compile I get this error:
CMake Error: The source directory "/home/<user>/openwrt/build_dir/target-mipsel_24kec+dsp_glibc-2.21/test-1.0/" does not appear to contain CMakeLists.txt.
How do I tell tell the OpenWrt build to begin the build at /home/<user>/openwrt/build_dir/target-mipsel_24kec+dsp_glibc-2.21/test-1.0/src
My OpenWrt makefile is below:
Thanks
include $(TOPDIR)/rules.mk
PKG_NAME:=test
PKG_VERSION:=1.0
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git@github.com:<my github>/openwrt_package_test.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
PKG_SOURCE_VERSION:=HEAD
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/test
SECTION:=base
CATEGORY:=Custom
TITLE:=A test package
endef
define Package/test/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/test $(1)/usr/sbin
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/test.init $(1)/etc/init.d/test
endef
$(eval $(call BuildPackage,test))
(Last edited by mskeff on 20 Apr 2016, 22:33)