I have a git repo with Python scripts and want to add it as a package
to OpenWrt. So far I had defined  only define "Package/foo/install",
but OpenWrt tries to compile it and fails as it doesn't find any
Makefile. Should I create an dummy Makefile or is there any elegant
solution?

......
PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/vsscripts
  SECTION:=utils
  CATEGORY:=Utilities
  DEPENDS:=+python
  TITLE:=VScom Scripts
  URL:=www.vscom.de
endef

define Package/vsscripts/description
  VScom Scripts like onriscinfo.py, checkimg.py etc.
endef

define Package/vsscripts/install
        $(INSTALL_DIR) $(1)/sbin
        $(CP) $(PKG_INSTALL_DIR)/sbin/onriscinfo.py $(1)/sbin/
        $(CP) $(PKG_INSTALL_DIR)/sbin/checkimg.py $(1)/sbin/
endef
$(eval $(call BuildPackage,vsscripts))


Yegor
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to