diff --git a/linux/Makefile b/linux/Makefile index 621653aaa..ccabbeffe 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,27 +1,32 @@ 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: - +all: $(IMAGES) -patch: $(BUILDROOT) +patch: $(BUILDROOT) $(DRIVER) @ echo "${WALLYLINUX}" + cp ../addins/vivado-risc-v/patches/fpga-axi-sdc.c $(DRIVER) cp -r $(WALLYLINUX)/buildroot-config-src/wally $