Skip to content

Commit 29ab066

Browse files
author
Daniele Lacamera
committed
Merge branch 'development' - preparing v1.4.2
2 parents 76e9bfa + b62bb33 commit 29ab066

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+11215
-2670
lines changed

Makefile

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ MEMORY_MANAGER?=0
4747
MEMORY_MANAGER_PROFILING?=0
4848
TUN?=0
4949
TAP?=0
50+
PPP?=1
51+
CYASSL?=0
52+
POLARSSL?=0
5053

5154
#IPv6 related
5255
IPV6?=1
@@ -80,7 +83,7 @@ ifeq ($(TFTP),1)
8083
endif
8184

8285
ifeq ($(AODV),1)
83-
MOD_OBJ+=$(LIBBASE)modules/pico_aodv.o
86+
MOD_OBJ+=$(LIBBASE)modules/pico_aodv.o
8487
OPTIONS+=-DPICO_SUPPORT_AODV
8588
endif
8689

@@ -159,14 +162,14 @@ CORE_OBJ= stack/pico_stack.o \
159162
stack/pico_protocol.o \
160163
stack/pico_socket.o \
161164
stack/pico_socket_multicast.o \
162-
stack/pico_tree.o
165+
stack/pico_tree.o \
166+
stack/pico_md5.o
163167

164168
POSIX_OBJ+= modules/pico_dev_vde.o \
165169
modules/pico_dev_tun.o \
166170
modules/pico_dev_tap.o \
167171
modules/pico_dev_mock.o \
168-
modules/pico_dev_pcap.o \
169-
modules/ptsocket/pico_ptsocket.o
172+
modules/pico_dev_pcap.o
170173

171174
ifneq ($(ETH),0)
172175
include rules/eth.mk
@@ -238,6 +241,15 @@ endif
238241
ifneq ($(TAP),0)
239242
include rules/tap.mk
240243
endif
244+
ifneq ($(PPP),0)
245+
include rules/ppp.mk
246+
endif
247+
ifneq ($(CYASSL),0)
248+
include rules/cyassl.mk
249+
endif
250+
ifneq ($(POLARSSL),0)
251+
include rules/polarssl.mk
252+
endif
241253

242254
all: mod core lib
243255

@@ -251,14 +263,13 @@ mod: $(MOD_OBJ)
251263

252264
posix: all $(POSIX_OBJ)
253265
@mv modules/*.o $(PREFIX)/modules || echo
254-
@mv modules/ptsocket/*.o $(PREFIX)/modules || echo
255266

256267

257268
TEST_ELF= test/picoapp.elf
258269
TEST6_ELF= test/picoapp6.elf
259270

260271

261-
test: posix
272+
test: posix
262273
@mkdir -p $(PREFIX)/test/
263274
@make -C test/examples PREFIX=$(PREFIX)
264275
@echo -e "\t[CC] picoapp.o"
@@ -286,12 +297,12 @@ lib: mod core
286297
@cp -f modules/*.h $(PREFIX)/include
287298
@echo -e "\t[AR] $(PREFIX)/lib/$(LIBNAME)"
288299
@$(AR) cru $(PREFIX)/lib/$(LIBNAME) $(PREFIX)/modules/*.o $(PREFIX)/lib/*.o \
289-
|| $(AR) cru $(PREFIX)/lib/$(LIBNAME) $(PREFIX)/lib/*.o
300+
|| $(AR) cru $(PREFIX)/lib/$(LIBNAME) $(PREFIX)/lib/*.o
290301
@echo -e "\t[RANLIB] $(PREFIX)/lib/$(LIBNAME)"
291302
@$(RANLIB) $(PREFIX)/lib/$(LIBNAME)
292303
@test $(STRIP) -eq 1 && (echo -e "\t[STRIP] $(PREFIX)/lib/$(LIBNAME)" \
293304
&& $(STRIP_BIN) $(PREFIX)/lib/$(LIBNAME)) \
294-
|| echo -e "\t[KEEP SYMBOLS] $(PREFIX)/lib/$(LIBNAME)"
305+
|| echo -e "\t[KEEP SYMBOLS] $(PREFIX)/lib/$(LIBNAME)"
295306
@echo -e "\t[LIBSIZE] `du -b $(PREFIX)/lib/$(LIBNAME)`"
296307
@echo -e "`size -t $(PREFIX)/lib/$(LIBNAME)`"
297308

@@ -321,6 +332,7 @@ units: mod core lib $(UNITS_OBJ) $(MOD_OBJ)
321332
@$(CC) -o $(PREFIX)/test/modunit_ipfilter.elf $(CFLAGS) -I. test/unit/modunit_pico_ipfilter.c stack/pico_tree.c -lcheck -lm -pthread -lrt $(UNITS_OBJ)
322333
@$(CC) -o $(PREFIX)/test/modunit_aodv.elf $(CFLAGS) -I. test/unit/modunit_pico_aodv.c -lcheck -lm -pthread -lrt $(UNITS_OBJ) $(PREFIX)/lib/libpicotcp.a
323334
@$(CC) -o $(PREFIX)/test/modunit_queue.elf $(CFLAGS) -I. test/unit/modunit_queue.c -lcheck -lm -pthread -lrt $(UNITS_OBJ)
335+
@$(CC) -o $(PREFIX)/test/modunit_dev_ppp.elf $(CFLAGS) -I. test/unit/modunit_pico_dev_ppp.c -lcheck -lm -pthread -lrt $(UNITS_OBJ) $(PREFIX)/lib/libpicotcp.a
324336

325337
devunits: mod core lib
326338
@echo -e "\n\t[UNIT TESTS SUITE: device drivers]"
@@ -350,7 +362,7 @@ mbed:
350362
@cp include/pico_socket.h include/socket.tmp
351363
@echo "#define MBED\n" > include/mbed.tmp
352364
@cat include/mbed.tmp include/socket.tmp > include/pico_socket.h
353-
@zip -0 PicoTCP.zip -r include modules stack -x include/arch/ include/arch/* include/pico_config.h include/*.tmp modules/ptsocket/* modules/ptsocket/ modules/ptsocket/test/ modules/ptsocket/test/* modules/pico_dev_*
365+
@zip -0 PicoTCP.zip -r include modules stack -x include/arch/ include/arch/* include/pico_config.h include/*.tmp modules/pico_dev_*
354366
@rm include/pico_socket.h include/mbed.tmp
355367
@mv include/socket.tmp include/pico_socket.h
356368

@@ -364,7 +376,12 @@ dummy: mod core lib $(DUMMY_EXTRA)
364376
@$(CC) -c -o test/dummy.o test/dummy.c $(CFLAGS)
365377
@$(CC) -o dummy test/dummy.o $(DUMMY_EXTRA) $(PREFIX)/lib/libpicotcp.a $(LDFLAGS)
366378
@echo done.
367-
@rm -f test/dummy.o dummy
379+
@rm -f test/dummy.o dummy
380+
381+
ppptest: test/ppp.c lib
382+
gcc -ggdb -c -o ppp.o test/ppp.c -I build/include/ -I build/modules/
383+
gcc -o ppp ppp.o build/lib/libpicotcp.a $(LDFLAGS)
384+
rm -f ppp.o
368385

369386

370387
FORCE:

RFC/get_all_rfc

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
wget http://tools.ietf.org/rfc/rfc4614.txt
1+
#!/bin/sh
22

3+
wget -O rfc4614.txt http://tools.ietf.org/rfc/rfc4614.txt
34

4-
for RFC in `grep "\[RFC" rfc4614.txt | sed -e "s/^.*RFC/rfc/" | grep -v "rfc \|rfc$" | sed -e "s/\].*$//g" |sort |uniq`; do
5-
wget http://tools.ietf.org/rfc/$RFC.txt
5+
6+
for RFC in `grep "\[RFC" rfc4614.txt | sed -e "s/^.*RFC/rfc/" | grep -v "rfc \|rfc$" | sed -e "s/\].*$/.txt/g" |sort |uniq`; do
7+
wget -O ${RFC} http://tools.ietf.org/rfc/${RFC}
68
done
79

8-
wget http://tools.ietf.org/rfc/rfc3927.txt
10+
wget -O rfc3927.txt http://tools.ietf.org/rfc/rfc3927.txt
11+
12+
# Get PPP related RFC's
13+
for RFC in $(echo 1332 1334 1661 1662 1877 1994 | sed -r "s/[^ ]+/rfc&.txt/g"); do
14+
wget -O ${RFC} http://tools.ietf.org/rfc/${RFC}
15+
done

0 commit comments

Comments
 (0)