net: atlantic: fix build when object tree is separate
Subsystems (3)
PATCH 1/1 net: atlantic: fix build when object tree is separate
Driver subfolder files refer parent folder includes in an absolute manner.
Makefile contains a -I for this, but apparently that does not work if object tree is separated.
Adding srctree to fix that.
Signed-off-by Igor Russkikh <[email protected]>
--- drivers/net/ethernet/aquantia/atlantic/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/aquantia/atlantic/Makefile +2 -2
@@ -8,7 +8,7 @@ obj-$(CONFIG_AQTION) += atlantic.o -ccflags-y += -I$(src) +ccflags-y += -I$(srctree)/$(src) atlantic-objs := aq_main.o \ aq_nic.o \
@@ -33,4 +33,4 @@ atlantic-objs := aq_main.o \ atlantic-$(CONFIG_MACSEC) += aq_macsec.o -atlantic-$(CONFIG_PTP_1588_CLOCK) += aq_ptp.o +atlantic-$(CONFIG_PTP_1588_CLOCK) += aq_ptp.o
Signature · 1 line
2.17.1
From: Igor Russkikh <[email protected]>
Date: Fri, 25 Sep 2020 23:27:35 +0300
Quoted 9 lines
Driver subfolder files refer parent folder includes in an absolute manner.
Makefilecontains a -I for this, but apparently that does not work if object tree is separated.Adding srctree to fix that.
Signed-off-by Igor Russkikh <[email protected]>
Applied.