Skip to content

Commit

Permalink
Move copied libultra archive to the libultra build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
hensldm committed Jul 19, 2024
1 parent 12e6bc0 commit 1f44161
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 182 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ OBJDUMP_FLAGS := --disassemble --reloc --disassemble-zeroes -Mreg-names=32 -Mno-
ifneq ($(OBJDUMP_BUILD), 0)
OBJDUMP_CMD = $(OBJDUMP) $(OBJDUMP_FLAGS) $@ > $(@:.o=.s)
OBJCOPY_BIN = $(OBJCOPY) -O binary $@ $@.bin
LIBDUMP_CMD = $(AR) xo --output $(@:.a=) $@
LIBDUMP_CMD = $(AR) xo --output $(@D) $@
else
OBJDUMP_CMD = @:
OBJCOPY_BIN = @:
Expand All @@ -190,12 +190,12 @@ $(shell mkdir -p asm/$(VERSION) assets/$(VERSION) linker_scripts/$(VERSION)/auto
ULTRALIB_DIR := lib/ultralib
ULTRALIB_LIB := $(ULTRALIB_DIR)/build/$(ULTRALIB_VERSION)/$(ULTRALIB_TARGET)/$(ULTRALIB_TARGET).a
LIBULTRA_DIR := lib/libultra
LIBULTRA_LIB := $(BUILD_DIR)/$(LIBULTRA_DIR).a
LIBULTRA_LIB := $(BUILD_DIR)/$(LIBULTRA_DIR)/libultra.a

SRC_DIRS := $(shell find src -type d)
ASM_DIRS := $(shell find asm/$(VERSION) -type d -not -path "asm/$(VERSION)/nonmatchings/*")
BIN_DIRS := $(shell find assets/$(VERSION) -type d)
LIB_DIRS := $(foreach f, $(LIBULTRA_DIR), $f)
LIB_DIRS := $(foreach f,$(LIBULTRA_DIR),$f)

C_FILES := $(foreach dir,$(SRC_DIRS),$(wildcard $(dir)/*.c))
S_FILES := $(foreach dir,$(ASM_DIRS) $(SRC_DIRS),$(wildcard $(dir)/*.s))
Expand Down
3 changes: 0 additions & 3 deletions tools/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ def getProgressFromMapFile(mapFile: mapfile_parser.MapFile, asmPath: Path, nonma
else:
folder = fileparts[pathIndex]

if ".a" in folder:
folder = folder.split('.a')[0]

if folder in aliases:
folder = aliases[folder]

Expand Down
Loading

0 comments on commit 1f44161

Please sign in to comment.