diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-11-22 14:26:34 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-11-22 15:04:33 -0600 |
| commit | 630ed7d44fd47df09a55be345a86d2a018ba908c (patch) | |
| tree | b627761baecc0a1e86d551c1df0dc2af148bcb72 /Makefile | |
| parent | 355e6ad2c8c8ce887ede431d5f2b66485b205bd0 (diff) | |
demo: load assembled programce4302/p2
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -147,6 +147,12 @@ $(OBJ_DIR)/$(TOP)/cov.info: $(patsubst %,sim/%,$(SIMS)) $(SIM_OBJ_DIR)/*.cov $(patsubst %,$(OBJ_DIR)/%/coverage.dat,$(COCO_SIMS)) endif +$(DEMO_OBJ_DIR)/gfx_rom.bin: gfx_asm/assembler.py gfx_asm/default.s + $^ >$@ + +%.embed.o: %.bin + $(CROSS_COMPILE)ld -r -b binary -o $@ $< + %.bin: % $(CROSS_OBJCOPY) -O binary --only-section=._img $< $@ @@ -157,7 +163,8 @@ $(OBJ_DIR)/%.bin: $(SIM_OBJ_DIR)/% $(CROSS_OBJCOPY) -O binary --only-section=._img $< $@ $(DEMO_OBJ_DIR)/demo: $(DEMO_DIR)/link.ld $(patsubst $(DEMO_DIR)/%,$(DEMO_OBJ_DIR)/%.o,\ - $(basename $(wildcard $(DEMO_DIR)/*.c) $(wildcard $(DEMO_DIR)/*.S))) + $(basename $(wildcard $(DEMO_DIR)/*.c) $(wildcard $(DEMO_DIR)/*.S))) \ + $(DEMO_OBJ_DIR)/gfx_rom.embed.o $(CROSS_CC) $(CROSS_LDFLAGS) -o $@ -g -nostartfiles -nostdlib -T $^ -lgcc $(DEMO_OBJ_DIR)/%.o: $(DEMO_DIR)/%.c $(wildcard $(DEMO_DIR)/*.h) |
