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
