Linux makefile now copies the package contents with the correct package source.

This commit is contained in:
Jacob Pease 2023-08-02 14:56:23 -05:00
parent bb020221d5
commit 01276cd406
2 changed files with 7 additions and 3 deletions

View File

@ -2,15 +2,19 @@ RISCV := /opt/riscv
BUILDROOT := ${RISCV}/buildroot
IMAGES := ${BUILDROOT}/output/images
WALLYLINUX := $(shell pwd)
PACKAGE_SOURCE := ${WALLYLINUX}/buildroot-packages/package-source
FPGA_AXI_SDC := ${WALLYLINUX}/buildroot-packages/fpga-axi-sdc
.PHONY: all clean patch
all:
all:
sed -i 's|FPGA_AXI_SDC_SITE = __site__|FPGA_AXI_SDC_SITE = $(PACKAGE_SOURCE)|1' $(FPGA_AXI_SDC)/fpga-axi-sdc.mk
patch: $(BUILDROOT)
patch: $(BUILDROOT)
@ echo "${WALLYLINUX}"
cp -r $(WALLYLINUX)/buildroot-config-src/wally $</board
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
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

View File

@ -2,7 +2,7 @@ FPGA_AXI_SDC_MODULE_VERSION = 1.0
# TODO This variable needs to change based on where the package
# contents are stored on each individual computer. Might parameterize
# this somehow.
FPGA_AXI_SDC_SITE = /home/jpease/repos/fpga-axi-sdc
FPGA_AXI_SDC_SITE =
FPGA_AXI_SDC_SITE_METHOD = local
FPGA_AXI_SDC_LICENSE = GPLv2