Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Add Linux DFL backport driver#14

Draft
pcolberg wants to merge 5 commits intomainfrom
pcolberg/backport
Draft

Add Linux DFL backport driver#14
pcolberg wants to merge 5 commits intomainfrom
pcolberg/backport

Conversation

@pcolberg
Copy link
Contributor

@pcolberg pcolberg commented Mar 19, 2024

This is an early draft that substitues the Linux DFL backport driver for the Linux DFL kernel, to build against the existing kernel used in the Yocto image, e.g., the IOTG Yocto BSP kernel or the GSRD SoC FPGA kernel.

This complements OFS/linux-dfl-backport#115 and OFS/linux-dfl-backport#116.

@pcolberg
Copy link
Contributor Author

To use the backport driver, modify GSRD's build.sh as follows:

diff --git a/build.sh b/build.sh
index 014db24..930e0d9 100755
--- a/build.sh
+++ b/build.sh
@@ -143,6 +143,7 @@ build_setup() {
 		echo -e "\n[INFO] Update bblayers.conf"
 		bitbake-layers add-layer ../meta-intel-fpga
 		bitbake-layers add-layer ../meta-intel-fpga-refdes
+		bitbake-layers add-layer ../meta-ofs
 		bitbake-layers add-layer ../meta-openembedded/meta-oe
 		bitbake-layers add-layer ../meta-openembedded/meta-python
 		bitbake-layers add-layer ../meta-openembedded/meta-networking
@@ -166,6 +167,8 @@ build_setup() {
 		echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-socfpga-lts"' >> conf/site.conf
 		echo "PREFERRED_VERSION_linux-socfpga-lts = \"`cut -d. -f1-2 <<< "$LINUX_VER"`%\"" >> conf/site.conf
 		echo "KBRANCH = \"$LINUX_SOCFPGA_BRANCH\"" >> conf/site.conf
+		# Linux DFL
+		echo "MACHINE_ESSENTIAL_EXTRA_RDEPENDS += \"intel-fpga-dfl-mod\"" >> conf/site.conf
 		# U-boot
 		echo 'PREFERRED_PROVIDER_virtual/bootloader = "u-boot-socfpga"' >> conf/site.conf
 		echo "UBOOT_CONFIG:${MACHINE} = \"$UB_CONFIG\"" >> conf/site.conf

https://docs.yoctoproject.org/kernel-dev/common.html#incorporating-out-of-tree-modules

@pcolberg pcolberg force-pushed the pcolberg/backport branch from 2d56def to 98a2d12 Compare March 20, 2024 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant