mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-24 05:24:49 +00:00
Added a Makefile to the Linux directory to take care of the Buildroot setup and other dependencies.
This commit is contained in:
parent
7cf340f6eb
commit
068a0d10fd
23
linux/Makefile
Normal file
23
linux/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
RISCV := /opt/riscv
|
||||
BUILDROOT := ${RISCV}/buildroot
|
||||
IMAGES := ${BUILDROOT}/output/images
|
||||
WALLYLINUX := $(shell pwd)
|
||||
|
||||
.PHONY: all clean patch
|
||||
|
||||
all:
|
||||
|
||||
patch: $(BUILDROOT)
|
||||
@ echo "${WALLYLINUX}"
|
||||
cp -r $(WALLYLINUX)/buildroot-config-src/wally $</board
|
||||
cp -r $(WALLYLINUX)/buildroot-packages/fpga-axi-sdc $</package
|
||||
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
|
||||
cd $<; git apply $(WALLYLINUX)/buildroot-packages/package-2023.05.1.patch
|
||||
cd $<; cp ./board/wally/main.config .config
|
||||
|
||||
$(BUILDROOT):
|
||||
git clone https://github.com/buildroot/buildroot.git $@
|
||||
cd $@; git checkout 2023.05.x
|
||||
|
||||
clean:
|
Loading…
Reference in New Issue
Block a user