Ok, seems that you were right, it was not cross compiled, so I've
updated makefile with CC and LD. Resulting ipk file was successfuly
compiled and successfully installed on OpenWRT platform, so it seems
that everything is ok (so far). Well, at least I have the same output
when I run pimd on both versions: crosscompiled and compiled in SDK.
Only one thing, with this new Makefile I'm getting warnings:
make[3]: Entering directory
`/home/darius/openwrt/backfire/build_dir/target-mips_r2_uClibc-0.9.30.1/pimd-2.1.8'
CC igmp.o
igmp.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC igmp_proto.o
igmp_proto.c:1: note: someone does not honour COPTS correctly, passed 0
times
CC trace.o
trace.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC inet.o
inet.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC kern.o
kern.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC main.o
main.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC config.o
config.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC debug.o
debug.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC netlink.o
netlink.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC routesock.o
routesock.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC vers.o
vers.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC callout.o
callout.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC route.o
route.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC vif.o
vif.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC timer.o
timer.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC mrt.o
mrt.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC pim.o
pim.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC pim_proto.o
pim_proto.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC rp.o
rp.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC dvmrp_proto.o
dvmrp_proto.c:1: note: someone does not honour COPTS correctly, passed 0
times
CC rsrr.o
rsrr.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC strlcpy.o
strlcpy.c:1: note: someone does not honour COPTS correctly, passed 0 times
CC pidfile.o
pidfile.c:1: note: someone does not honour COPTS correctly, passed 0 times
LINK pimd
As I understand it notes me that CC and LD was overwritten instead on
appending. But append can't be made to these variables in this case as I
exacly need what I enntered in LD and CC. So I think these warnings I
can ignore. What do you think ?
On 01/09/2012 11:48 AM, Mickael Chazaux wrote:
Hi,
2012/1/8 shift<[email protected]>:
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 ?
I don't really know how OpenWRT works, soo please correct if I'm
wrong. Are you sure your binary is cross-compiled?
The pimd Makefile has this line :
CC ?= $(CROSS)gcc
which means the CC variable holding the cross compile will be
initialized to $(CROSS)gcc if it is not already defined. In your
Makefile you need something like this :
define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) NO_EXTRA_WARN_FLAGS=yes
+ $(MAKE) -C $(PKG_BUILD_DIR) NO_EXTRA_WARN_FLAGS=yes
CC=</path/to/openWRT's/cross/compiler>
endef
Let me know
Regards,
Mickael
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users