diff options
Diffstat (limited to 'recipes-test/udt/files/0003-Makefile-Add-support-for-building-on-ARM7.patch')
-rw-r--r-- | recipes-test/udt/files/0003-Makefile-Add-support-for-building-on-ARM7.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes-test/udt/files/0003-Makefile-Add-support-for-building-on-ARM7.patch b/recipes-test/udt/files/0003-Makefile-Add-support-for-building-on-ARM7.patch new file mode 100644 index 0000000..45381a4 --- /dev/null +++ b/recipes-test/udt/files/0003-Makefile-Add-support-for-building-on-ARM7.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 96dafd845546d585616c8d5744c0123dd08b7443 Mon Sep 17 00:00:00 2001 | ||
2 | From: Josep Puigdemont <josep.puigdemont@enea.com> | ||
3 | Date: Sat, 10 May 2014 17:12:28 +0200 | ||
4 | Subject: [PATCH 3/3] Makefile: Add support for building on ARM7 | ||
5 | |||
6 | Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com> | ||
7 | Upstream-Status: Pending | ||
8 | |||
9 | --- | ||
10 | udt4/app/Makefile | 4 ++++ | ||
11 | udt4/src/Makefile | 4 ++++ | ||
12 | 2 files changed, 8 insertions(+) | ||
13 | |||
14 | diff --git a/udt4/app/Makefile b/udt4/app/Makefile | ||
15 | index b046b83..5336e2d 100644 | ||
16 | --- a/udt4/app/Makefile | ||
17 | +++ b/udt4/app/Makefile | ||
18 | @@ -34,6 +34,10 @@ ifeq ($(arch), SPARC) | ||
19 | CCFLAGS += -DSPARC | ||
20 | endif | ||
21 | |||
22 | +ifeq ($(arch), ARM7) | ||
23 | + CCFLAGS += -mcpu=arm7 | ||
24 | +endif | ||
25 | + | ||
26 | LDFLAGS = -L../src -ludt -lstdc++ -lpthread -lm | ||
27 | |||
28 | ifeq ($(os), UNIX) | ||
29 | diff --git a/udt4/src/Makefile b/udt4/src/Makefile | ||
30 | index 0d94d48..4153bcd 100644 | ||
31 | --- a/udt4/src/Makefile | ||
32 | +++ b/udt4/src/Makefile | ||
33 | @@ -38,6 +38,10 @@ ifeq ($(arch), AMD64) | ||
34 | CCFLAGS += -DAMD64 | ||
35 | endif | ||
36 | |||
37 | +ifeq ($(arch), ARM7) | ||
38 | + CCFLAGS += -mcpu=arm7 | ||
39 | +endif | ||
40 | + | ||
41 | OBJS = api.o buffer.o cache.o ccc.o channel.o common.o core.o epoll.o list.o md5.o packet.o queue.o window.o | ||
42 | DIR = $(shell pwd) | ||
43 | |||
44 | -- | ||
45 | 1.9.0 | ||
46 | |||