[olsr-dev] olsr for uclinux

Mohd Shakir bin Zakaria (spam-protected)
Fri Oct 6 19:24:51 CEST 2006


Thanks, but I still have no luck with that. Guess like it's wrong somewhere
else. I'll post if I succeed (or fail) later. Anyway, here's my setting, and
maybe you can try if it works with your toolchain; kernel 2.6, arch=arm,
uclibc. the rest I left as default.

On 10/6/06, Yoshihiko <(spam-protected)> wrote:
>
> I used snapgear, too. It may be difference in toolchain... :-/
>
> This is my changes.
>
> diff -upr Makefile.orig Makefile
> --- Makefile.orig   2006-01-04 17:45:38.000000000 +0900
> +++ Makefile    2006-09-23 17:58:31.000000000 +0900
> @@ -57,7 +57,7 @@ TAG_SRCS = $(SRCS) $(HDRS) $(wildcard sr
> default_target: cfgparser olsrd
>
> olsrd:         $(OBJS) $(CFGOBJS)
> -               $(CC) $(LDFLAGS) -o $@ $(OBJS) $(CFGOBJS) $(LIBS)
> +               $(CC) $(LDFLAGS) -o $@ $(OBJS) $(CFGOBJS) $(LIBS)
> $(LDLIBS)
>
> cfgparser:     $(CFGDEPS)
>                 $(MAKE) -C $(CFGDIR)
> @@ -69,6 +69,9 @@ $(CFGOBJS):
>                 $(MAKE) -C $(CFGDIR)
>
> .PHONY: help libs clean_libs libs_clean clean uberclean install_libs
> libs_install
> install_bin install_olsrd install build_all install_all
> +
> +romfs:
> +               $(ROMFSINST) /bin/$(EXENAME)
>
> clean:
>                 -rm -f $(OBJS) $(SRCS:%.c=%.d) olsrd olsrd.exe $(TAGFILE)
> diff -upr Makefile.inc.orig Makefile.inc
> --- Makefile.inc.orig   2006-01-02 00:58:20.000000000 +0900
> +++ Makefile.inc    2006-09-23 17:41:56.000000000 +0900
> @@ -1,5 +1,5 @@
> # programs
> -CC ?=          gcc
> +#CC ?=                 gcc
> STRIP ?=       strip
> BISON ?=       bison
> FLEX ?=                flex
> @@ -43,7 +43,7 @@ HDRS +=               $(wildcard *.h)
> all: default_target
>
> # OS detection
> -OS =           $(shell sh $(TOPDIR)/make/guess_os.sh)
> +OS =           linux
> ifeq ($(OS),UNKNOWN)
> all: help
> else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20061006/8f2d3976/attachment.html>


More information about the Olsr-dev mailing list