summaryrefslogtreecommitdiffstats
path: root/recipes-test/udt/files/0003-Makefile-Add-support-for-building-on-ARM7.patch
blob: 45381a48ea4169c04ea9a603f371c9598fb9bb49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From 96dafd845546d585616c8d5744c0123dd08b7443 Mon Sep 17 00:00:00 2001
From: Josep Puigdemont <josep.puigdemont@enea.com>
Date: Sat, 10 May 2014 17:12:28 +0200
Subject: [PATCH 3/3] Makefile: Add support for building on ARM7

Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Upstream-Status: Pending

---
 udt4/app/Makefile | 4 ++++
 udt4/src/Makefile | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/udt4/app/Makefile b/udt4/app/Makefile
index b046b83..5336e2d 100644
--- a/udt4/app/Makefile
+++ b/udt4/app/Makefile
@@ -34,6 +34,10 @@ ifeq ($(arch), SPARC)
    CCFLAGS += -DSPARC
 endif
 
+ifeq ($(arch), ARM7)
+   CCFLAGS += -mcpu=arm7
+endif
+
 LDFLAGS = -L../src -ludt -lstdc++ -lpthread -lm
 
 ifeq ($(os), UNIX)
diff --git a/udt4/src/Makefile b/udt4/src/Makefile
index 0d94d48..4153bcd 100644
--- a/udt4/src/Makefile
+++ b/udt4/src/Makefile
@@ -38,6 +38,10 @@ ifeq ($(arch), AMD64)
    CCFLAGS += -DAMD64
 endif
 
+ifeq ($(arch), ARM7)
+   CCFLAGS += -mcpu=arm7
+endif
+
 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
 DIR = $(shell pwd)
 
-- 
1.9.0