Find kernel in second stage bootloader

This commit is contained in:
Byron Lathi
2023-08-21 19:33:52 -07:00
parent 906516c4b5
commit de9353a009
3 changed files with 99 additions and 12 deletions

View File

@@ -8,6 +8,8 @@ BIN=$(NAME).bin
HEX=$(NAME).hex
FPGA_IMG=../../hw/efinix_fpga/init_hex.mem
EFX_RUN=/home/byron/Software/efinity/2023.1/scripts/efx_run.py
EFX_PRJ=/home/byron/Projects/super6502/hw/efinix_fpga/super6502.xml
LISTS=lists
TESTS=tests
@@ -21,6 +23,7 @@ all: $(HEX)
$(HEX): $(BIN)
objcopy --input-target=binary --output-target=verilog $(BIN) $(HEX)
cp boot2.bin ../fsdir
cmp $(HEX) $(FPGA_IMG); \
RETVAL=$$?; \
if [ $$RETVAL -eq 0 ]; then \