Use REPO_TOP in script, call script from makefile

This commit is contained in:
Byron Lathi
2023-10-06 13:18:36 -07:00
parent a5ff9fb5da
commit d27e442d5e
3 changed files with 4 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ $(INIT_MEM):
# The script that makes this file uses relative paths
$(SD_IMAGE): $(SD_IMAGE_PATH)
sh $(REPO_TOP)/sw/script/create_verilog_image.sh
cp $(SD_IMAGE_PATH) $(SD_IMAGE)
.PHONY: clean

View File

@@ -1,11 +1,11 @@
#!/bin/bash
BOOTLOADER=../bios/bootloader.bin
BOOTLOADER=$REPO_TOP/sw/bios/bootloader.bin
FILE=fs.fat
TMPMOUNT=/tmp/lo
FSDIR=../fsdir
FSDIR=$REPO_TOP/sw/fsdir
V=-v

View File

@@ -1,6 +1,6 @@
#!/bin/bash
BOOTLOADER=../bios/bootloader.bin
BOOTLOADER=$REPO_TOP/sw/bios/bootloader.bin
DEVICE=/dev/mmcblk0
TMPBOOTSECT=/tmp/bootsect
TMPMOUNT=/tmp/sd