From a62bfcef9a4710fa9c6e844dd4247e7172794c17 Mon Sep 17 00:00:00 2001 From: Bjarne von Horn Date: Fri, 7 Jun 2024 11:45:29 +0200 Subject: [PATCH] Fix out-of-tree build of various drivers --- devices/genet/Kbuild.in | 3 +++ devices/igc/Kbuild.in | 3 +++ devices/r8169/Kbuild.in | 3 +++ devices/stmmac/Kbuild.in | 3 +++ 4 files changed, 12 insertions(+) diff --git a/devices/genet/Kbuild.in b/devices/genet/Kbuild.in index 425808b1..077c834c 100644 --- a/devices/genet/Kbuild.in +++ b/devices/genet/Kbuild.in @@ -23,6 +23,9 @@ # #----------------------------------------------------------------------------- +src := @abs_srcdir@ +ccflags-y := -I@abs_top_builddir@ + TOPDIR := $(src)/../.. REV := $(shell if test -s $(TOPDIR)/revision; then \ diff --git a/devices/igc/Kbuild.in b/devices/igc/Kbuild.in index 201ff013..84999004 100644 --- a/devices/igc/Kbuild.in +++ b/devices/igc/Kbuild.in @@ -23,6 +23,9 @@ # #----------------------------------------------------------------------------- +src := @abs_srcdir@ +ccflags-y := -I@abs_top_builddir@ + TOPDIR := $(src)/../.. REV := $(shell if test -s $(TOPDIR)/revision; then \ diff --git a/devices/r8169/Kbuild.in b/devices/r8169/Kbuild.in index 1e55f6ef..b74dfe8e 100644 --- a/devices/r8169/Kbuild.in +++ b/devices/r8169/Kbuild.in @@ -23,6 +23,9 @@ # #----------------------------------------------------------------------------- +src := @abs_srcdir@ +ccflags-y := -I@abs_top_builddir@ + TOPDIR := $(src)/../.. REV := $(shell if test -s $(TOPDIR)/revision; then \ diff --git a/devices/stmmac/Kbuild.in b/devices/stmmac/Kbuild.in index 60564fb4..97e3aa49 100644 --- a/devices/stmmac/Kbuild.in +++ b/devices/stmmac/Kbuild.in @@ -31,6 +31,9 @@ # #----------------------------------------------------------------------------- +src := @abs_srcdir@ +ccflags-y := -I@abs_top_builddir@ + TOPDIR := $(src)/../.. REV := $(shell if test -s $(TOPDIR)/revision; then \