-
Notifications
You must be signed in to change notification settings - Fork 1
/
0007-Enable-arm.patch
48 lines (41 loc) · 1.4 KB
/
0007-Enable-arm.patch
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
47
From 453638ca793a93eac882f0066eb4ef9b8b536cf8 Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <[email protected]>
Date: Fri, 30 Sep 2011 20:22:33 +0200
Subject: [PATCH 7/9] Enable arm
---
as/Makefile.linux | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/as/Makefile.linux b/as/Makefile.linux
index d1349a4..f66f909 100644
--- a/as/Makefile.linux
+++ b/as/Makefile.linux
@@ -43,13 +43,17 @@ COBJS_ppc = $(CFILES_ppc:%.c=$(ARCH_DIR)/ppc/%.o)
CFILES_ppc64 = $(CFILES_ppc)
COBJS_ppc64 = $(CFILES_ppc64:%.c=$(ARCH_DIR)/ppc64/%.o)
+CFILES_arm = $(CFILES) arm.c
+COBJS_arm = $(CFILES_arm:%.c=$(ARCH_DIR)/arm/%.o)
+
XCFLAGS = -fno-builtin-round -D__LITTLE_ENDIAN__ -D__private_extern__='__attribute__((visibility("hidden")))' -DNeXT_MOD -I../include -I../../usr_include -I/usr/include/xnu
all: bin/as \
$(ARCH_DIR)/i386/as \
$(ARCH_DIR)/x86_64/as \
$(ARCH_DIR)/ppc/as \
- $(ARCH_DIR)/ppc64/as
+ $(ARCH_DIR)/ppc64/as \
+ $(ARCH_DIR)/arm/as
bin/as: $(COBJS_driver)
$(CC) -o $@ $^ -L../libstuff -lstuff
@@ -86,5 +90,12 @@ $(COBJS_ppc64): $(ARCH_DIR)/ppc64/%.o: %.c
@mkdir -p $(@D)
$(CC) $(CFLAGS) $(XCFLAGS) -DPPC -DARCH64 -c -o $@ $<
+$(ARCH_DIR)/arm/as: $(COBJS_arm)
+ $(CC) -o $@ $^ -L../libstuff -lstuff
+
+$(COBJS_arm): $(ARCH_DIR)/arm/%.o: %.c
+ @mkdir -p $(@D)
+ $(CC) $(CFLAGS) $(XCFLAGS) -DARM -c -o $@ $<
+
clean:
-rm -rf bin libexec
--
1.7.1