Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1623036 > unrolled thread

[PATCH 4/4] net: macb: Add macb_ptp to compilation chain

Started byRafal Ozieblo <rafalo@cadence.com>
First post2017-04-13 15:50 +0200
Last post2017-04-14 10:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4/4] net: macb: Add macb_ptp to compilation chain Rafal Ozieblo <rafalo@cadence.com> - 2017-04-13 15:50 +0200
    Re: [PATCH 4/4] net: macb: Add macb_ptp to compilation chain Richard Cochran <richardcochran@gmail.com> - 2017-04-14 10:00 +0200

#1623036 — [PATCH 4/4] net: macb: Add macb_ptp to compilation chain

FromRafal Ozieblo <rafalo@cadence.com>
Date2017-04-13 15:50 +0200
Subject[PATCH 4/4] net: macb: Add macb_ptp to compilation chain
Message-ID<tvNii-3GT-25@gated-at.bofh.it>
Add macb_ptp.c to Makefile.
In case that macb is compiled as a module, it has been renamed to
cadence-macb.ko to avoid naming confusion in Makefile.

Signed-off-by: Rafal Ozieblo <rafalo@cadence.com>
---
 drivers/net/ethernet/cadence/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/cadence/Makefile b/drivers/net/ethernet/cadence/Makefile
index 4ba7559..a7f6e04 100644
--- a/drivers/net/ethernet/cadence/Makefile
+++ b/drivers/net/ethernet/cadence/Makefile
@@ -1,6 +1,11 @@
 #
 # Makefile for the Atmel network device drivers.
 #
+cadence-macb-y	:= macb.o
 
-obj-$(CONFIG_MACB) += macb.o
+ifeq ($(CONFIG_MACB_USE_HWSTAMP),y)
+cadence-macb-y	+= macb_ptp.o
+endif
+
+obj-$(CONFIG_MACB) += cadence-macb.o
 obj-$(CONFIG_MACB_PCI) += macb_pci.o
-- 
2.4.5

[toc] | [next] | [standalone]


#1623552

FromRichard Cochran <richardcochran@gmail.com>
Date2017-04-14 10:00 +0200
Message-ID<tw4j8-6OJ-17@gated-at.bofh.it>
In reply to#1623036
On Thu, Apr 13, 2017 at 02:39:58PM +0100, Rafal Ozieblo wrote:
> Add macb_ptp.c to Makefile.
> In case that macb is compiled as a module, it has been renamed to
> cadence-macb.ko to avoid naming confusion in Makefile.

Renaming modules will break user's modpobe scripts.

Why not keep macb.ko as the build product and rename macb.c to
macb_main.c instead?

Thanks,
Richard

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web