mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
detect the architecture of the kernel
This commit is contained in:
parent
e45bfda8bf
commit
33f08f27fc
36
kernel.mk
Normal file
36
kernel.mk
Normal file
@ -0,0 +1,36 @@
|
||||
#
|
||||
# (c) 2004-2007 Laurent Vivier <Laurent@lvivier.info>
|
||||
#
|
||||
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user