Ver código fonte

[legal] Ignore config/local header files for licensing purposes

The config/local/*.h files are expected to be empty in most cases.
This should not cause a licence determination to fail.

Fix by ignoring config/local/*.h for licensing purposes.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 anos atrás
pai
commit
e65e4e930c
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4
    1
      src/Makefile.housekeeping

+ 4
- 1
src/Makefile.housekeeping Ver arquivo

@@ -776,8 +776,11 @@ $(BIN)/%.nodeps : $(BIN)/%.tmp
776 776
 
777 777
 # Get licensing verdict for the specified target
778 778
 #
779
+define licensable_deps_list
780
+	$(filter-out config/local/%.h,$(call deps_list,$(1)))
781
+endef
779 782
 define unlicensed_deps_list
780
-	$(shell grep -L FILE_LICENCE $(call deps_list,$(1)))
783
+	$(shell grep -L FILE_LICENCE $(call licensable_deps_list,$(1)))
781 784
 endef
782 785
 define licence_list
783 786
 	$(patsubst __licence_%,%,\

Carregando…
Cancelar
Salvar