-
Notifications
You must be signed in to change notification settings - Fork 3
/
kernel.mk
36 lines (28 loc) · 818 Bytes
/
kernel.mk
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
#
# (c) 2004-2013 Laurent Vivier <Laurent@Vivier.EU>
#
# Kernel architecture
LINUX=$(shell ls $(LINUXPATH) 2> /dev/null)
ifeq ($(LINUX),$(LINUXPATH))
FILEARCH=$(shell file -bknL $(LINUX) | cut -d, -f 2)
ifeq ($(findstring PowerPC, $(FILEARCH)), PowerPC)
KARCH=ppc
KSTRIP=$(PPC_STRIP)
else
ifeq ($(findstring Motorola 68000, $(FILEARCH)), Motorola 68000)
KARCH=classic
KSTRIP=$(M68K_STRIP)
else
ifeq ($(findstring Motorola 68, $(FILEARCH)), Motorola 68)
KARCH=m68k
KSTRIP=$(M68K_STRIP)
else
KARCH=unknown
KSTRIP=$(M68K_STRIP)
endif
endif
endif
else
KARCH=m68k
KSTRIP=$(M68K_STRIP)
endif