* [PATCH net] net: atlantic: fix build when object tree is separate
@ 2020-09-25 20:27 Igor Russkikh
2020-09-26 0:19 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Igor Russkikh @ 2020-09-25 20:27 UTC (permalink / raw)
To: netdev; +Cc: David S . Miller, Jakub Kicinski, Igor Russkikh
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 <irusskikh@marvell.com>
---
drivers/net/ethernet/aquantia/atlantic/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/aquantia/atlantic/Makefile b/drivers/net/ethernet/aquantia/atlantic/Makefile
index 130a105d03f3..8ebcc68e807f 100644
--- a/drivers/net/ethernet/aquantia/atlantic/Makefile
+++ b/drivers/net/ethernet/aquantia/atlantic/Makefile
@@ -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
\ No newline at end of file
+atlantic-$(CONFIG_PTP_1588_CLOCK) += aq_ptp.o
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] net: atlantic: fix build when object tree is separate
2020-09-25 20:27 [PATCH net] net: atlantic: fix build when object tree is separate Igor Russkikh
@ 2020-09-26 0:19 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-09-26 0:19 UTC (permalink / raw)
To: irusskikh; +Cc: netdev, kuba
From: Igor Russkikh <irusskikh@marvell.com>
Date: Fri, 25 Sep 2020 23:27:35 +0300
> 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 <irusskikh@marvell.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-26 0:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 20:27 [PATCH net] net: atlantic: fix build when object tree is separate Igor Russkikh
2020-09-26 0:19 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.