I want to package a single file, a special startup script that will eventually wind up in /etc/init.d so that when I build an image it will always be included. I don't want to create a tarball of the file or any extra Makefiles. Right now my package Makefile looks like this:
include $(TOPDIR)/rules.mk
PKG_NAME:=dummy
PKG_VERSION:=2
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define Package/dummy/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/dummy $(1)/etc/init.d/
endef
$(eval $(call BuildPackage,dummy))
Trying to build this either by itself "make package/dummy/install" or linked in to the packages along with a full build fails. I get am getting
ERROR: please fix package/dummy/Makefile
This is caused by the last line calling BuildPackage.
I'm aware of the wiki package page:
http://wiki.openwrt.org/doc/howto/creatingpackages
but it doesn't help in this case. I can't find any example packages either. They all have some sort of tarball associated with them that gets downloaded.
Is there any way to create a package without doing a build and only including files?
Gus