Implement automatic module license checking according to new GNU

guidelines.

	* grub-core/kern/dl.c (grub_dl_check_license): New function.
	(grub_dl_load_core): Use grub_dl_check_license.
	* include/grub/dl.h (GRUB_MOD_SECTION): New macro.
	(GRUB_MOD_LICENSE): Likewise.
	(GRUB_MOD_DUAL_LICENSE): Likewise.
	All modules updated.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-04-11 23:01:51 +02:00
parent 2a9bc0169e
commit e745cf0ca6
175 changed files with 447 additions and 2 deletions

View file

@ -91,7 +91,12 @@ for cipher_file in cipher_files:
f = open (infile, "r")
fw = open (outfile, "w")
fw.write ("/* This file was automatically imported with \n")
fw.write (" import_gcry.py. Please don't modify it */\n");
fw.write (" import_gcry.py. Please don't modify it */\n")
fw.write ("#include <grub/dl.h>\n")
# Whole libgcrypt is distributedunder GPLv3+ or compatible
if isc:
fw.write ("GRUB_MOD_LICENSE (\"GPLv3+\");\n")
ciphernames = []
mdnames = []
hold = False