Hello All,

I am having difficulty installing a package, and hoped someone here
might see where I have made my mistake. The package is simply to copy
over a shell script and a corresponding LuCI page.

Below you will find the Makefile, the error received upon calling make,
and for installing as a lone package, as well as the file tree within
the package.

Thanks!

##################################################


# OpenWRT Makefile for Commotion De-Bugging Helper


##################################################



include $(TOPDIR)/rules.mk

MODULE_NAME:=commotion
MODULE_TITLE:=Commotion

PKG_NAME:=$(MODULE_NAME)-debug-helper
PKG_VERSION:=1
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/$(MODULE_NAME)-debug-helper
  SECTION:=commotion
  CATEGORY:=Commotion
  TITLE:=Commotion De-Bugging Helper
  DEPENDS:=+commotionbase
  URL:=http://commotionwireless.net/
endef

define Build/Prepare
    mkdir -p $(PKG_BUILD_DIR)
endef

define Package/$(MODULE_NAME)-debug-helper/description
    Commotion debugging data collection helper. Includes a LuCI user
interface.
endef

define Package/$(MODULE_NAME)-debug-helper/install
    $(INSTALL_DIR) $(1)/usr/sbin/
    $(CP) -a ./src/cdh.sh $(1)/usr/sbin/ 2>/dev/null || true
    $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller/$(MODULE_NAME)/
    $(CP) -a ./luasrc/controller/*
$(1)/usr/lib/lua/luci/controller/$(MODULE_NAME)/ 2>/dev/null  || true
    $(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/$(MODULE_NAME)
    $(CP) -a ./luasrc/view/* $(1)/usr/lib/lua/luci/view/ 2>/dev/null || true
endef

$(eval $(call BuildPackage,$(MODULE_NAME)-debug-helper))



********************************************************************

When I run the full make it fails on this error:

make[4]: Entering directory
`/home/s2e/repos/commotion-openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33/commotion-debug-helper-1'

make[4]: *** No targets specified and no makefile found.  Stop.
make[4]: Leaving directory
`/home/s2e/repos/commotion-openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33/commotion-debug-helper-1'

make[3]: ***
[/home/s2e/repos/commotion-openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33/commotion-debug-helper-1/.built]
Error 2
make[3]: Leaving directory
`/home/s2e/repos/commotion-openwrt/commotionfeed/commotion-debug-helper'
make[2]: *** [package/feeds/commotion/commotion-debug-helper/compile]
Error 2
make[2]: Leaving directory `/home/s2e/repos/commotion-openwrt/openwrt'
make[1]: ***
[/home/s2e/repos/commotion-openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33/stamp/.package_compile]
Error 2
make[1]: Leaving directory `/home/s2e/repos/commotion-openwrt/openwrt'
make: *** [world] Error 2

*********************************************************************
When I run "make package/commotion-debug-helper/install V=s" it returns
this:

make[1]: Entering directory `/home/s2e/repos/commotion-openwrt/openwrt'
make[2]: Entering directory
`/home/s2e/repos/commotion-openwrt/commotionfeed/commotion-debug-helper'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory
`/home/s2e/repos/commotion-openwrt/commotionfeed/commotion-debug-helper'
make[1]: Leaving directory `/home/s2e/repos/commotion-openwrt/openwrt'

***********************************************************************

The installation tree looks like this:

commotion-debug-helper
├── luasrc
│   ├── controller
│   │   └── debugger.lua
│   └── view
│       └── debugger.htm
├── Makefile
└── src
    └── cdh.sh

_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to