mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Buildroot can now be set up with the new Linux Makefile. The driver can now also be loaded from addins/vivado-risc-v and should be removed from the main Wally repo. A sed command customizes the package source location for the new buildroot directory.
This commit is contained in:
parent
e0a63f79ce
commit
064e863476
@ -1,27 +1,32 @@
|
|||||||
RISCV := /opt/riscv
|
RISCV := /opt/riscv
|
||||||
BUILDROOT := ${RISCV}/buildroot
|
BUILDROOT := ${RISCV}/buildroot
|
||||||
IMAGES := ${BUILDROOT}/output/images
|
IMAGES := ${BUILDROOT}/output/images
|
||||||
|
WALLY := $(shell dirname $(shell pwd))
|
||||||
WALLYLINUX := $(shell pwd)
|
WALLYLINUX := $(shell pwd)
|
||||||
PACKAGE_SOURCE := ${WALLYLINUX}/buildroot-packages/package-source
|
PACKAGE_SOURCE := ${WALLYLINUX}/buildroot-packages/package-source
|
||||||
FPGA_AXI_SDC := ${WALLYLINUX}/buildroot-packages/fpga-axi-sdc
|
FPGA_AXI_SDC := ${WALLYLINUX}/buildroot-packages/fpga-axi-sdc
|
||||||
|
DRIVER := ${PACKAGE_SOURCE}/fpga-axi-sdc.c
|
||||||
|
|
||||||
.PHONY: all clean patch
|
.PHONY: all clean patch
|
||||||
|
|
||||||
all:
|
all: $(IMAGES)
|
||||||
|
|
||||||
|
|
||||||
patch: $(BUILDROOT)
|
patch: $(BUILDROOT) $(DRIVER)
|
||||||
@ echo "${WALLYLINUX}"
|
@ echo "${WALLYLINUX}"
|
||||||
|
cp ../addins/vivado-risc-v/patches/fpga-axi-sdc.c $(DRIVER)
|
||||||
cp -r $(WALLYLINUX)/buildroot-config-src/wally $</board
|
cp -r $(WALLYLINUX)/buildroot-config-src/wally $</board
|
||||||
cp -r $(WALLYLINUX)/buildroot-packages/fpga-axi-sdc $</package
|
cp -r $(WALLYLINUX)/buildroot-packages/fpga-axi-sdc $</package
|
||||||
sed -i 's|FPGA_AXI_SDC_SITE =|FPGA_AXI_SDC_SITE = $(PACKAGE_SOURCE)|1' $(BUILDROOT)/package/fpga-axi-sdc/fpga-axi-sdc.mk
|
sed -i 's|FPGA_AXI_SDC_SITE =|FPGA_AXI_SDC_SITE = $(PACKAGE_SOURCE)|1' $(BUILDROOT)/package/fpga-axi-sdc/fpga-axi-sdc.mk
|
||||||
cp $(WALLYLINUX)/buildroot-config-src/buildroot-2023.05.1/linux.config $</board/wally/linux.config
|
cp $(WALLYLINUX)/buildroot-config-src/buildroot-2023.05.1/linux.config $</board/wally/linux.config
|
||||||
cp $(WALLYLINUX)/buildroot-config-src/buildroot-2023.05.1/main.config $</board/wally/main.config
|
cp $(WALLYLINUX)/buildroot-config-src/buildroot-2023.05.1/main.config $</board/wally/main.config
|
||||||
cd $<; git apply $(WALLYLINUX)/buildroot-packages/package-2023.05.1.patch
|
cd $<; git apply $(WALLYLINUX)/buildroot-packages/package-2023.05.1.patch
|
||||||
cd $<; cp ./board/wally/main.config .config
|
cd $<; cp $(BUILDROOT)/board/wally/main.config $(BUILDROOT)/.config
|
||||||
|
|
||||||
$(BUILDROOT):
|
$(BUILDROOT):
|
||||||
git clone https://github.com/buildroot/buildroot.git $@
|
git clone https://github.com/buildroot/buildroot.git $@
|
||||||
cd $@; git checkout 2023.05.x
|
cd $@; git checkout 2023.05.x
|
||||||
|
|
||||||
|
$(DRIVER):
|
||||||
|
@ if [ -d "$(WALLY)/addins/vivado-risc-v" ] ; then git submodule update --init $(WALLY)/addins/vivado-risc-v; fi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user