aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6d82466..43edd22 100644
--- a/Makefile
+++ b/Makefile
@@ -126,4 +126,13 @@ fuel-patches-import: .submodules-patched fuel-patches-clean
fuel-patches-clean:
$(MAKE) -e -C ${F_PATCH_DIR} clean
+# Add copyright header to patch files if not already present
+.PHONY: patches-copyright
+patches-copyright:
+ grep -e "Copyright (c)" -L ${A_PATCHES} | while read p_file; do \
+ ptmp=`mktemp` && \
+ cat armband-patch-copyright.template $$p_file > $$ptmp && \
+ mv $$ptmp $$p_file; \
+ done
+
# TODO: Bring back clean/debug/build after Fuel@OPNFV implements them for MCP