mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 23:05:08 -04:00
26c8cdd221
* git subrepo clone git@github.com:EllipticEllipsis/fado.git tools/fado subrepo: subdir: "tools/fado" merged: "d202857b" upstream: origin: "git@github.com:EllipticEllipsis/fado.git" branch: "master" commit: "d202857b" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * Makefile adjustments and additions to build fado * git subrepo pull --force tools/fado subrepo: subdir: "tools/fado" merged: "46c4d751" upstream: origin: "git@github.com:EllipticEllipsis/fado.git" branch: "master" commit: "46c4d751" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * git subrepo pull --force tools/fado subrepo: subdir: "tools/fado" merged: "88114ebc" upstream: origin: "git@github.com:EllipticEllipsis/fado.git" branch: "master" commit: "88114ebc" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * Fix typo in makefile * Fix it, maybe? * git subrepo pull tools/fado subrepo: subdir: "tools/fado" merged: "f7efb10a9" upstream: origin: "git@github.com:EllipticEllipsis/fado.git" branch: "master" commit: "f7efb10a9" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * Update build tools
65 lines
1.2 KiB
C
65 lines
1.2 KiB
C
#ifndef SPEC_H
|
|
#define SPEC_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef enum {
|
|
STMT_address,
|
|
STMT_after,
|
|
STMT_align,
|
|
STMT_beginseg,
|
|
STMT_compress,
|
|
STMT_endseg,
|
|
STMT_entry,
|
|
STMT_flags,
|
|
STMT_include,
|
|
STMT_include_data_with_rodata,
|
|
STMT_name,
|
|
STMT_number,
|
|
STMT_romalign,
|
|
STMT_stack,
|
|
STMT_increment,
|
|
STMT_pad_text,
|
|
} STMTId;
|
|
|
|
enum {
|
|
FLAG_BOOT = (1 << 0),
|
|
FLAG_OBJECT = (1 << 1),
|
|
FLAG_RAW = (1 << 2),
|
|
FLAG_NOLOAD = (1 << 3),
|
|
};
|
|
|
|
struct Include {
|
|
char* fpath;
|
|
int linkerPadding;
|
|
uint8_t dataWithRodata;
|
|
};
|
|
|
|
typedef struct Segment {
|
|
uint32_t fields;
|
|
char* name;
|
|
char* after;
|
|
uint32_t flags;
|
|
uint32_t address;
|
|
uint32_t stack;
|
|
uint32_t align;
|
|
uint32_t romalign;
|
|
uint32_t increment;
|
|
uint32_t entry;
|
|
uint32_t number;
|
|
struct Include* includes;
|
|
int includesCount;
|
|
bool compress;
|
|
} Segment;
|
|
|
|
void parse_rom_spec(char* spec, struct Segment** segments, int* segment_count);
|
|
|
|
bool get_single_segment_by_name(struct Segment* dstSegment, char *spec, const char *segmentName);
|
|
|
|
void free_single_segment_elements(struct Segment *segment);
|
|
|
|
void free_rom_spec(struct Segment* segments, int segment_count);
|
|
|
|
#endif
|