Skip to contentSkip to conversation

Automate make rule generation for gcc plugin objects

PATCH In review Emese Revfy 2 participants 2 messages Jun 26, 2016 – Jul 6, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Automate make rule generation for gcc plugin objects

---
 scripts/gcc-plugins/Makefile | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
scripts/gcc-plugins/Makefile +1 -4
index a3f8ca4a..898449d 100644
@@ -20,9 +20,6 @@ endif
 
 $(HOSTLIBS)-y := $(GCC_PLUGIN)
 always := $($(HOSTLIBS)-y)
-
-cyc_complexity_plugin-objs := cyc_complexity_plugin.o
-sancov_plugin-objs := sancov_plugin.o
-latent_entropy_plugin-objs := latent_entropy_plugin.o
+$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
 
 clean-files += *.so
Signature · 1 line
2.8.1
#1 lore raw
Quoted 3 lines · Emese Revfy

I've added a commit message body and applied this to my tree.

-Kees

Quoted 21 lines
---
 scripts/gcc-plugins/Makefile | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
scripts/gcc-plugins/Makefile +1 -5
index a3f8ca4a..898449d 100644
@@ -20,9 +20,6 @@ endif
 
 $(HOSTLIBS)-y := $(GCC_PLUGIN)
 always := $($(HOSTLIBS)-y)
-
-cyc_complexity_plugin-objs := cyc_complexity_plugin.o
-sancov_plugin-objs := sancov_plugin.o
-latent_entropy_plugin-objs := latent_entropy_plugin.o
+$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
 
 clean-files += *.so
--

2.8.1

Signature · 2 lines
Kees Cook
Chrome OS & Brillo Security