Iam new to openwrt i want to create my own package when iam compiling my package with make clean && make
iam getting this kind of errors
make package/compile
make[1]: Entering directory `/home/shiva/OpenWrt-SDK-Linux-i686-1'
Collecting package info...
make -C package compile SDK=1
make[2]: Entering directory `/home/shiva/OpenWrt-SDK-Linux-i686-1/package'
make[2]: Leaving directory `/home/shiva/OpenWrt-SDK-Linux-i686-1/package'
make[2]: Entering directory `/home/shiva/OpenWrt-SDK-Linux-i686-1/package'
make[4] -C package compile-targets
make[5] -C package/kpe compile
Build failed. Please re-run make with V=99 to see what's going on
make[2]: *** [compile] Error 1
make[2]: Leaving directory `/home/shiva/OpenWrt-SDK-Linux-i686-1/package'
make[1]: *** [package/compile] Error 2
make[1]: Leaving directory `/hom
iam keeping my documentation files here
Config.in
config BR2_PACKAGE_KPE
prompt "kpe............................. The classic greeting, and a good example"
tristate
default m if CONFIG_DEVEL
help
The GNU kpe program produces a familiar, friendly greeting. It
allows non-programmers to use a classic computer science tool which
would otherwise be unavailable to them.
.
Seriously, though: this is an example of how to do a Debian package.
It is the Debian version of the GNU Project's `hello world' program
(which is itself an example for the GNU Project).
http://www.wheretofindpackage.tld
HEre is my Makefile
TOPDIR=/home/shiva/OpenWrt-SDK-Linux-i686-1
include $(TOPDIR)/rules.mk
PKG_NAME:=kpe
PKG_VERSION:=2.1.1
PKG_RELEASE:=1
PKG_MD5SUM:=70c9ccf9fac07f762c24f2df2290784d
PKG_SOURCE_URL:=ftp://ftp.cs.tu-berlin.de/pub/gnu/hello \
http://mirrors.sunsite.dk/gnu/hello \
http://ftp.gnu.org/gnu/hello
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(TOPDIR)/package/rules.mk
$(eval $(call PKG_template,KPE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
(cd $(PKG_BUILD_DIR); \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--without-libiconv-prefix \
--without-libintl-prefix \
--disable-nls \
);
## Add software specific configurable options above
## See : ./configure --help
touch $@
$(PKG_BUILD_DIR)/.built:
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)/usr/bin
$(MAKE) -C $(PKG_BUILD_DIR)/src \
$(TARGET_CONFIGURE_OPTS) \
prefix="$(PKG_INSTALL_DIR)/usr"
$(CP) $(PKG_BUILD_DIR)/src/kpe $(PKG_INSTALL_DIR)/usr/bin
touch $@
$(IPKG_KPE):
install -d -m0755 $(IDIR_KPE)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/kpe $(IDIR_KPE)/usr/bin
$(RSTRIP) $(IDIR_KPE)
$(IPKG_BUILD) $(IDIR_KPE) $(PACKAGE_DIR)
mostlyclean:
make -C $(PKG_BUILD_DIR) clean
rm $(PKG_BUILD_DIR)/.built
and last one in ipkg
kpe.control
Package: kpe
Priority: optional
Section: misc
Description: The GNU kpe world program
please send anyone the answer