summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown2009-05-01 16:41:06 +0200
committerMichael Brown2009-05-18 09:33:25 +0200
commitc44a193d0d147ed6f98741124569864e516e9d4b (patch)
tree94a9b841e13eb643181e180f358c8612b1b29bfc /src/core
parent[legal] Add licence.pl and %.licence make target (diff)
downloadipxe-c44a193d0d147ed6f98741124569864e516e9d4b.tar.gz
ipxe-c44a193d0d147ed6f98741124569864e516e9d4b.tar.xz
ipxe-c44a193d0d147ed6f98741124569864e516e9d4b.zip
[legal] Add a selection of FILE_LICENCE declarations
Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/acpi.c2
-rw-r--r--src/core/ansiesc.c2
-rw-r--r--src/core/asprintf.c2
-rw-r--r--src/core/base64.c2
-rw-r--r--src/core/basename.c2
-rw-r--r--src/core/bitmap.c2
-rw-r--r--src/core/bitops.c2
-rw-r--r--src/core/config.c2
-rw-r--r--src/core/console.c2
-rw-r--r--src/core/cpio.c2
-rw-r--r--src/core/cwuri.c2
-rw-r--r--src/core/device.c2
-rw-r--r--src/core/downloader.c2
-rw-r--r--src/core/exec.c2
-rw-r--r--src/core/filter.c2
-rw-r--r--src/core/getkey.c2
-rw-r--r--src/core/getopt.c2
-rw-r--r--src/core/image.c2
-rw-r--r--src/core/init.c2
-rw-r--r--src/core/interface.c2
-rw-r--r--src/core/iobuf.c2
-rw-r--r--src/core/job.c2
-rw-r--r--src/core/linebuf.c2
-rw-r--r--src/core/main.c2
-rw-r--r--src/core/malloc.c2
-rw-r--r--src/core/misc.c2
-rw-r--r--src/core/monojob.c2
-rw-r--r--src/core/nvo.c2
-rw-r--r--src/core/open.c2
-rw-r--r--src/core/posix_io.c2
-rw-r--r--src/core/process.c2
-rw-r--r--src/core/random.c2
-rw-r--r--src/core/refcnt.c2
-rw-r--r--src/core/resolv.c2
-rw-r--r--src/core/serial.c2
-rw-r--r--src/core/settings.c2
-rw-r--r--src/core/string.c2
-rw-r--r--src/core/timer.c2
-rw-r--r--src/core/uri.c2
-rw-r--r--src/core/uuid.c2
-rw-r--r--src/core/vsprintf.c2
-rw-r--r--src/core/xfer.c2
42 files changed, 84 insertions, 0 deletions
diff --git a/src/core/acpi.c b/src/core/acpi.c
index 94b7b2a18..b65f4d483 100644
--- a/src/core/acpi.c
+++ b/src/core/acpi.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/acpi.h>
/** @file
diff --git a/src/core/ansiesc.c b/src/core/ansiesc.c
index 6b820ada5..31306e2a8 100644
--- a/src/core/ansiesc.c
+++ b/src/core/ansiesc.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <string.h>
#include <assert.h>
#include <gpxe/ansiesc.h>
diff --git a/src/core/asprintf.c b/src/core/asprintf.c
index 94d7e7c43..03cf45cfc 100644
--- a/src/core/asprintf.c
+++ b/src/core/asprintf.c
@@ -4,6 +4,8 @@
#include <stdio.h>
#include <errno.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* Write a formatted string to newly allocated memory.
*
diff --git a/src/core/base64.c b/src/core/base64.c
index e54821e3e..5619ef7b1 100644
--- a/src/core/base64.c
+++ b/src/core/base64.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <string.h>
#include <assert.h>
diff --git a/src/core/basename.c b/src/core/basename.c
index 7340c0d55..a481c54f4 100644
--- a/src/core/basename.c
+++ b/src/core/basename.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/core/bitmap.c b/src/core/bitmap.c
index d02664719..bbe9cbaa1 100644
--- a/src/core/bitmap.c
+++ b/src/core/bitmap.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <errno.h>
#include <gpxe/bitmap.h>
diff --git a/src/core/bitops.c b/src/core/bitops.c
index 53abaaeac..1bca9e47b 100644
--- a/src/core/bitops.c
+++ b/src/core/bitops.c
@@ -1,5 +1,7 @@
#include <strings.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
int __flsl ( long x ) {
unsigned long value = x;
int ls = 0;
diff --git a/src/core/config.c b/src/core/config.c
index 0662a3a49..ecaf781fc 100644
--- a/src/core/config.c
+++ b/src/core/config.c
@@ -5,6 +5,8 @@
* your option) any later version.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <config/general.h>
#include <config/console.h>
diff --git a/src/core/console.c b/src/core/console.c
index 1ea3dc13e..e22d26019 100644
--- a/src/core/console.c
+++ b/src/core/console.c
@@ -5,6 +5,8 @@
/** @file */
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* Write a single character to each console device.
*
diff --git a/src/core/cpio.c b/src/core/cpio.c
index 7d2e88286..b303fa35f 100644
--- a/src/core/cpio.c
+++ b/src/core/cpio.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** @file
*
* CPIO archives
diff --git a/src/core/cwuri.c b/src/core/cwuri.c
index 81fd900e7..65e01b21e 100644
--- a/src/core/cwuri.c
+++ b/src/core/cwuri.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <gpxe/uri.h>
diff --git a/src/core/device.c b/src/core/device.c
index 1f57e4c6f..96ccc9ff3 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <string.h>
#include <gpxe/list.h>
#include <gpxe/tables.h>
diff --git a/src/core/downloader.c b/src/core/downloader.c
index 83027d388..5bde0a6be 100644
--- a/src/core/downloader.c
+++ b/src/core/downloader.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdlib.h>
#include <stdarg.h>
#include <errno.h>
diff --git a/src/core/exec.c b/src/core/exec.c
index 181ca4c56..25c578d5c 100644
--- a/src/core/exec.c
+++ b/src/core/exec.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
diff --git a/src/core/filter.c b/src/core/filter.c
index f9ebe7cf1..a8bee7dc2 100644
--- a/src/core/filter.c
+++ b/src/core/filter.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/xfer.h>
#include <gpxe/filter.h>
diff --git a/src/core/getkey.c b/src/core/getkey.c
index 787c90276..dbd074ccf 100644
--- a/src/core/getkey.c
+++ b/src/core/getkey.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <ctype.h>
#include <console.h>
#include <gpxe/process.h>
diff --git a/src/core/getopt.c b/src/core/getopt.c
index 6de412bb8..b67da0c13 100644
--- a/src/core/getopt.c
+++ b/src/core/getopt.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <string.h>
#include <stdio.h>
diff --git a/src/core/image.c b/src/core/image.c
index 0d188c308..24fe51ab9 100644
--- a/src/core/image.c
+++ b/src/core/image.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
diff --git a/src/core/init.c b/src/core/init.c
index e1c9dce0c..cd0f6dcc8 100644
--- a/src/core/init.c
+++ b/src/core/init.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/device.h>
#include <gpxe/init.h>
diff --git a/src/core/interface.c b/src/core/interface.c
index 37aabfe0d..43d58ed20 100644
--- a/src/core/interface.c
+++ b/src/core/interface.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/interface.h>
/** @file
diff --git a/src/core/iobuf.c b/src/core/iobuf.c
index cc4aedeae..1ce7890e4 100644
--- a/src/core/iobuf.c
+++ b/src/core/iobuf.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <errno.h>
#include <gpxe/malloc.h>
diff --git a/src/core/job.c b/src/core/job.c
index 6c2faf30f..2a6a8a032 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <string.h>
#include <errno.h>
#include <gpxe/job.h>
diff --git a/src/core/linebuf.c b/src/core/linebuf.c
index d02f37c34..221f4e1a6 100644
--- a/src/core/linebuf.c
+++ b/src/core/linebuf.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/core/main.c b/src/core/main.c
index 809d4dcf8..74452b788 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -14,6 +14,8 @@ Literature dealing with the network protocols:
**************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <gpxe/init.h>
#include <gpxe/features.h>
diff --git a/src/core/malloc.c b/src/core/malloc.c
index db7f1bedf..8b0bc24d2 100644
--- a/src/core/malloc.c
+++ b/src/core/malloc.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <stdint.h>
#include <string.h>
diff --git a/src/core/misc.c b/src/core/misc.c
index 1f51272dc..5a82c85cc 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -2,6 +2,8 @@
MISC Support Routines
**************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdlib.h>
#include <byteswap.h>
#include <gpxe/in.h>
diff --git a/src/core/monojob.c b/src/core/monojob.c
index 657bfd7ad..a24b559e1 100644
--- a/src/core/monojob.c
+++ b/src/core/monojob.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <string.h>
#include <stdio.h>
#include <errno.h>
diff --git a/src/core/nvo.c b/src/core/nvo.c
index e5c07d986..3dbf51d3f 100644
--- a/src/core/nvo.c
+++ b/src/core/nvo.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/core/open.c b/src/core/open.c
index beb67a037..d5eb30cfa 100644
--- a/src/core/open.c
+++ b/src/core/open.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdarg.h>
#include <string.h>
#include <errno.h>
diff --git a/src/core/posix_io.c b/src/core/posix_io.c
index 6f6d815ac..e6b1a0f69 100644
--- a/src/core/posix_io.c
+++ b/src/core/posix_io.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdlib.h>
#include <string.h>
#include <errno.h>
diff --git a/src/core/process.c b/src/core/process.c
index dcae9017f..6dacd6652 100644
--- a/src/core/process.c
+++ b/src/core/process.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/list.h>
#include <gpxe/init.h>
#include <gpxe/process.h>
diff --git a/src/core/random.c b/src/core/random.c
index d34e763a6..6e7374e34 100644
--- a/src/core/random.c
+++ b/src/core/random.c
@@ -4,6 +4,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdlib.h>
#include <gpxe/timer.h>
diff --git a/src/core/refcnt.c b/src/core/refcnt.c
index 30bb6deac..f2286cacd 100644
--- a/src/core/refcnt.c
+++ b/src/core/refcnt.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdlib.h>
#include <gpxe/refcnt.h>
diff --git a/src/core/resolv.c b/src/core/resolv.c
index 5a5d4afec..6f01f93e9 100644
--- a/src/core/resolv.c
+++ b/src/core/resolv.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/core/serial.c b/src/core/serial.c
index 5b3be39c3..d35e89e95 100644
--- a/src/core/serial.c
+++ b/src/core/serial.c
@@ -11,6 +11,8 @@
* parity, 1 stop bit (8N1). This can be changed in init_serial().
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include "stddef.h"
#include <gpxe/init.h>
#include <gpxe/io.h>
diff --git a/src/core/settings.c b/src/core/settings.c
index b00c0d079..3a58e39b1 100644
--- a/src/core/settings.c
+++ b/src/core/settings.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/src/core/string.c b/src/core/string.c
index 2e17bdcb0..190007a47 100644
--- a/src/core/string.c
+++ b/src/core/string.c
@@ -10,6 +10,8 @@
* published by the Free Software Foundation.
*/
+FILE_LICENCE ( GPL2_ONLY );
+
/*
* stupid library routines.. The optimized versions should generally be found
* as inline code in <asm-xx/string.h>
diff --git a/src/core/timer.c b/src/core/timer.c
index d71e3da1f..096d07ec0 100644
--- a/src/core/timer.c
+++ b/src/core/timer.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <unistd.h>
/**
diff --git a/src/core/uri.c b/src/core/uri.c
index 7bb46da0c..d31aabaf4 100644
--- a/src/core/uri.c
+++ b/src/core/uri.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** @file
*
* Uniform Resource Identifiers
diff --git a/src/core/uuid.c b/src/core/uuid.c
index a3a82c688..2b67d55d5 100644
--- a/src/core/uuid.c
+++ b/src/core/uuid.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdio.h>
#include <byteswap.h>
diff --git a/src/core/vsprintf.c b/src/core/vsprintf.c
index 4457fe4f4..21ab24292 100644
--- a/src/core/vsprintf.c
+++ b/src/core/vsprintf.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <stdarg.h>
#include <stdio.h>
diff --git a/src/core/xfer.c b/src/core/xfer.c
index 9ed19da21..a9bcb4d7b 100644
--- a/src/core/xfer.c
+++ b/src/core/xfer.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <string.h>
#include <stdio.h>
#include <errno.h>