From 961cf91482b1da5bc617c1036cadb988981ae8da Mon Sep 17 00:00:00 2001 From: Jacob Pease Date: Tue, 26 Sep 2023 15:16:45 -0500 Subject: [PATCH 1/2] Linux Makefile: Fixed find utility crashing for real this time. --- linux/Makefile | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/linux/Makefile b/linux/Makefile index 433bf0e73..093913eee 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -27,23 +27,6 @@ BINARIES := fw_jump.elf vmlinux busybox OBJDUMPS := $(foreach name, $(BINARIES), $(basename $(name) .elf)) OBJDUMPS := $(foreach name, $(OBJDUMPS), $(DIS)/$(name).objdump) -# LINUXDIR := $(shell ls $(BUILDROOT)/output/build | grep -e '^linux-[0-9]\+\.[0-9]\+\.[0-9]\+$$' ) -# LINUXDIR := $(BUILDROOT)/output/build/$(LINUXDIR) -# BUSYBOXDIR := $(shell ls $(BUILDROOT)/output/build | grep -e '^linux-[0-9]\+\.[0-9]\+\.[0-9]\+$$' ) -# BUSYBOXDIR := $(BUILDROOT)/output/build/$(BUSYBOXDIR) - -# Gets Linux and Busybox output folders for objedect dumps -# LINUXDIR ?= $(shell find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/linux-[0-9]+\.[0-9]+\.[0-9]+$$") -# BUSYBOXDIR ?= $(shell find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/busybox-[0-9]+\.[0-9]+\.[0-9]+$$") - -define linuxDir = -$(shell find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/linux-[0-9]+\.[0-9]+\.[0-9]+$$") -endef - -define busyboxDir = -$(shell find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/busybox-[0-9]+\.[0-9]+\.[0-9]+$$") -endef - .PHONY: all generate disassemble install clean cleanDTB cleanDriver test # Generate all device trees ------------------------------------------- @@ -59,8 +42,7 @@ all: # Temp rule for debugging test: - @echo $(linuxDir) - @echo $(busyboxDir) + echo $(shell find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/linux-[0-9]+\.[0-9]+\.[0-9]+$$") generate: $(DTB) $(IMAGES) @@ -87,11 +69,13 @@ $(DIS)/%.objdump: $(IMAGES)/%.elf $(DIS)/%.objdump: $(IMAGES)/% riscv64-unknown-elf-objdump -S $< >> $@ -$(IMAGES)/vmlinux: $(call linuxDir)/vmlinux - cp $< $@ +$(IMAGES)/vmlinux: + linuxDir=$$(find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/linux-[0-9]+\.[0-9]+\.[0-9]+$$") ;\ + cp $$linuxDir/vmlinux $@ ;\ -$(IMAGES)/busybox: $(call busyboxDir)/busybox - cp $< $@ +$(IMAGES)/busybox: + busyboxDir=$$(find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/busybox-[0-9]+\.[0-9]+\.[0-9]+$$") ;\ + cp $$busyboxDir/busybox $@ ;\ # Generating new Buildroot directories -------------------------------- From 2b1c604016b5ddd878b64b18debadf6ea4e676e5 Mon Sep 17 00:00:00 2001 From: Jacob Pease Date: Tue, 17 Oct 2023 14:13:18 -0500 Subject: [PATCH 2/2] Slight modification to testbench.sv --- testbench/testbench.sv | 1 + 1 file changed, 1 insertion(+) diff --git a/testbench/testbench.sv b/testbench/testbench.sv index 74077e547..dd83f7610 100644 --- a/testbench/testbench.sv +++ b/testbench/testbench.sv @@ -387,6 +387,7 @@ module testbench; assign SDCCmd = SDCCmdOE ? SDCCmdOut : 1'bz; assign SDCCmdIn = SDCCmd; + assign SDCDat = sd_dat_reg_t ? sd_dat_reg_o : sd_dat_i; assign SDCDatIn = SDCDat; -----/\----- EXCLUDED -----/\----- */ assign SDCIntr = '0;