Skip to content

Commit

Permalink
Various libretro buildbot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LIJI32 committed Mar 9, 2024
1 parent 6eedee7 commit 2d29ece
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion libretro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ endif

DEFINES := -DIOS
ifeq ($(platform),ios-arm64)
CC = cc -arch armv64 -isysroot $(IOSSDK)
CC = cc -arch arm64 -isysroot $(IOSSDK)
else
CC = cc -arch armv7 -isysroot $(IOSSDK)
endif
Expand Down Expand Up @@ -326,7 +326,12 @@ else
SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=$(CORE_DIR)/libretro/link.T -Wl,--no-undefined
endif

ifeq ($(STATIC_LINKING), 1)
# For some reason libretro's buildbot expects the output to be at ./libretro/ for static targets
BIN ?= $(realpath -m $(CORE_DIR)/libretro)
else
BIN ?= $(realpath -m $(CORE_DIR))
endif
override BIN := $(shell cd .. && realpath -m $(BIN))
TARGET := $(BIN)/$(TARGET)

Expand Down
4 changes: 3 additions & 1 deletion libretro/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ LOCAL_CFLAGS := -std=c99 $(COREFLAGS) $(CFLAGS)
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/libretro/link.T
include $(BUILD_SHARED_LIBRARY)

$(CORE_DIR)/libretro/%_boot.c: $(CORE_DIR)/build/bin/BootROMs/%_boot.bin
override BOOTROMS_DIR := $(shell cd ../.. && realpath -m $(BOOTROMS_DIR))

$(CORE_DIR)/libretro/%_boot.c: $(BOOTROMS_DIR)/%_boot.bin
echo "/* AUTO-GENERATED */" > $@
echo "const unsigned char $(notdir $(@:%.c=%))[] = {" >> $@
hexdump -v -e '/1 "0x%02x, "' $< >> $@
Expand Down

0 comments on commit 2d29ece

Please sign in to comment.