All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] limit _shipped to c,h and S files
@ 2014-10-01 13:36 Nicholas Mc Guire
  2014-10-01 13:55 ` Michal Marek
  0 siblings, 1 reply; 3+ messages in thread
From: Nicholas Mc Guire @ 2014-10-01 13:36 UTC (permalink / raw)
  To: Randy Dunlap, Michal Marek; +Cc: Christoph Hellwig, Joe Perches, LKML


limit _shipped to c,h and S files

_shipped targets are intended for generated source files which should
not permit .o binary blobs which is currently the case. This patch
simply restricts _shipped targets to .c, .h and .S files.

Note that this patch breaks the handline of drivers/net/wan/wanxlfw.inc_shipped
which probably really should be moved to a loadable firmware and use
request_firmware - a short term fix could be to move it to a .h file.

This patch is against linux 3.17.0-rc6

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
---
 scripts/Makefile.lib |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 260bf8a..adc4acb 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -207,7 +207,13 @@ endif
 quiet_cmd_shipped = SHIPPED $@
 cmd_shipped = cat $< > $@
 
-$(obj)/%: $(src)/%_shipped
+$(obj)/%.c: $(src)/%.c_shipped
+	$(call cmd,shipped)
+
+$(obj)/%.h: $(src)/%.h_shipped
+	$(call cmd,shipped)
+
+$(obj)/%.S: $(src)/%.S_shipped
 	$(call cmd,shipped)
 
 # Commands useful for building a boot image
-- 
1.7.10.4


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

* Re: [PATCH 2/3] limit _shipped to c,h and S files
  2014-10-01 13:36 [PATCH 2/3] limit _shipped to c,h and S files Nicholas Mc Guire
@ 2014-10-01 13:55 ` Michal Marek
  2014-10-02 18:55   ` Nicholas Mc Guire
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Marek @ 2014-10-01 13:55 UTC (permalink / raw)
  To: Nicholas Mc Guire; +Cc: Randy Dunlap, Christoph Hellwig, Joe Perches, LKML

On 2014-10-01 15:36, Nicholas Mc Guire wrote:
> 
> limit _shipped to c,h and S files
> 
> _shipped targets are intended for generated source files which should
> not permit .o binary blobs which is currently the case. This patch
> simply restricts _shipped targets to .c, .h and .S files.

Patches 1/3 and 3/3 are fine, but I'm not convinced about this one.
Sure, binary blobs are often distributed as *.o_shipped, but they are
not going away if you remove support for _shipped.


> Note that this patch breaks the handline of drivers/net/wan/wanxlfw.inc_shipped
> which probably really should be moved to a loadable firmware and use
> request_firmware - a short term fix could be to move it to a .h file.

At a minimum, the patch series should address this before limiting
support for *_shipped.

Michal

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

* Re: [PATCH 2/3] limit _shipped to c,h and S files
  2014-10-01 13:55 ` Michal Marek
@ 2014-10-02 18:55   ` Nicholas Mc Guire
  0 siblings, 0 replies; 3+ messages in thread
From: Nicholas Mc Guire @ 2014-10-02 18:55 UTC (permalink / raw)
  To: Michal Marek
  Cc: Randy Dunlap, Christoph Hellwig, Joe Perches, Krzysztof Halasa, LKML

On Wed, 01 Oct 2014, Michal Marek wrote:

> On 2014-10-01 15:36, Nicholas Mc Guire wrote:
> > 
> > limit _shipped to c,h and S files
> > 
> > _shipped targets are intended for generated source files which should
> > not permit .o binary blobs which is currently the case. This patch
> > simply restricts _shipped targets to .c, .h and .S files.
> 
> Patches 1/3 and 3/3 are fine, but I'm not convinced about this one.
> Sure, binary blobs are often distributed as *.o_shipped, but they are
> not going away if you remove support for _shipped.
> 
> 
> > Note that this patch breaks the handline of drivers/net/wan/wanxlfw.inc_shipped
> > which probably really should be moved to a loadable firmware and use
> > request_firmware - a short term fix could be to move it to a .h file.
> 
> At a minimum, the patch series should address this before limiting
> support for *_shipped.
>

Krzysztof Halasa <khc@pm.waw.pl> who is the author of drivers/net/wan/wanxl
(CCed) noted that "This is a driver for an old obscure early PCI 2 Mbit/s 
WAN board" so the probability of getting this migrated to the firmware 
interface is quite low.

Not sure if this form of addressing it is accpetable, it simply adds
a 4th case for the .inc_shipped with a INFO message noting it as
deprecated. 

proposed alternative for 2/3 below.

thx !
hofrat


limit _shipped to c,h and S files

_shipped targets are intended for generated source files which should
not permit .o binary blobs which is currently the case. This patch
simply restricts _shipped targets to .c, .h and .S files.

Note that limiting it to .c, .h and .S only would breaks the handling
of drivers/net/wan/wanxlfw.inc_shipped which is named .inc for mainly
historic reasons as a work around the .inc_shipped is treated as
expected but an additional note is printed indicating that this is
deprecated.

  INFO: use of .inc_shipped files is deprecated
  SHIPPED drivers/net/wan/wanxlfw.inc

This patch is against Linux 3.17.0-rc7

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
---
 scripts/Makefile.lib |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 260bf8a..2281ad9 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -207,7 +207,17 @@ endif
 quiet_cmd_shipped = SHIPPED $@
 cmd_shipped = cat $< > $@
 
-$(obj)/%: $(src)/%_shipped
+$(obj)/%.c: $(src)/%.c_shipped
+	$(call cmd,shipped)
+
+$(obj)/%.h: $(src)/%.h_shipped
+	$(call cmd,shipped)
+
+$(obj)/%.S: $(src)/%.S_shipped
+	$(call cmd,shipped)
+
+$(obj)/%.inc: $(src)/%.inc_shipped
+	@echo '  INFO: use of .inc_shipped files is deprecated'
 	$(call cmd,shipped)
 
 # Commands useful for building a boot image
-- 
1.7.10.4


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

end of thread, other threads:[~2014-10-02 18:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-01 13:36 [PATCH 2/3] limit _shipped to c,h and S files Nicholas Mc Guire
2014-10-01 13:55 ` Michal Marek
2014-10-02 18:55   ` Nicholas Mc Guire

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.