* [PATCH 4/4 v2] limit _shipped to c h and S files
@ 2014-10-27 19:53 Nicholas Mc Guire
0 siblings, 0 replies; only message in thread
From: Nicholas Mc Guire @ 2014-10-27 19:53 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.
A special case for .inc_shipped is added to prevent breaking
drivers/net/wan/wanxlfw.inc_shipped which is a historic "firmware"
and can not be reasonably moved to to a loadable firmware.
This patch is against linux 3.18.0-rc1
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 54be19a..d94c3a9 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -216,7 +216,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] only message in thread
only message in thread, other threads:[~2014-10-27 19:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-27 19:53 [PATCH 4/4 v2] limit _shipped to c h and S files Nicholas Mc Guire
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).