mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-04 18:58:29 -04:00
471d86f530
* Rename outputs * Makefile target renames * Add run target * yeet z64compress * venv * baserom_uncompressed -> baserom-decompressed * input rom name to baserom.z64 * Add BUILD_DIR makefile variable * Move built roms to build dir * Move baserom to baseroms folder * Add version to map file name * Makefile cleanup * Rename ldscript to include version * Multiversion build * n64-us version name * Remove venv as dependency of setup * Readme wording * extract_baserom.py suggestion * Readd checksums * Make .venv work with windows * missed an endif * Cleaner windows venv implementation * Remove duplciate process * Build process steps * Move make_options back * Fix schedule build directory * Fix schedule includes * Makefile NON_MATCHING check -> != 0 * OOT 1704 changes * Small cleanups * Missed 1 thing * UNSET -> SYMS * Update extract_baserom.py * dmadata.py * Small cleanup * dmadata_start * Format * dmadata files * Fix makefile comment * Jenkins report fix * extracted dir * Python dependencies order in readme
16 lines
434 B
Bash
Executable File
16 lines
434 B
Bash
Executable File
#!/bin/sh
|
|
|
|
NM=$1
|
|
ELF=$2
|
|
|
|
# dmadata_syms contents look like:
|
|
# ffffffff80015850 T _dmadataSegmentTextStart
|
|
# 00000000 A _dmadataSegmentTextSize
|
|
# 00011a40 A _dmadataSegmentRomStart
|
|
# ffffffff8001b920 T _dmadataSegmentRoDataEnd
|
|
dmadata_syms=`$NM $ELF --no-sort --radix=x --format=bsd | grep dmadata`
|
|
|
|
_dmadataSegmentRomStart=`echo "$dmadata_syms" | grep '\b_dmadataSegmentRomStart\b' | cut -d' ' -f1`
|
|
|
|
echo 0x"$_dmadataSegmentRomStart"
|