Skip to content

Commit

Permalink
net: atlantic: fix build when object tree is separate
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
cail authored and davem330 committed Sep 26, 2020
1 parent 5e46e43 commit 0594324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/aquantia/atlantic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

0 comments on commit 0594324

Please sign in to comment.