浏览代码

[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 年前
父节点
当前提交
e65e4e930c
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      src/Makefile.housekeeping

+ 4
- 1
src/Makefile.housekeeping 查看文件

@@ -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_%,%,\

正在加载...
取消
保存