project: prune sample hooks

These hooks are never used and often get stale, so just trim them.
Users rarely look in these dirs to begin with.

Change-Id: Ic785aa55fb7ec84a61376df101127d0018882030
Reviewed-by: Jack Neus <>
Tested-by: Mike Frysinger <>
diff --git a/ b/
index edd748d..338feff 100644
--- a/
+++ b/
@@ -2548,6 +2548,11 @@
     hooks = platform_utils.realpath(os.path.join(self.objdir, 'hooks'))
     if not os.path.exists(hooks):
+    # Delete sample hooks.  They're noise.
+    for hook in glob.glob(os.path.join(hooks, '*.sample')):
+      platform_utils.remove(hook, missing_ok=True)
     for stock_hook in _ProjectHooks():
       name = os.path.basename(stock_hook)