mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
rpi coopnet support
This commit is contained in:
parent
9a13c298ad
commit
14101ce10c
5 changed files with 14 additions and 4 deletions
18
Makefile
18
Makefile
|
|
@ -126,6 +126,18 @@ ifeq ($(HOST_OS),Darwin)
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(HOST_OS),Linux)
|
||||
machine = $(shell sh -c 'uname -m 2>/dev/null || echo unknown')
|
||||
ifneq (,$(findstring aarch64,$(machine)))
|
||||
#Raspberry Pi 4-5
|
||||
TARGET_RPI = 1
|
||||
endif
|
||||
ifneq (,$(findstring arm,$(machine)))
|
||||
#Rasberry Pi zero, 2, 3, etc
|
||||
TARGET_RPI = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
# MXE overrides
|
||||
|
||||
ifeq ($(WINDOWS_BUILD),1)
|
||||
|
|
@ -272,8 +284,6 @@ endif
|
|||
ifeq ($(TARGET_RPI),1)
|
||||
$(info Compiling for Raspberry Pi)
|
||||
DISCORD_SDK := 0
|
||||
COOPNET := 0
|
||||
machine = $(shell sh -c 'uname -m 2>/dev/null || echo unknown')
|
||||
|
||||
# Raspberry Pi B+, Zero, etc
|
||||
ifneq (,$(findstring armv6l,$(machine)))
|
||||
|
|
@ -966,9 +976,9 @@ ifeq ($(COOPNET),1)
|
|||
endif
|
||||
else ifeq ($(TARGET_RPI),1)
|
||||
ifneq (,$(findstring aarch64,$(machine)))
|
||||
LDFLAGS += -Llib/coopnet/linux -l:libcoopnet-arm64.a -l:libjuice.a
|
||||
LDFLAGS += -Llib/coopnet/linux -l:libcoopnet-arm64.a -l:libjuice-arm64.a
|
||||
else
|
||||
LDFLAGS += -Llib/coopnet/linux -l:libcoopnet-arm.a -l:libjuice.a
|
||||
LDFLAGS += -Llib/coopnet/linux -l:libcoopnet-arm.a -l:libjuice-arm.a
|
||||
endif
|
||||
else
|
||||
LDFLAGS += -Llib/coopnet/linux -l:libcoopnet.a -l:libjuice.a
|
||||
|
|
|
|||
BIN
lib/coopnet/linux/libcoopnet-arm.a
Normal file
BIN
lib/coopnet/linux/libcoopnet-arm.a
Normal file
Binary file not shown.
BIN
lib/coopnet/linux/libcoopnet-arm64.a
Normal file
BIN
lib/coopnet/linux/libcoopnet-arm64.a
Normal file
Binary file not shown.
BIN
lib/coopnet/linux/libjuice-arm.a
Normal file
BIN
lib/coopnet/linux/libjuice-arm.a
Normal file
Binary file not shown.
BIN
lib/coopnet/linux/libjuice-arm64.a
Normal file
BIN
lib/coopnet/linux/libjuice-arm64.a
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue