RISCV := /opt/riscv BUILDROOT := ${RISCV}/buildroot IMAGES := ${BUILDROOT}/output/images WALLY := $(shell dirname $(shell pwd)) WALLYLINUX := $(shell pwd) PACKAGE_SOURCE := ${WALLYLINUX}/buildroot-packages/package-source FPGA_AXI_SDC := ${WALLYLINUX}/buildroot-packages/fpga-axi-sdc DRIVER := ${PACKAGE_SOURCE}/fpga-axi-sdc.c .PHONY: all clean patch all: $(IMAGES) patch: $(BUILDROOT) $(DRIVER) @ echo "Patching buildroot directory at: $<" cp -r $(WALLYLINUX)/buildroot-config-src/wally $