rpi coopnet support

This commit is contained in:
SirCodesALot 2025-01-15 09:10:50 +11:00 committed by Isaac0-dev
parent 9a13c298ad
commit 14101ce10c
5 changed files with 14 additions and 4 deletions

View file

@ -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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.