Hello,

I would like to return to the topic. Cross compilation was successful and binary file runs on OpenWRT without problems. I wanted to make official ipk package and include it into OpenWRT build, but had some problems. ipk was generated without warnings or errors and installation on OpenWRT board was success, but running pimd generated an errors, so I suppose it was some problems though. I think the reason is makefile. I attach it now and maybe you could review it ?


On 01/04/2012 10:46 AM, Mickael Chazaux wrote:
Hi,

2012/1/4 Darius<[email protected]>:
Hi,

Well its first time I try to cross-compile something and really have problems. 
There is no very clear documentation or FAQ on that topic. There are several, 
but one says its enough to have toolchain, others claims that I need to have 
SDK and specific makefile in OpenWRT format. So maybe you could help a little 
bit by guiding me how to cross-compile or at least point to some FAW web 
site....

tar -jxpvf pimd-2.1.7.tar.bz2
cd pimd-2.1.7/
make CC=<path/to/your/crosscompiler>gcc
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

#
# Copyright (C) 2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=pimd
PKG_VERSION:=2.1.8
PKG_RELEASE:=1

PKG_SOURCE:=pimd_2.1.8-2.tar.gz
PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/p/pimd/
PKG_MD5SUM:=56cbc360a0fae4c8ad81289bf8891e4d

include $(INCLUDE_DIR)/package.mk

define Package/pimd/Default
 DEPENDS:=@LINUX_2_6
endef

define Package/pimd
$(call Package/pimd/Default)
 SECTION:=net
 CATEGORY:=Network
 SUBMENU:=Routing and Redirection
 DEPENDS+= +libc
 TITLE:=Multicast routing daemon (PIMv2)
 URL:=http://packages.debian.org/unstable/net/pimd/
endef

define Package/pimd/description
 pimd is implementation of Protocol Independent Multicast routing
daemon. It supports PIMv2-SM on FreeBSD, NetBSD, OpenBSD, Linux.
Enabled PIM support in kernel is needed.
endef

# Is esmes galima buildint ir be sito define
define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) NO_EXTRA_WARN_FLAGS=yes
endef

define Package/pimd/conffiles
/etc/pimd.conf
endef

define Package/pimd/install
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/pimd.conf $(1)/etc/
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/pimd $(1)/usr/bin/
endef

$(eval $(call BuildPackage,pimd))
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to