I am trying to package tinysvcmdns, a tiny MDNS responder implementation for publishing services.
Unfortunately the compilation does not succeed, I get:
make[4]: *** No targets specified and no makefile found. Stop.
I am Using Ubuntu 12.04.2 LTS, Precise Pangolin, and the OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2 SDK.
Here is what I did:
echo "src-link custom ../myfeed" >> feeds.conf
mkdir -p myfeed/tinysvcmdns/
nano myfeed/tinysvcmdns/Makefile # see below
./scripts/feeds install -p custom
./scripts/feeds update custom -i
./scripts/feeds install
make clean
make defconfig
# To test the compilation step
make -C myfeed/tinysvcmdns/ compile V=s
make V=s
Here is myfeed/tinysvcmdns/Makefile that I have created and that is likely not entirely correct:
include $(TOPDIR)/rules.mk
PKG_NAME:=tinysvcmdns
PKG_VERSION:=0.1
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=e34b56243b15.zip
PKG_SOURCE_URL:=https://bitbucket.org/geekman/tinysvcmdns/get/
PKG_MD5SUM:=da00465a5e8a18aed98f4dc124dd6a05
PKG_CAT:=unzip
include $(INCLUDE_DIR)/package.mk
define Package/tinysvcmdns
SECTION:=base
CATEGORY:=Network
DEFAULT:=y
TITLE:=Tiny MDNS responder implementation for publishing services
URL:=https://bitbucket.org/geekman/tinysvcmdns
endef
define Package/tinysvcmdns/description
tinysvcmdns is a tiny MDNS responder implementation for publishing services
This implementation is only concerned with publishing services,
without a system-wide daemon like Bonjour or Avahi.
Its other goal is to be extremely small, embeddable,
and have no external dependencies.
endef
define Package/tinysvcmdns/install
$(INSTALL_DIR) $(1)/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/testmdnsd $(1)/bin/
endef
$(eval $(call BuildPackage,tinysvcmdns))
Can you help me fix this Makefile?
Compiling manually like this works:
cd build_dir/target-_-/geekman-tinysvcmdns-e34b56243b15/
export PATH=$PATH:/home/user/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/
export STAGING_DIR=/home/user/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/
make CC=mips-openwrt-linux-uclibc-gcc
mips-openwrt-linux-strip ./testmdnsd
Thanks!
(Last edited by probono on 31 Dec 2013, 02:48)