linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/1] platform/surface: aggregator: Ouse y instead of objs in Makefile
@ 2021-08-03 17:50 Andy Shevchenko
  2021-08-03 18:40 ` Maximilian Luz
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2021-08-03 17:50 UTC (permalink / raw)
  To: Hans de Goede, Maximilian Luz, Andy Shevchenko,
	platform-driver-x86, linux-kernel
  Cc: Mark Gross

The 'objs' is for user space tools, for the kernel modules
we should use 'y'.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/platform/surface/aggregator/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/platform/surface/aggregator/Makefile b/drivers/platform/surface/aggregator/Makefile
index c8498c41e758..ce548dba1d4b 100644
--- a/drivers/platform/surface/aggregator/Makefile
+++ b/drivers/platform/surface/aggregator/Makefile
@@ -6,12 +6,12 @@ CFLAGS_core.o = -I$(src)
 
 obj-$(CONFIG_SURFACE_AGGREGATOR) += surface_aggregator.o
 
-surface_aggregator-objs := core.o
-surface_aggregator-objs += ssh_parser.o
-surface_aggregator-objs += ssh_packet_layer.o
-surface_aggregator-objs += ssh_request_layer.o
-surface_aggregator-objs += controller.o
+surface_aggregator-y := core.o
+surface_aggregator-y += ssh_parser.o
+surface_aggregator-y += ssh_packet_layer.o
+surface_aggregator-y += ssh_request_layer.o
+surface_aggregator-y += controller.o
 
 ifeq ($(CONFIG_SURFACE_AGGREGATOR_BUS),y)
-surface_aggregator-objs += bus.o
+surface_aggregator-y += bus.o
 endif
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] platform/surface: aggregator: Ouse y instead of objs in Makefile
  2021-08-03 17:50 [PATCH v1 1/1] platform/surface: aggregator: Ouse y instead of objs in Makefile Andy Shevchenko
@ 2021-08-03 18:40 ` Maximilian Luz
  2021-08-03 19:21   ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Maximilian Luz @ 2021-08-03 18:40 UTC (permalink / raw)
  To: Andy Shevchenko, Hans de Goede, platform-driver-x86, linux-kernel
  Cc: Mark Gross

On 8/3/21 7:50 PM, Andy Shevchenko wrote:
> The 'objs' is for user space tools, for the kernel modules
> we should use 'y'.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Thank you! I was previously not aware of that distinction. Two small
notes:

  - There is a typo in the subject line.
  - With that change, the ifeq could be placed in-line (see note below).

All in all looks good to me (assuming the typo gets fixed).

Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>

> ---
>   drivers/platform/surface/aggregator/Makefile | 12 ++++++------
>   1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/platform/surface/aggregator/Makefile b/drivers/platform/surface/aggregator/Makefile
> index c8498c41e758..ce548dba1d4b 100644
> --- a/drivers/platform/surface/aggregator/Makefile
> +++ b/drivers/platform/surface/aggregator/Makefile
> @@ -6,12 +6,12 @@ CFLAGS_core.o = -I$(src)
>   
>   obj-$(CONFIG_SURFACE_AGGREGATOR) += surface_aggregator.o
>   
> -surface_aggregator-objs := core.o
> -surface_aggregator-objs += ssh_parser.o
> -surface_aggregator-objs += ssh_packet_layer.o
> -surface_aggregator-objs += ssh_request_layer.o
> -surface_aggregator-objs += controller.o
> +surface_aggregator-y := core.o
> +surface_aggregator-y += ssh_parser.o
> +surface_aggregator-y += ssh_packet_layer.o
> +surface_aggregator-y += ssh_request_layer.o
> +surface_aggregator-y += controller.o
>   
>   ifeq ($(CONFIG_SURFACE_AGGREGATOR_BUS),y)
> -surface_aggregator-objs += bus.o
> +surface_aggregator-y += bus.o
>   endif

I believe it should now be possible to write this as

     surface_aggregator-$(CONFIG_SURFACE_AGGREGATOR_BUS) += bus.o

which might be a bit cleaner. Don't have much of a preference though so
I'd also be fine with keeping the ifeq.

Regards,
Max

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] platform/surface: aggregator: Ouse y instead of objs in Makefile
  2021-08-03 18:40 ` Maximilian Luz
@ 2021-08-03 19:21   ` Andy Shevchenko
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2021-08-03 19:21 UTC (permalink / raw)
  To: Maximilian Luz
  Cc: Hans de Goede, platform-driver-x86, linux-kernel, Mark Gross

On Tue, Aug 03, 2021 at 08:40:10PM +0200, Maximilian Luz wrote:
> On 8/3/21 7:50 PM, Andy Shevchenko wrote:
> > The 'objs' is for user space tools, for the kernel modules
> > we should use 'y'.
> > 
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> Thank you! I was previously not aware of that distinction. Two small
> notes:
> 
>  - There is a typo in the subject line.
>  - With that change, the ifeq could be placed in-line (see note below).

Will address both.

> All in all looks good to me (assuming the typo gets fixed).
> 
> Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>

Thanks!

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-03 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 17:50 [PATCH v1 1/1] platform/surface: aggregator: Ouse y instead of objs in Makefile Andy Shevchenko
2021-08-03 18:40 ` Maximilian Luz
2021-08-03 19:21   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).