[olsr-dev] olsr for uclinux
Yoshihiko
(spam-protected)
Fri Oct 6 15:28:24 CEST 2006
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
Mohd Shakir bin Zakaria wrote:
> I'm also into olsrd 0.4.10, but then it's not working. i'll try to
> check it
> out again, and if i'm not succeeding, i'm gonna have u paste your Makefile
> here :) is there possibly i'm slacking somewhere else? anyway, i'm using
> snapgear, which is still based on uclinux.
>
> make in my gentoo with gcc4 doesnt produce any errors.
More information about the Olsr-dev
mailing list