hi,
as I had no replies on my last post, I am trying to adapt the ussp-push package for kamikaze, 2.6
as I had no real experience with WRT Makefiles, I certainly made some stupid errors and need help.
I appreciate all ideas,
thankx
Hayhay
here is my actuel Makefile:
=========================/data/openwrt/kamikaze$ cat package/ussp-push/Makefile
PKG_MD5SUM:=c474f9fea8a76ee0de4f4886462de2c0
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/ussp-push
SECTION:=net
CATEGORY:=Network
DEPENDS:=+openobex
TITLE:=ussp-push - an ObEx push application
SUBMENU:=USSP-PUSH
endef
define Package/ussp-push/description
ussp-push - an ObEx push application
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LIBS="-nodefaultlibs -lgcc -lc -luClibc++" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all
endef
define Package/ussp-push/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ussp-push $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,ussp-push))
==============================================
and now, I have this output from make:
=======================sd-12383:/data/openwrt/kamikaze$ make package/ussp-push-prepare V=99
make[1]: Entering directory `/data/openwrt/kamikaze'
make[2]: Entering directory `/data/openwrt/kamikaze/package/ussp-push'
gzip -dc /data/openwrt/kamikaze/dl/ussp-push-0.9.tar.gz | /bin/tar -C /data/openwrt/kamikaze/build_dir/mipsel/ussp-push-0.9/.. -xf -
Applying ./patches/makefile-fix.patch using plaintext:
patching file Makefile
touch /data/openwrt/kamikaze/build_dir/mipsel/ussp-push-0.9/.prepared_41887472a8a3db700cfad39f470c491d
make[2]: Leaving directory `/data/openwrt/kamikaze/package/ussp-push'
make[1]: Leaving directory `/data/openwrt/kamikaze'
=======================sd-12383:/data/openwrt/kamikaze$ make package/ussp-push-compile V=99
make[1]: Entering directory `/data/openwrt/kamikaze'
make[2]: Entering directory `/data/openwrt/kamikaze/package/openobex'
make[2]: Leaving directory `/data/openwrt/kamikaze/package/openobex'
make[2]: Entering directory `/data/openwrt/kamikaze/package/ussp-push'
(cd /data/openwrt/kamikaze/build_dir/mipsel/ussp-push-0.9/./; if [ -x ./configure ]; then cp -fpR /data/openwrt/kamikaze/scripts/config.{guess,sub} /data/openwrt/kamikaze/build_dir/mipsel/ussp-push-0.9// && AR=mipsel-linux-uclibc-ar AS="mipsel-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" LD=mipsel-linux-uclibc-ld NM=mipsel-linux-uclibc-nm CC="mipsel-linux-uclibc-gcc" GCC="mipsel-linux-uclibc-gcc" CXX=mipsel-linux-uclibc-g++ RANLIB=mipsel-linux-uclibc-ranlib STRIP=mipsel-linux-uclibc-strip OBJCOPY=mipsel-linux-uclibc-objcopy OBJDUMP=mipsel-linux-uclibc-objdump SIZE=mipsel-linux-uclibc-size CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts " CPPFLAGS="-I/data/openwrt/kamikaze/staging_dir/mipsel/usr/include -I/data/openwrt/kamikaze/staging_dir/mipsel/include " LDFLAGS="-L/data/openwrt/kamikaze/staging_dir/toolchain-mipsel_gcc4.1.2/lib -L/data/openwrt/kamikaze/staging_dir/mipsel/usr/lib -L/data/openwrt/kamikaze/staging_dir/mipsel/lib " PKG_CONFIG_PATH="/data/openwrt/kamikaze/staging_dir/mipsel/usr/lib/pkgconfig:/data/openwrt/kamikaze/staging_dir/host/usr/lib/pkgconfig" PKG_CONFIG_LIBDIR="/data/openwrt/kamikaze/staging_dir/mipsel/usr/lib/pkgconfig" ./configure --target=mipsel-linux --host=mipsel-linux --build=i486-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /data/openwrt/kamikaze/build_dir/mipsel/ussp-push-0.9/.configured
make -C /data/openwrt/kamikaze/build_dir/mipsel/ussp-push-0.9 CPPFLAGS="-I/data/openwrt/kamikaze/staging_dir/mipsel/usr/include -I/data/openwrt/kamikaze/staging_dir/mipsel/include" LIBS="-nodefaultlibs -lgcc -lc -luClibc++" \
make[3]: Entering directory `/data/openwrt/kamikaze/build_dir/mipsel/ussp-push-0.9'
make[3]: *** No rule to make target ` '. Stop.
make[3]: Leaving directory `/data/openwrt/kamikaze/build_dir/mipsel/ussp-push-0.9'
make[2]: *** [/data/openwrt/kamikaze/build_dir/mipsel/ussp-push-0.9/.built] Error 2
make[2]: Leaving directory `/data/openwrt/kamikaze/package/ussp-push'
make[1]: *** [package/ussp-push/compile] Error 2
make[1]: Leaving directory `/data/openwrt/kamikaze'
make: *** [package/ussp-push-compile] Error 2