summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2009-05-01 16:41:06 +0200
committerMichael Brown2009-05-18 09:33:25 +0200
commitc44a193d0d147ed6f98741124569864e516e9d4b (patch)
tree94a9b841e13eb643181e180f358c8612b1b29bfc
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.
-rw-r--r--src/arch/i386/core/basemem_packet.c2
-rw-r--r--src/arch/i386/core/pic8259.c2
-rw-r--r--src/arch/i386/core/rdtsc_timer.c2
-rw-r--r--src/arch/i386/core/relocate.c2
-rw-r--r--src/arch/i386/core/setjmp.S2
-rw-r--r--src/arch/i386/core/stack.S2
-rw-r--r--src/arch/i386/core/stack16.S2
-rw-r--r--src/arch/i386/core/timer2.c2
-rw-r--r--src/arch/i386/core/virtaddr.S2
-rw-r--r--src/arch/i386/core/x86_io.c2
-rw-r--r--src/arch/i386/drivers/net/undi.c2
-rw-r--r--src/arch/i386/drivers/net/undiisr.S2
-rw-r--r--src/arch/i386/drivers/net/undiload.c2
-rw-r--r--src/arch/i386/drivers/net/undinet.c2
-rw-r--r--src/arch/i386/drivers/net/undionly.c2
-rw-r--r--src/arch/i386/drivers/net/undipreload.c2
-rw-r--r--src/arch/i386/drivers/net/undirom.c2
-rw-r--r--src/arch/i386/firmware/pcbios/basemem.c2
-rw-r--r--src/arch/i386/firmware/pcbios/bios_console.c2
-rw-r--r--src/arch/i386/firmware/pcbios/e820mangler.S4
-rw-r--r--src/arch/i386/firmware/pcbios/fakee820.c2
-rw-r--r--src/arch/i386/firmware/pcbios/gateA20.c2
-rw-r--r--src/arch/i386/firmware/pcbios/hidemem.c2
-rw-r--r--src/arch/i386/firmware/pcbios/memmap.c2
-rw-r--r--src/arch/i386/firmware/pcbios/pnpbios.c2
-rw-r--r--src/arch/i386/image/bootsector.c2
-rw-r--r--src/arch/i386/image/bzimage.c2
-rw-r--r--src/arch/i386/image/com32.c2
-rw-r--r--src/arch/i386/image/comboot.c2
-rw-r--r--src/arch/i386/image/elfboot.c2
-rw-r--r--src/arch/i386/image/eltorito.c2
-rw-r--r--src/arch/i386/image/multiboot.c2
-rw-r--r--src/arch/i386/image/pxe_image.c2
-rw-r--r--src/arch/i386/include/basemem.h2
-rw-r--r--src/arch/i386/include/basemem_packet.h2
-rw-r--r--src/arch/i386/include/bios.h2
-rw-r--r--src/arch/i386/include/biosint.h2
-rw-r--r--src/arch/i386/include/bits/byteswap.h2
-rw-r--r--src/arch/i386/include/bits/compiler.h2
-rw-r--r--src/arch/i386/include/bits/endian.h2
-rw-r--r--src/arch/i386/include/bits/errfile.h2
-rw-r--r--src/arch/i386/include/bits/io.h2
-rw-r--r--src/arch/i386/include/bits/nap.h2
-rw-r--r--src/arch/i386/include/bits/smbios.h2
-rw-r--r--src/arch/i386/include/bits/stdint.h2
-rw-r--r--src/arch/i386/include/bits/timer.h2
-rw-r--r--src/arch/i386/include/bits/uaccess.h2
-rw-r--r--src/arch/i386/include/bits/umalloc.h2
-rw-r--r--src/arch/i386/include/bootsector.h2
-rw-r--r--src/arch/i386/include/bzimage.h2
-rw-r--r--src/arch/i386/include/comboot.h2
-rw-r--r--src/arch/i386/include/fakee820.h2
-rw-r--r--src/arch/i386/include/gpxe/abft.h2
-rw-r--r--src/arch/i386/include/gpxe/bios_nap.h2
-rw-r--r--src/arch/i386/include/gpxe/bios_smbios.h2
-rw-r--r--src/arch/i386/include/gpxe/bios_timer.h2
-rw-r--r--src/arch/i386/include/gpxe/ibft.h2
-rw-r--r--src/arch/i386/include/gpxe/memtop_umalloc.h2
-rw-r--r--src/arch/i386/include/gpxe/rdtsc_timer.h2
-rw-r--r--src/arch/i386/include/gpxe/timer2.h2
-rw-r--r--src/arch/i386/include/gpxe/x86_io.h2
-rw-r--r--src/arch/i386/include/int13.h2
-rwxr-xr-xsrc/arch/i386/include/librm.h2
-rw-r--r--src/arch/i386/include/limits.h2
-rw-r--r--src/arch/i386/include/memsizes.h2
-rw-r--r--src/arch/i386/include/multiboot.h2
-rw-r--r--src/arch/i386/include/pic8259.h2
-rw-r--r--src/arch/i386/include/pnpbios.h2
-rw-r--r--src/arch/i386/include/pxe.h2
-rw-r--r--src/arch/i386/include/pxe_api.h2
-rw-r--r--src/arch/i386/include/pxe_call.h2
-rw-r--r--src/arch/i386/include/pxe_types.h2
-rw-r--r--src/arch/i386/include/realmode.h2
-rw-r--r--src/arch/i386/include/registers.h2
-rw-r--r--src/arch/i386/include/setjmp.h2
-rw-r--r--src/arch/i386/include/undi.h2
-rw-r--r--src/arch/i386/include/undiload.h2
-rw-r--r--src/arch/i386/include/undinet.h2
-rw-r--r--src/arch/i386/include/undipreload.h2
-rw-r--r--src/arch/i386/include/undirom.h2
-rw-r--r--src/arch/i386/interface/pcbios/abft.c2
-rw-r--r--src/arch/i386/interface/pcbios/aoeboot.c2
-rw-r--r--src/arch/i386/interface/pcbios/bios_nap.c2
-rw-r--r--src/arch/i386/interface/pcbios/bios_smbios.c2
-rw-r--r--src/arch/i386/interface/pcbios/bios_timer.c2
-rw-r--r--src/arch/i386/interface/pcbios/biosint.c2
-rw-r--r--src/arch/i386/interface/pcbios/ibft.c2
-rw-r--r--src/arch/i386/interface/pcbios/int13.c2
-rw-r--r--src/arch/i386/interface/pcbios/iscsiboot.c2
-rw-r--r--src/arch/i386/interface/pcbios/memtop_umalloc.c2
-rw-r--r--src/arch/i386/interface/pcbios/pcibios.c2
-rw-r--r--src/arch/i386/interface/pxe/pxe_call.c2
-rw-r--r--src/arch/i386/interface/pxe/pxe_entry.S2
-rw-r--r--src/arch/i386/interface/pxe/pxe_file.c2
-rw-r--r--src/arch/i386/interface/pxe/pxe_loader.c2
-rw-r--r--src/arch/i386/interface/pxe/pxe_preboot.c2
-rw-r--r--src/arch/i386/interface/pxe/pxe_tftp.c2
-rw-r--r--src/arch/i386/interface/pxe/pxe_udp.c2
-rw-r--r--src/arch/i386/interface/pxe/pxe_undi.c2
-rw-r--r--src/arch/i386/interface/syslinux/com32_call.c2
-rw-r--r--src/arch/i386/interface/syslinux/com32_wrapper.S2
-rw-r--r--src/arch/i386/interface/syslinux/comboot_call.c2
-rw-r--r--src/arch/i386/interface/syslinux/comboot_resolv.c2
-rw-r--r--src/arch/i386/prefix/bootpart.S2
-rw-r--r--src/arch/i386/prefix/dskprefix.S2
-rw-r--r--src/arch/i386/prefix/hdprefix.S2
-rw-r--r--src/arch/i386/prefix/kkpxeprefix.S2
-rw-r--r--src/arch/i386/prefix/kpxeprefix.S2
-rw-r--r--src/arch/i386/prefix/libprefix.S2
-rw-r--r--src/arch/i386/prefix/lkrnprefix.S2
-rw-r--r--src/arch/i386/prefix/pxeprefix.S2
-rw-r--r--src/arch/i386/prefix/unnrv2b.S2
-rw-r--r--src/arch/i386/prefix/unnrv2b16.S2
-rw-r--r--src/arch/i386/transitions/libkir.S2
-rwxr-xr-xsrc/arch/i386/transitions/librm.S2
-rwxr-xr-xsrc/arch/i386/transitions/librm_mgmt.c2
-rw-r--r--src/arch/x86/core/pcidirect.c2
-rw-r--r--src/arch/x86/core/x86_string.c2
-rw-r--r--src/arch/x86/include/bits/pci_io.h2
-rw-r--r--src/arch/x86/include/bits/string.h2
-rw-r--r--src/arch/x86/include/gpxe/efi/efix86_nap.h2
-rw-r--r--src/arch/x86/include/gpxe/pcibios.h2
-rw-r--r--src/arch/x86/include/gpxe/pcidirect.h2
-rw-r--r--src/arch/x86/interface/efi/efix86_nap.c2
-rw-r--r--src/arch/x86/prefix/efidrvprefix.c2
-rw-r--r--src/arch/x86/prefix/efiprefix.c2
-rw-r--r--src/config/console.h2
-rw-r--r--src/config/defaults.h2
-rw-r--r--src/config/defaults/pcbios.h2
-rw-r--r--src/config/general.h2
-rw-r--r--src/config/ioapi.h2
-rw-r--r--src/config/nap.h2
-rw-r--r--src/config/serial.h2
-rw-r--r--src/config/timer.h2
-rw-r--r--src/config/umalloc.h2
-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
-rw-r--r--src/crypto/asn1.c2
-rw-r--r--src/crypto/axtls_aes.c2
-rw-r--r--src/crypto/cbc.c2
-rw-r--r--src/crypto/chap.c2
-rw-r--r--src/crypto/crypto_null.c2
-rw-r--r--src/crypto/hmac.c2
-rw-r--r--src/crypto/md5.c2
-rw-r--r--src/crypto/x509.c2
-rw-r--r--src/drivers/bitbash/bitbash.c2
-rw-r--r--src/drivers/bitbash/i2c_bit.c2
-rw-r--r--src/drivers/bitbash/spi_bit.c2
-rw-r--r--src/drivers/block/ata.c2
-rw-r--r--src/drivers/block/ramdisk.c2
-rw-r--r--src/drivers/block/scsi.c2
-rw-r--r--src/drivers/bus/eisa.c2
-rw-r--r--src/drivers/bus/isa.c2
-rw-r--r--src/drivers/bus/isapnp.c2
-rw-r--r--src/drivers/bus/mca.c2
-rw-r--r--src/drivers/bus/pci.c2
-rw-r--r--src/drivers/bus/pciextra.c2
-rw-r--r--src/drivers/infiniband/MT25218_PRM.h2
-rw-r--r--src/drivers/infiniband/MT25408_PRM.h2
-rw-r--r--src/drivers/infiniband/arbel.c2
-rw-r--r--src/drivers/infiniband/arbel.h2
-rw-r--r--src/drivers/infiniband/hermon.c2
-rw-r--r--src/drivers/infiniband/hermon.h2
-rw-r--r--src/drivers/infiniband/ib_packet.c2
-rw-r--r--src/drivers/infiniband/ib_sma.c2
-rw-r--r--src/drivers/infiniband/ib_smc.c2
-rw-r--r--src/drivers/infiniband/linda.c2
-rw-r--r--src/drivers/infiniband/linda.h2
-rw-r--r--src/drivers/infiniband/linda_fw.c2
-rw-r--r--src/drivers/infiniband/mlx_bitops.h2
-rw-r--r--src/drivers/infiniband/qib_7220_regs.h1
-rw-r--r--src/drivers/infiniband/qib_genbits.pl3
-rw-r--r--src/drivers/net/3c509.c2
-rw-r--r--src/drivers/net/3c509.h2
-rw-r--r--src/drivers/net/3c515.c1
-rw-r--r--src/drivers/net/3c529.c2
-rw-r--r--src/drivers/net/3c595.c2
-rw-r--r--src/drivers/net/3c595.h2
-rw-r--r--src/drivers/net/3c5x9.c2
-rw-r--r--src/drivers/net/3c90x.c2
-rw-r--r--src/drivers/net/3c90x.h2
-rw-r--r--src/drivers/net/amd8111e.c2
-rw-r--r--src/drivers/net/amd8111e.h2
-rw-r--r--src/drivers/net/b44.c2
-rw-r--r--src/drivers/net/b44.h3
-rw-r--r--src/drivers/net/bnx2.c1
-rw-r--r--src/drivers/net/bnx2.h1
-rw-r--r--src/drivers/net/cs89x0.c2
-rw-r--r--src/drivers/net/cs89x0.h2
-rw-r--r--src/drivers/net/davicom.c2
-rw-r--r--src/drivers/net/depca.c2
-rw-r--r--src/drivers/net/dmfe.c2
-rw-r--r--src/drivers/net/e1000/e1000.c2
-rw-r--r--src/drivers/net/e1000/e1000.h2
-rw-r--r--src/drivers/net/e1000/e1000_hw.c2
-rw-r--r--src/drivers/net/e1000/e1000_hw.h2
-rw-r--r--src/drivers/net/e1000/e1000_osdep.h1
-rw-r--r--src/drivers/net/eepro.c2
-rw-r--r--src/drivers/net/eepro100.c2
-rw-r--r--src/drivers/net/epic100.c2
-rw-r--r--src/drivers/net/epic100.h2
-rw-r--r--src/drivers/net/etherfabric.c3
-rw-r--r--src/drivers/net/etherfabric.h2
-rw-r--r--src/drivers/net/etherfabric_nic.h3
-rw-r--r--src/drivers/net/forcedeth.c2
-rw-r--r--src/drivers/net/hfa384x.h2
-rw-r--r--src/drivers/net/ipoib.c2
-rw-r--r--src/drivers/net/legacy.c2
-rw-r--r--src/drivers/net/mtd80x.c2
-rw-r--r--src/drivers/net/mtnic.c3
-rw-r--r--src/drivers/net/mtnic.h3
-rw-r--r--src/drivers/net/natsemi.c2
-rw-r--r--src/drivers/net/natsemi.h2
-rw-r--r--src/drivers/net/ne2k_isa.c2
-rwxr-xr-xsrc/drivers/net/ns83820.c2
-rw-r--r--src/drivers/net/ns8390.c2
-rw-r--r--src/drivers/net/ns8390.h2
-rw-r--r--src/drivers/net/p80211hdr.h2
-rw-r--r--src/drivers/net/pcnet32.c2
-rw-r--r--src/drivers/net/phantom/nx_bitops.h2
-rw-r--r--src/drivers/net/phantom/nxhal_nic_interface.h2
-rw-r--r--src/drivers/net/phantom/phantom.c2
-rw-r--r--src/drivers/net/phantom/phantom.h2
-rw-r--r--src/drivers/net/phantom/phantom_hw.h2
-rw-r--r--src/drivers/net/pnic.c2
-rw-r--r--src/drivers/net/pnic_api.h2
-rw-r--r--src/drivers/net/prism2.c2
-rw-r--r--src/drivers/net/prism2_pci.c2
-rw-r--r--src/drivers/net/prism2_plx.c2
-rw-r--r--src/drivers/net/r8169.c2
-rw-r--r--src/drivers/net/r8169.h2
-rw-r--r--src/drivers/net/rtl8139.c2
-rw-r--r--src/drivers/net/sis900.c2
-rw-r--r--src/drivers/net/sis900.h2
-rw-r--r--src/drivers/net/smc9000.c3
-rw-r--r--src/drivers/net/smc9000.h3
-rw-r--r--src/drivers/net/sundance.c2
-rw-r--r--src/drivers/net/tg3.c2
-rw-r--r--src/drivers/net/tg3.h2
-rw-r--r--src/drivers/net/tlan.c2
-rw-r--r--src/drivers/net/tlan.h2
-rw-r--r--src/drivers/net/tulip.c2
-rw-r--r--src/drivers/net/w89c840.c2
-rw-r--r--src/drivers/net/wlan_compat.h2
-rw-r--r--src/drivers/nvs/nvs.c2
-rw-r--r--src/drivers/nvs/spi.c2
-rw-r--r--src/drivers/nvs/threewire.c2
-rw-r--r--src/hci/commands/autoboot_cmd.c2
-rw-r--r--src/hci/commands/config_cmd.c2
-rw-r--r--src/hci/commands/dhcp_cmd.c2
-rw-r--r--src/hci/commands/ifmgmt_cmd.c2
-rw-r--r--src/hci/commands/image_cmd.c2
-rw-r--r--src/hci/commands/login_cmd.c2
-rw-r--r--src/hci/commands/nvo_cmd.c2
-rw-r--r--src/hci/commands/route_cmd.c2
-rw-r--r--src/hci/commands/sanboot_cmd.c2
-rw-r--r--src/hci/editstring.c2
-rw-r--r--src/hci/mucurses/ansi_screen.c2
-rw-r--r--src/hci/mucurses/clear.c2
-rw-r--r--src/hci/mucurses/colour.c2
-rw-r--r--src/hci/mucurses/cursor.h2
-rw-r--r--src/hci/mucurses/mucurses.c2
-rw-r--r--src/hci/mucurses/mucurses.h2
-rw-r--r--src/hci/mucurses/print.c2
-rw-r--r--src/hci/mucurses/widgets/editbox.c2
-rw-r--r--src/hci/mucurses/winattrs.c2
-rw-r--r--src/hci/mucurses/wininit.c2
-rw-r--r--src/hci/readline.c2
-rw-r--r--src/hci/shell.c2
-rw-r--r--src/hci/shell_banner.c2
-rw-r--r--src/hci/strerror.c2
-rw-r--r--src/hci/tui/login_ui.c2
-rw-r--r--src/hci/tui/settings_ui.c2
-rw-r--r--src/image/efi_image.c2
-rw-r--r--src/image/elf.c2
-rw-r--r--src/image/embedded.c2
-rw-r--r--src/image/script.c2
-rw-r--r--src/image/segment.c2
-rw-r--r--src/include/assert.h2
-rw-r--r--src/include/byteswap.h2
-rw-r--r--src/include/console.h2
-rw-r--r--src/include/ctype.h2
-rw-r--r--src/include/curses.h2
-rw-r--r--src/include/elf.h2
-rw-r--r--src/include/endian.h2
-rw-r--r--src/include/errno.h2
-rw-r--r--src/include/etherboot.h2
-rw-r--r--src/include/getopt.h2
-rw-r--r--src/include/gpxe/acpi.h2
-rw-r--r--src/include/gpxe/aes.h2
-rw-r--r--src/include/gpxe/ansiesc.h2
-rw-r--r--src/include/gpxe/aoe.h2
-rw-r--r--src/include/gpxe/api.h2
-rw-r--r--src/include/gpxe/arp.h2
-rw-r--r--src/include/gpxe/asn1.h2
-rw-r--r--src/include/gpxe/ata.h2
-rw-r--r--src/include/gpxe/base64.h2
-rw-r--r--src/include/gpxe/bitbash.h2
-rw-r--r--src/include/gpxe/bitmap.h2
-rw-r--r--src/include/gpxe/bitops.h2
-rw-r--r--src/include/gpxe/blockdev.h2
-rw-r--r--src/include/gpxe/cbc.h2
-rw-r--r--src/include/gpxe/chap.h2
-rw-r--r--src/include/gpxe/command.h2
-rw-r--r--src/include/gpxe/cpio.h2
-rw-r--r--src/include/gpxe/crypto.h2
-rw-r--r--src/include/gpxe/device.h2
-rw-r--r--src/include/gpxe/dhcp.h2
-rw-r--r--src/include/gpxe/dhcpopts.h2
-rw-r--r--src/include/gpxe/dhcppkt.h2
-rw-r--r--src/include/gpxe/dns.h2
-rw-r--r--src/include/gpxe/downloader.h2
-rw-r--r--src/include/gpxe/editbox.h2
-rw-r--r--src/include/gpxe/editstring.h2
-rw-r--r--src/include/gpxe/efi/efi_io.h2
-rw-r--r--src/include/gpxe/efi/efi_pci.h2
-rw-r--r--src/include/gpxe/efi/efi_smbios.h2
-rw-r--r--src/include/gpxe/efi/efi_timer.h2
-rw-r--r--src/include/gpxe/efi/efi_uaccess.h2
-rw-r--r--src/include/gpxe/efi/efi_umalloc.h2
-rw-r--r--src/include/gpxe/eisa.h2
-rw-r--r--src/include/gpxe/elf.h2
-rw-r--r--src/include/gpxe/errfile.h2
-rw-r--r--src/include/gpxe/errortab.h2
-rw-r--r--src/include/gpxe/ethernet.h2
-rw-r--r--src/include/gpxe/fakedhcp.h2
-rw-r--r--src/include/gpxe/features.h2
-rw-r--r--src/include/gpxe/filter.h2
-rw-r--r--src/include/gpxe/ftp.h2
-rw-r--r--src/include/gpxe/gdbserial.h2
-rw-r--r--src/include/gpxe/gdbstub.h2
-rw-r--r--src/include/gpxe/gdbudp.h2
-rw-r--r--src/include/gpxe/hidemem.h2
-rw-r--r--src/include/gpxe/hmac.h2
-rw-r--r--src/include/gpxe/http.h2
-rw-r--r--src/include/gpxe/i2c.h2
-rw-r--r--src/include/gpxe/ib_mad.h2
-rw-r--r--src/include/gpxe/ib_packet.h2
-rw-r--r--src/include/gpxe/ib_sma.h2
-rw-r--r--src/include/gpxe/ib_smc.h2
-rw-r--r--src/include/gpxe/icmp.h2
-rw-r--r--src/include/gpxe/icmp6.h2
-rw-r--r--src/include/gpxe/if_arp.h2
-rw-r--r--src/include/gpxe/if_ether.h2
-rw-r--r--src/include/gpxe/image.h2
-rw-r--r--src/include/gpxe/in.h2
-rw-r--r--src/include/gpxe/infiniband.h2
-rw-r--r--src/include/gpxe/init.h2
-rw-r--r--src/include/gpxe/interface.h2
-rw-r--r--src/include/gpxe/io.h2
-rw-r--r--src/include/gpxe/iobuf.h2
-rw-r--r--src/include/gpxe/ip.h2
-rw-r--r--src/include/gpxe/ip6.h2
-rw-r--r--src/include/gpxe/ipoib.h2
-rw-r--r--src/include/gpxe/isa.h2
-rw-r--r--src/include/gpxe/isa_ids.h2
-rw-r--r--src/include/gpxe/isapnp.h2
-rw-r--r--src/include/gpxe/iscsi.h2
-rw-r--r--src/include/gpxe/job.h2
-rw-r--r--src/include/gpxe/keys.h2
-rw-r--r--src/include/gpxe/linebuf.h2
-rw-r--r--src/include/gpxe/linux_compat.h2
-rw-r--r--src/include/gpxe/list.h2
-rw-r--r--src/include/gpxe/login_ui.h2
-rw-r--r--src/include/gpxe/malloc.h2
-rw-r--r--src/include/gpxe/mca.h2
-rw-r--r--src/include/gpxe/md5.h2
-rw-r--r--src/include/gpxe/memmap.h2
-rw-r--r--src/include/gpxe/monojob.h2
-rw-r--r--src/include/gpxe/nap.h2
-rw-r--r--src/include/gpxe/netdevice.h2
-rw-r--r--src/include/gpxe/null_nap.h2
-rw-r--r--src/include/gpxe/nvo.h2
-rw-r--r--src/include/gpxe/nvs.h2
-rw-r--r--src/include/gpxe/open.h2
-rw-r--r--src/include/gpxe/pci.h2
-rw-r--r--src/include/gpxe/pci_ids.h2
-rw-r--r--src/include/gpxe/pci_io.h2
-rw-r--r--src/include/gpxe/posix_io.h2
-rw-r--r--src/include/gpxe/process.h2
-rw-r--r--src/include/gpxe/profile.h2
-rw-r--r--src/include/gpxe/ramdisk.h2
-rw-r--r--src/include/gpxe/rarp.h2
-rw-r--r--src/include/gpxe/refcnt.h2
-rw-r--r--src/include/gpxe/resolv.h2
-rw-r--r--src/include/gpxe/retry.h2
-rw-r--r--src/include/gpxe/rotate.h2
-rw-r--r--src/include/gpxe/rsa.h2
-rw-r--r--src/include/gpxe/sanboot.h2
-rw-r--r--src/include/gpxe/scsi.h2
-rw-r--r--src/include/gpxe/segment.h2
-rw-r--r--src/include/gpxe/serial.h2
-rw-r--r--src/include/gpxe/settings.h2
-rw-r--r--src/include/gpxe/settings_ui.h2
-rw-r--r--src/include/gpxe/sha1.h2
-rw-r--r--src/include/gpxe/shell.h2
-rw-r--r--src/include/gpxe/shell_banner.h2
-rw-r--r--src/include/gpxe/smbios.h2
-rw-r--r--src/include/gpxe/socket.h2
-rw-r--r--src/include/gpxe/spi.h2
-rw-r--r--src/include/gpxe/spi_bit.h2
-rw-r--r--src/include/gpxe/tables.h2
-rw-r--r--src/include/gpxe/tcp.h2
-rw-r--r--src/include/gpxe/tcpip.h2
-rw-r--r--src/include/gpxe/tftp.h2
-rw-r--r--src/include/gpxe/threewire.h2
-rw-r--r--src/include/gpxe/timer.h2
-rw-r--r--src/include/gpxe/tls.h2
-rw-r--r--src/include/gpxe/uaccess.h2
-rw-r--r--src/include/gpxe/udp.h2
-rw-r--r--src/include/gpxe/umalloc.h2
-rw-r--r--src/include/gpxe/uri.h2
-rw-r--r--src/include/gpxe/uuid.h2
-rw-r--r--src/include/gpxe/vsprintf.h2
-rw-r--r--src/include/gpxe/x509.h2
-rw-r--r--src/include/gpxe/xfer.h2
-rw-r--r--src/include/libgen.h2
-rw-r--r--src/include/little_bswap.h2
-rw-r--r--src/include/mii.h2
-rw-r--r--src/include/nic.h2
-rw-r--r--src/include/readline/readline.h2
-rw-r--r--src/include/stdarg.h2
-rw-r--r--src/include/stddef.h2
-rw-r--r--src/include/stdint.h2
-rw-r--r--src/include/stdio.h2
-rw-r--r--src/include/stdlib.h2
-rw-r--r--src/include/string.h2
-rw-r--r--src/include/strings.h2
-rw-r--r--src/include/unistd.h2
-rw-r--r--src/include/usr/autoboot.h2
-rw-r--r--src/include/usr/dhcpmgmt.h2
-rw-r--r--src/include/usr/ifmgmt.h2
-rw-r--r--src/include/usr/imgmgmt.h2
-rw-r--r--src/include/usr/route.h2
-rw-r--r--src/interface/efi/efi_console.c2
-rw-r--r--src/interface/efi/efi_init.c2
-rw-r--r--src/interface/efi/efi_io.c2
-rw-r--r--src/interface/efi/efi_pci.c2
-rw-r--r--src/interface/efi/efi_smbios.c2
-rw-r--r--src/interface/efi/efi_snp.c2
-rw-r--r--src/interface/efi/efi_strerror.c2
-rw-r--r--src/interface/efi/efi_timer.c2
-rw-r--r--src/interface/efi/efi_uaccess.c2
-rw-r--r--src/interface/efi/efi_umalloc.c2
-rw-r--r--src/interface/smbios/smbios.c2
-rw-r--r--src/interface/smbios/smbios_settings.c2
-rw-r--r--src/net/aoe.c2
-rw-r--r--src/net/arp.c2
-rw-r--r--src/net/dhcpopts.c2
-rw-r--r--src/net/dhcppkt.c2
-rw-r--r--src/net/ethernet.c2
-rw-r--r--src/net/fakedhcp.c2
-rw-r--r--src/net/icmp.c2
-rw-r--r--src/net/infiniband.c2
-rw-r--r--src/net/iobpad.c2
-rw-r--r--src/net/ipv4.c2
-rw-r--r--src/net/netdev_settings.c2
-rw-r--r--src/net/netdevice.c2
-rw-r--r--src/net/nullnet.c2
-rw-r--r--src/net/rarp.c2
-rw-r--r--src/net/retry.c2
-rw-r--r--src/net/tcp.c2
-rw-r--r--src/net/tcp/http.c2
-rw-r--r--src/net/tcp/https.c2
-rw-r--r--src/net/tcp/iscsi.c2
-rw-r--r--src/net/tcpip.c2
-rw-r--r--src/net/tls.c2
-rw-r--r--src/net/udp.c2
-rw-r--r--src/net/udp/dhcp.c2
-rw-r--r--src/net/udp/dns.c2
-rw-r--r--src/net/udp/slam.c2
-rw-r--r--src/net/udp/tftp.c2
-rw-r--r--src/usr/autoboot.c2
-rw-r--r--src/usr/dhcpmgmt.c2
-rw-r--r--src/usr/ifmgmt.c2
-rw-r--r--src/usr/imgmgmt.c2
-rw-r--r--src/usr/pxemenu.c2
-rw-r--r--src/usr/route.c2
518 files changed, 1039 insertions, 2 deletions
diff --git a/src/arch/i386/core/basemem_packet.c b/src/arch/i386/core/basemem_packet.c
index 64e0bcc1..d487cce3 100644
--- a/src/arch/i386/core/basemem_packet.c
+++ b/src/arch/i386/core/basemem_packet.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/arch/i386/core/pic8259.c b/src/arch/i386/core/pic8259.c
index 8a0433dd..1e2d23c5 100644
--- a/src/arch/i386/core/pic8259.c
+++ b/src/arch/i386/core/pic8259.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/io.h>
#include <pic8259.h>
diff --git a/src/arch/i386/core/rdtsc_timer.c b/src/arch/i386/core/rdtsc_timer.c
index 443c8ada..76679173 100644
--- a/src/arch/i386/core/rdtsc_timer.c
+++ b/src/arch/i386/core/rdtsc_timer.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** @file
*
* RDTSC timer
diff --git a/src/arch/i386/core/relocate.c b/src/arch/i386/core/relocate.c
index bdc8498e..44e764fe 100644
--- a/src/arch/i386/core/relocate.c
+++ b/src/arch/i386/core/relocate.c
@@ -9,6 +9,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/*
* The linker passes in the symbol _max_align, which is the alignment
* that we must preserve, in bytes.
diff --git a/src/arch/i386/core/setjmp.S b/src/arch/i386/core/setjmp.S
index 59a1b7cb..03727148 100644
--- a/src/arch/i386/core/setjmp.S
+++ b/src/arch/i386/core/setjmp.S
@@ -1,5 +1,7 @@
/* setjmp and longjmp. Use of these functions is deprecated. */
+FILE_LICENCE ( GPL2_OR_LATER )
+
.text
.arch i386
.code32
diff --git a/src/arch/i386/core/stack.S b/src/arch/i386/core/stack.S
index da66d239..737ec0ee 100644
--- a/src/arch/i386/core/stack.S
+++ b/src/arch/i386/core/stack.S
@@ -1,3 +1,5 @@
+FILE_LICENCE ( GPL2_OR_LATER )
+
.arch i386
/****************************************************************************
diff --git a/src/arch/i386/core/stack16.S b/src/arch/i386/core/stack16.S
index d1251f06..523f0288 100644
--- a/src/arch/i386/core/stack16.S
+++ b/src/arch/i386/core/stack16.S
@@ -1,3 +1,5 @@
+FILE_LICENCE ( GPL2_OR_LATER )
+
.arch i386
/****************************************************************************
diff --git a/src/arch/i386/core/timer2.c b/src/arch/i386/core/timer2.c
index bb589ecc..6e76b2eb 100644
--- a/src/arch/i386/core/timer2.c
+++ b/src/arch/i386/core/timer2.c
@@ -11,6 +11,8 @@
* your option) any later version.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <gpxe/timer2.h>
#include <gpxe/io.h>
diff --git a/src/arch/i386/core/virtaddr.S b/src/arch/i386/core/virtaddr.S
index cf6da4f6..aae1e1ed 100644
--- a/src/arch/i386/core/virtaddr.S
+++ b/src/arch/i386/core/virtaddr.S
@@ -4,6 +4,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER )
+
#include "librm.h"
.arch i386
diff --git a/src/arch/i386/core/x86_io.c b/src/arch/i386/core/x86_io.c
index 424a96cc..d2c363b9 100644
--- a/src/arch/i386/core/x86_io.c
+++ b/src/arch/i386/core/x86_io.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/io.h>
#include <gpxe/x86_io.h>
diff --git a/src/arch/i386/drivers/net/undi.c b/src/arch/i386/drivers/net/undi.c
index 8434f89d..c6e253c0 100644
--- a/src/arch/i386/drivers/net/undi.c
+++ b/src/arch/i386/drivers/net/undi.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/arch/i386/drivers/net/undiisr.S b/src/arch/i386/drivers/net/undiisr.S
index 2b31b414..2428d1f5 100644
--- a/src/arch/i386/drivers/net/undiisr.S
+++ b/src/arch/i386/drivers/net/undiisr.S
@@ -1,3 +1,5 @@
+FILE_LICENCE ( GPL2_OR_LATER )
+
#define PXENV_UNDI_ISR 0x0014
#define PXENV_UNDI_ISR_IN_START 1
#define PXENV_UNDI_ISR_OUT_OURS 0
diff --git a/src/arch/i386/drivers/net/undiload.c b/src/arch/i386/drivers/net/undiload.c
index 6f34404b..1d4e88d7 100644
--- a/src/arch/i386/drivers/net/undiload.c
+++ b/src/arch/i386/drivers/net/undiload.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/arch/i386/drivers/net/undinet.c b/src/arch/i386/drivers/net/undinet.c
index 708fc274..79ac01bb 100644
--- a/src/arch/i386/drivers/net/undinet.c
+++ b/src/arch/i386/drivers/net/undinet.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <string.h>
#include <pxe.h>
#include <realmode.h>
diff --git a/src/arch/i386/drivers/net/undionly.c b/src/arch/i386/drivers/net/undionly.c
index 4cdce677..7dfb5d15 100644
--- a/src/arch/i386/drivers/net/undionly.c
+++ b/src/arch/i386/drivers/net/undionly.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/arch/i386/drivers/net/undipreload.c b/src/arch/i386/drivers/net/undipreload.c
index e29d150a..a4b2f4ac 100644
--- a/src/arch/i386/drivers/net/undipreload.c
+++ b/src/arch/i386/drivers/net/undipreload.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <realmode.h>
#include <undipreload.h>
diff --git a/src/arch/i386/drivers/net/undirom.c b/src/arch/i386/drivers/net/undirom.c
index e5782781..2463d969 100644
--- a/src/arch/i386/drivers/net/undirom.c
+++ b/src/arch/i386/drivers/net/undirom.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/arch/i386/firmware/pcbios/basemem.c b/src/arch/i386/firmware/pcbios/basemem.c
index b126d2a7..1ba7d1f6 100644
--- a/src/arch/i386/firmware/pcbios/basemem.c
+++ b/src/arch/i386/firmware/pcbios/basemem.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <realmode.h>
#include <bios.h>
diff --git a/src/arch/i386/firmware/pcbios/bios_console.c b/src/arch/i386/firmware/pcbios/bios_console.c
index 91363772..1d18e54c 100644
--- a/src/arch/i386/firmware/pcbios/bios_console.c
+++ b/src/arch/i386/firmware/pcbios/bios_console.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <assert.h>
#include <realmode.h>
#include <console.h>
diff --git a/src/arch/i386/firmware/pcbios/e820mangler.S b/src/arch/i386/firmware/pcbios/e820mangler.S
index decb0835..32be9ee5 100644
--- a/src/arch/i386/firmware/pcbios/e820mangler.S
+++ b/src/arch/i386/firmware/pcbios/e820mangler.S
@@ -15,7 +15,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
+
+FILE_LICENCE ( GPL2_OR_LATER )
+
.text
.arch i386
.code16
diff --git a/src/arch/i386/firmware/pcbios/fakee820.c b/src/arch/i386/firmware/pcbios/fakee820.c
index 552bf41d..ea116fe5 100644
--- a/src/arch/i386/firmware/pcbios/fakee820.c
+++ b/src/arch/i386/firmware/pcbios/fakee820.c
@@ -15,6 +15,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <realmode.h>
#include <biosint.h>
diff --git a/src/arch/i386/firmware/pcbios/gateA20.c b/src/arch/i386/firmware/pcbios/gateA20.c
index 34e3ac52..1a71472d 100644
--- a/src/arch/i386/firmware/pcbios/gateA20.c
+++ b/src/arch/i386/firmware/pcbios/gateA20.c
@@ -1,3 +1,5 @@
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <realmode.h>
#include <bios.h>
diff --git a/src/arch/i386/firmware/pcbios/hidemem.c b/src/arch/i386/firmware/pcbios/hidemem.c
index 620b62e0..17082c35 100644
--- a/src/arch/i386/firmware/pcbios/hidemem.c
+++ b/src/arch/i386/firmware/pcbios/hidemem.c
@@ -15,6 +15,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <assert.h>
#include <realmode.h>
#include <biosint.h>
diff --git a/src/arch/i386/firmware/pcbios/memmap.c b/src/arch/i386/firmware/pcbios/memmap.c
index ff387d93..8a30dbae 100644
--- a/src/arch/i386/firmware/pcbios/memmap.c
+++ b/src/arch/i386/firmware/pcbios/memmap.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 <realmode.h>
diff --git a/src/arch/i386/firmware/pcbios/pnpbios.c b/src/arch/i386/firmware/pcbios/pnpbios.c
index 420d2ae8..c572914f 100644
--- a/src/arch/i386/firmware/pcbios/pnpbios.c
+++ b/src/arch/i386/firmware/pcbios/pnpbios.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 <errno.h>
diff --git a/src/arch/i386/image/bootsector.c b/src/arch/i386/image/bootsector.c
index 0f297a26..f96cf201 100644
--- a/src/arch/i386/image/bootsector.c
+++ b/src/arch/i386/image/bootsector.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/arch/i386/image/bzimage.c b/src/arch/i386/image/bzimage.c
index 972016ab..19450990 100644
--- a/src/arch/i386/image/bzimage.c
+++ b/src/arch/i386/image/bzimage.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/arch/i386/image/com32.c b/src/arch/i386/image/com32.c
index d1b9a59f..6ab347c1 100644
--- a/src/arch/i386/image/com32.c
+++ b/src/arch/i386/image/com32.c
@@ -23,6 +23,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/arch/i386/image/comboot.c b/src/arch/i386/image/comboot.c
index 40e32185..a00b2b95 100644
--- a/src/arch/i386/image/comboot.c
+++ b/src/arch/i386/image/comboot.c
@@ -23,6 +23,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/arch/i386/image/elfboot.c b/src/arch/i386/image/elfboot.c
index c8daf72b..a41040e8 100644
--- a/src/arch/i386/image/elfboot.c
+++ b/src/arch/i386/image/elfboot.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <errno.h>
#include <elf.h>
#include <gpxe/image.h>
diff --git a/src/arch/i386/image/eltorito.c b/src/arch/i386/image/eltorito.c
index 9d573106..53eb2c02 100644
--- a/src/arch/i386/image/eltorito.c
+++ b/src/arch/i386/image/eltorito.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/arch/i386/image/multiboot.c b/src/arch/i386/image/multiboot.c
index 1edf6af7..1690b1c4 100644
--- a/src/arch/i386/image/multiboot.c
+++ b/src/arch/i386/image/multiboot.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/arch/i386/image/pxe_image.c b/src/arch/i386/image/pxe_image.c
index 90550d83..68f8d4bf 100644
--- a/src/arch/i386/image/pxe_image.c
+++ b/src/arch/i386/image/pxe_image.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/arch/i386/include/basemem.h b/src/arch/i386/include/basemem.h
index cd5668e0..c477c7fe 100644
--- a/src/arch/i386/include/basemem.h
+++ b/src/arch/i386/include/basemem.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <realmode.h>
#include <bios.h>
diff --git a/src/arch/i386/include/basemem_packet.h b/src/arch/i386/include/basemem_packet.h
index e4d4f49c..3cb47767 100644
--- a/src/arch/i386/include/basemem_packet.h
+++ b/src/arch/i386/include/basemem_packet.h
@@ -1,6 +1,8 @@
#ifndef BASEMEM_PACKET_H
#define BASEMEM_PACKET_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <realmode.h>
/** Maximum length of base memory packet buffer */
diff --git a/src/arch/i386/include/bios.h b/src/arch/i386/include/bios.h
index 979a092c..70bb73da 100644
--- a/src/arch/i386/include/bios.h
+++ b/src/arch/i386/include/bios.h
@@ -1,6 +1,8 @@
#ifndef BIOS_H
#define BIOS_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#define BDA_SEG 0x0040
#define BDA_FBMS 0x0013
#define BDA_NUM_DRIVES 0x0075
diff --git a/src/arch/i386/include/biosint.h b/src/arch/i386/include/biosint.h
index d365cf01..ab466af3 100644
--- a/src/arch/i386/include/biosint.h
+++ b/src/arch/i386/include/biosint.h
@@ -6,6 +6,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <realmode.h>
struct segoff;
diff --git a/src/arch/i386/include/bits/byteswap.h b/src/arch/i386/include/bits/byteswap.h
index 98418c29..ddbd40ed 100644
--- a/src/arch/i386/include/bits/byteswap.h
+++ b/src/arch/i386/include/bits/byteswap.h
@@ -1,6 +1,8 @@
#ifndef ETHERBOOT_BITS_BYTESWAP_H
#define ETHERBOOT_BITS_BYTESWAP_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
static inline __attribute__ ((always_inline, const)) uint16_t
__bswap_variable_16(uint16_t x)
{
diff --git a/src/arch/i386/include/bits/compiler.h b/src/arch/i386/include/bits/compiler.h
index 119a9a21..000db0c1 100644
--- a/src/arch/i386/include/bits/compiler.h
+++ b/src/arch/i386/include/bits/compiler.h
@@ -1,6 +1,8 @@
#ifndef _BITS_COMPILER_H
#define _BITS_COMPILER_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifndef ASSEMBLY
/** Declare a function with standard calling conventions */
diff --git a/src/arch/i386/include/bits/endian.h b/src/arch/i386/include/bits/endian.h
index 413e702d..84188542 100644
--- a/src/arch/i386/include/bits/endian.h
+++ b/src/arch/i386/include/bits/endian.h
@@ -1,6 +1,8 @@
#ifndef ETHERBOOT_BITS_ENDIAN_H
#define ETHERBOOT_BITS_ENDIAN_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif /* ETHERBOOT_BITS_ENDIAN_H */
diff --git a/src/arch/i386/include/bits/errfile.h b/src/arch/i386/include/bits/errfile.h
index 5ea8a318..fa3ff0f3 100644
--- a/src/arch/i386/include/bits/errfile.h
+++ b/src/arch/i386/include/bits/errfile.h
@@ -1,6 +1,8 @@
#ifndef _BITS_ERRFILE_H
#define _BITS_ERRFILE_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @addtogroup errfile Error file identifiers
* @{
diff --git a/src/arch/i386/include/bits/io.h b/src/arch/i386/include/bits/io.h
index dd0ee444..eded9778 100644
--- a/src/arch/i386/include/bits/io.h
+++ b/src/arch/i386/include/bits/io.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/x86_io.h>
#endif /* _BITS_IO_H */
diff --git a/src/arch/i386/include/bits/nap.h b/src/arch/i386/include/bits/nap.h
index f8ba7a7c..1354f6bb 100644
--- a/src/arch/i386/include/bits/nap.h
+++ b/src/arch/i386/include/bits/nap.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/bios_nap.h>
#include <gpxe/efi/efix86_nap.h>
diff --git a/src/arch/i386/include/bits/smbios.h b/src/arch/i386/include/bits/smbios.h
index 647ea19e..a68413aa 100644
--- a/src/arch/i386/include/bits/smbios.h
+++ b/src/arch/i386/include/bits/smbios.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/bios_smbios.h>
#endif /* _BITS_SMBIOS_H */
diff --git a/src/arch/i386/include/bits/stdint.h b/src/arch/i386/include/bits/stdint.h
index 9eb72e9c..8edf1319 100644
--- a/src/arch/i386/include/bits/stdint.h
+++ b/src/arch/i386/include/bits/stdint.h
@@ -1,6 +1,8 @@
#ifndef _BITS_STDINT_H
#define _BITS_STDINT_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
typedef __SIZE_TYPE__ size_t;
typedef signed long ssize_t;
typedef signed long off_t;
diff --git a/src/arch/i386/include/bits/timer.h b/src/arch/i386/include/bits/timer.h
index 99666d84..32e6bd47 100644
--- a/src/arch/i386/include/bits/timer.h
+++ b/src/arch/i386/include/bits/timer.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/bios_timer.h>
#include <gpxe/rdtsc_timer.h>
diff --git a/src/arch/i386/include/bits/uaccess.h b/src/arch/i386/include/bits/uaccess.h
index 0ecc5028..2bb52e02 100644
--- a/src/arch/i386/include/bits/uaccess.h
+++ b/src/arch/i386/include/bits/uaccess.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <librm.h>
#endif /* _BITS_UACCESS_H */
diff --git a/src/arch/i386/include/bits/umalloc.h b/src/arch/i386/include/bits/umalloc.h
index dcbd0a6b..17ba2cb2 100644
--- a/src/arch/i386/include/bits/umalloc.h
+++ b/src/arch/i386/include/bits/umalloc.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/memtop_umalloc.h>
#endif /* _BITS_UMALLOC_H */
diff --git a/src/arch/i386/include/bootsector.h b/src/arch/i386/include/bootsector.h
index e9071052..8730fbfc 100644
--- a/src/arch/i386/include/bootsector.h
+++ b/src/arch/i386/include/bootsector.h
@@ -6,6 +6,8 @@
* x86 bootsector image format
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
extern int call_bootsector ( unsigned int segment, unsigned int offset,
unsigned int drive );
diff --git a/src/arch/i386/include/bzimage.h b/src/arch/i386/include/bzimage.h
index 99fa0963..42b31fe4 100644
--- a/src/arch/i386/include/bzimage.h
+++ b/src/arch/i386/include/bzimage.h
@@ -1,6 +1,8 @@
#ifndef _BZIMAGE_H
#define _BZIMAGE_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/**
diff --git a/src/arch/i386/include/comboot.h b/src/arch/i386/include/comboot.h
index 56661a80..1232f0a7 100644
--- a/src/arch/i386/include/comboot.h
+++ b/src/arch/i386/include/comboot.h
@@ -7,6 +7,8 @@
* SYSLINUX COMBOOT
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <setjmp.h>
#include <gpxe/in.h>
diff --git a/src/arch/i386/include/fakee820.h b/src/arch/i386/include/fakee820.h
index f1fe8aff..9d00fb67 100644
--- a/src/arch/i386/include/fakee820.h
+++ b/src/arch/i386/include/fakee820.h
@@ -1,6 +1,8 @@
#ifndef _FAKEE820_H
#define _FAKEE820_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
extern void fake_e820 ( void );
extern void unfake_e820 ( void );
diff --git a/src/arch/i386/include/gpxe/abft.h b/src/arch/i386/include/gpxe/abft.h
index 1c651ef1..9065e61a 100644
--- a/src/arch/i386/include/gpxe/abft.h
+++ b/src/arch/i386/include/gpxe/abft.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/acpi.h>
#include <gpxe/if_ether.h>
diff --git a/src/arch/i386/include/gpxe/bios_nap.h b/src/arch/i386/include/gpxe/bios_nap.h
index f1c721e9..c32429b9 100644
--- a/src/arch/i386/include/gpxe/bios_nap.h
+++ b/src/arch/i386/include/gpxe/bios_nap.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef NAP_PCBIOS
#define NAP_PREFIX_pcbios
#else
diff --git a/src/arch/i386/include/gpxe/bios_smbios.h b/src/arch/i386/include/gpxe/bios_smbios.h
index 0a6f277a..83726b11 100644
--- a/src/arch/i386/include/gpxe/bios_smbios.h
+++ b/src/arch/i386/include/gpxe/bios_smbios.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef SMBIOS_PCBIOS
#define SMBIOS_PREFIX_pcbios
#else
diff --git a/src/arch/i386/include/gpxe/bios_timer.h b/src/arch/i386/include/gpxe/bios_timer.h
index 7e3caa3c..ed9df522 100644
--- a/src/arch/i386/include/gpxe/bios_timer.h
+++ b/src/arch/i386/include/gpxe/bios_timer.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef TIMER_PCBIOS
#define TIMER_PREFIX_pcbios
#else
diff --git a/src/arch/i386/include/gpxe/ibft.h b/src/arch/i386/include/gpxe/ibft.h
index 5eef547b..c41e2e40 100644
--- a/src/arch/i386/include/gpxe/ibft.h
+++ b/src/arch/i386/include/gpxe/ibft.h
@@ -28,6 +28,8 @@
*
*/
+FILE_LICENCE ( BSD2 );
+
/** @file
*
* iSCSI boot firmware table
diff --git a/src/arch/i386/include/gpxe/memtop_umalloc.h b/src/arch/i386/include/gpxe/memtop_umalloc.h
index a3cd2c01..eaf7025b 100644
--- a/src/arch/i386/include/gpxe/memtop_umalloc.h
+++ b/src/arch/i386/include/gpxe/memtop_umalloc.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef UMALLOC_MEMTOP
#define UMALLOC_PREFIX_memtop
#else
diff --git a/src/arch/i386/include/gpxe/rdtsc_timer.h b/src/arch/i386/include/gpxe/rdtsc_timer.h
index 0e03d707..67ba22f0 100644
--- a/src/arch/i386/include/gpxe/rdtsc_timer.h
+++ b/src/arch/i386/include/gpxe/rdtsc_timer.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef TIMER_RDTSC
#define TIMER_PREFIX_rdtsc
#else
diff --git a/src/arch/i386/include/gpxe/timer2.h b/src/arch/i386/include/gpxe/timer2.h
index 59705fa2..8f119515 100644
--- a/src/arch/i386/include/gpxe/timer2.h
+++ b/src/arch/i386/include/gpxe/timer2.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
extern void timer2_udelay ( unsigned long usecs );
#endif /* _GPXE_TIMER2_H */
diff --git a/src/arch/i386/include/gpxe/x86_io.h b/src/arch/i386/include/gpxe/x86_io.h
index b1ae3bac..beb5b22a 100644
--- a/src/arch/i386/include/gpxe/x86_io.h
+++ b/src/arch/i386/include/gpxe/x86_io.h
@@ -15,6 +15,8 @@
* into a machine with such an old CPU anyway.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef IOAPI_X86
#define IOAPI_PREFIX_x86
#else
diff --git a/src/arch/i386/include/int13.h b/src/arch/i386/include/int13.h
index bf6d0318..e1884d94 100644
--- a/src/arch/i386/include/int13.h
+++ b/src/arch/i386/include/int13.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/list.h>
#include <realmode.h>
diff --git a/src/arch/i386/include/librm.h b/src/arch/i386/include/librm.h
index 9eb2767a..f193f5e3 100755
--- a/src/arch/i386/include/librm.h
+++ b/src/arch/i386/include/librm.h
@@ -1,6 +1,8 @@
#ifndef LIBRM_H
#define LIBRM_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* Segment selectors as used in our protected-mode GDTs.
*
* Don't change these unless you really know what you're doing.
diff --git a/src/arch/i386/include/limits.h b/src/arch/i386/include/limits.h
index f13db267..031b6c57 100644
--- a/src/arch/i386/include/limits.h
+++ b/src/arch/i386/include/limits.h
@@ -1,6 +1,8 @@
#ifndef LIMITS_H
#define LIMITS_H 1
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* Number of bits in a `char' */
#define CHAR_BIT 8
diff --git a/src/arch/i386/include/memsizes.h b/src/arch/i386/include/memsizes.h
index 6222fd66..7b217494 100644
--- a/src/arch/i386/include/memsizes.h
+++ b/src/arch/i386/include/memsizes.h
@@ -1,6 +1,8 @@
#ifndef _MEMSIZES_H
#define _MEMSIZES_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <basemem.h>
/**
diff --git a/src/arch/i386/include/multiboot.h b/src/arch/i386/include/multiboot.h
index 4ca7089b..44614c73 100644
--- a/src/arch/i386/include/multiboot.h
+++ b/src/arch/i386/include/multiboot.h
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/** The magic number for the Multiboot header */
diff --git a/src/arch/i386/include/pic8259.h b/src/arch/i386/include/pic8259.h
index 0c501a9c..f8e20c4c 100644
--- a/src/arch/i386/include/pic8259.h
+++ b/src/arch/i386/include/pic8259.h
@@ -4,6 +4,8 @@
* Initially written by Michael Brown (mcb30).
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifndef PIC8259_H
#define PIC8259_H
diff --git a/src/arch/i386/include/pnpbios.h b/src/arch/i386/include/pnpbios.h
index ab31c699..4c20e73e 100644
--- a/src/arch/i386/include/pnpbios.h
+++ b/src/arch/i386/include/pnpbios.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* BIOS segment address */
#define BIOS_SEG 0xf000
diff --git a/src/arch/i386/include/pxe.h b/src/arch/i386/include/pxe.h
index 6d332ac7..b0cabef0 100644
--- a/src/arch/i386/include/pxe.h
+++ b/src/arch/i386/include/pxe.h
@@ -1,6 +1,8 @@
#ifndef PXE_H
#define PXE_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include "pxe_types.h"
#include "pxe_api.h"
#include <gpxe/device.h>
diff --git a/src/arch/i386/include/pxe_api.h b/src/arch/i386/include/pxe_api.h
index b3d4bca8..b72c1ec2 100644
--- a/src/arch/i386/include/pxe_api.h
+++ b/src/arch/i386/include/pxe_api.h
@@ -23,6 +23,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include "pxe_types.h"
/** @addtogroup pxe Preboot eXecution Environment (PXE) API
diff --git a/src/arch/i386/include/pxe_call.h b/src/arch/i386/include/pxe_call.h
index 2f3ea15a..f60686ca 100644
--- a/src/arch/i386/include/pxe_call.h
+++ b/src/arch/i386/include/pxe_call.h
@@ -6,6 +6,8 @@
* PXE API entry point
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <pxe_api.h>
#include <realmode.h>
diff --git a/src/arch/i386/include/pxe_types.h b/src/arch/i386/include/pxe_types.h
index dd9092ef..a6516d25 100644
--- a/src/arch/i386/include/pxe_types.h
+++ b/src/arch/i386/include/pxe_types.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <errno.h> /* PXE status codes */
diff --git a/src/arch/i386/include/realmode.h b/src/arch/i386/include/realmode.h
index 26e6dd77..a0a830b9 100644
--- a/src/arch/i386/include/realmode.h
+++ b/src/arch/i386/include/realmode.h
@@ -10,6 +10,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/*
* Declaration of variables in .data16
*
diff --git a/src/arch/i386/include/registers.h b/src/arch/i386/include/registers.h
index e68fa85a..2839e2bd 100644
--- a/src/arch/i386/include/registers.h
+++ b/src/arch/i386/include/registers.h
@@ -10,6 +10,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/**
diff --git a/src/arch/i386/include/setjmp.h b/src/arch/i386/include/setjmp.h
index c18d03e1..5d3c11b6 100644
--- a/src/arch/i386/include/setjmp.h
+++ b/src/arch/i386/include/setjmp.h
@@ -1,6 +1,8 @@
#ifndef ETHERBOOT_SETJMP_H
#define ETHERBOOT_SETJMP_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <realmode.h>
diff --git a/src/arch/i386/include/undi.h b/src/arch/i386/include/undi.h
index c6253d0a..de6925b6 100644
--- a/src/arch/i386/include/undi.h
+++ b/src/arch/i386/include/undi.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifndef ASSEMBLY
#include <gpxe/device.h>
diff --git a/src/arch/i386/include/undiload.h b/src/arch/i386/include/undiload.h
index bfc11874..426830e8 100644
--- a/src/arch/i386/include/undiload.h
+++ b/src/arch/i386/include/undiload.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct undi_device;
struct undi_rom;
diff --git a/src/arch/i386/include/undinet.h b/src/arch/i386/include/undinet.h
index 1a4a385e..c3c17c11 100644
--- a/src/arch/i386/include/undinet.h
+++ b/src/arch/i386/include/undinet.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct undi_device;
extern int undinet_probe ( struct undi_device *undi );
diff --git a/src/arch/i386/include/undipreload.h b/src/arch/i386/include/undipreload.h
index d9bc8cb9..de9b8fb5 100644
--- a/src/arch/i386/include/undipreload.h
+++ b/src/arch/i386/include/undipreload.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <realmode.h>
#include <undi.h>
diff --git a/src/arch/i386/include/undirom.h b/src/arch/i386/include/undirom.h
index a2636007..86d7077b 100644
--- a/src/arch/i386/include/undirom.h
+++ b/src/arch/i386/include/undirom.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <pxe_types.h>
/** An UNDI PCI device ID */
diff --git a/src/arch/i386/interface/pcbios/abft.c b/src/arch/i386/interface/pcbios/abft.c
index af28bbcf..86941728 100644
--- a/src/arch/i386/interface/pcbios/abft.c
+++ b/src/arch/i386/interface/pcbios/abft.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <realmode.h>
#include <gpxe/aoe.h>
#include <gpxe/netdevice.h>
diff --git a/src/arch/i386/interface/pcbios/aoeboot.c b/src/arch/i386/interface/pcbios/aoeboot.c
index 6e1e51cb..46484c00 100644
--- a/src/arch/i386/interface/pcbios/aoeboot.c
+++ b/src/arch/i386/interface/pcbios/aoeboot.c
@@ -10,6 +10,8 @@
#include <gpxe/abft.h>
#include <int13.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
static int aoeboot ( const char *root_path ) {
struct ata_device ata;
struct int13_drive drive;
diff --git a/src/arch/i386/interface/pcbios/bios_nap.c b/src/arch/i386/interface/pcbios/bios_nap.c
index 2f4a0513..e38cac7a 100644
--- a/src/arch/i386/interface/pcbios/bios_nap.c
+++ b/src/arch/i386/interface/pcbios/bios_nap.c
@@ -1,6 +1,8 @@
#include <gpxe/nap.h>
#include <realmode.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* Save power by halting the CPU until the next interrupt
*
diff --git a/src/arch/i386/interface/pcbios/bios_smbios.c b/src/arch/i386/interface/pcbios/bios_smbios.c
index efaaef0d..094214bd 100644
--- a/src/arch/i386/interface/pcbios/bios_smbios.c
+++ b/src/arch/i386/interface/pcbios/bios_smbios.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 <errno.h>
diff --git a/src/arch/i386/interface/pcbios/bios_timer.c b/src/arch/i386/interface/pcbios/bios_timer.c
index 0b475ea3..8ecf7c12 100644
--- a/src/arch/i386/interface/pcbios/bios_timer.c
+++ b/src/arch/i386/interface/pcbios/bios_timer.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** @file
*
* BIOS timer
diff --git a/src/arch/i386/interface/pcbios/biosint.c b/src/arch/i386/interface/pcbios/biosint.c
index 1306f918..a193defa 100644
--- a/src/arch/i386/interface/pcbios/biosint.c
+++ b/src/arch/i386/interface/pcbios/biosint.c
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* Hook INT vector
*
diff --git a/src/arch/i386/interface/pcbios/ibft.c b/src/arch/i386/interface/pcbios/ibft.c
index 43d1f85f..718b759f 100644
--- a/src/arch/i386/interface/pcbios/ibft.c
+++ b/src/arch/i386/interface/pcbios/ibft.c
@@ -25,6 +25,8 @@
*
*/
+FILE_LICENCE ( BSD2 );
+
#include <stdint.h>
#include <stdio.h>
#include <string.h>
diff --git a/src/arch/i386/interface/pcbios/int13.c b/src/arch/i386/interface/pcbios/int13.c
index 04f9cdf5..733060f2 100644
--- a/src/arch/i386/interface/pcbios/int13.c
+++ b/src/arch/i386/interface/pcbios/int13.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <limits.h>
#include <byteswap.h>
diff --git a/src/arch/i386/interface/pcbios/iscsiboot.c b/src/arch/i386/interface/pcbios/iscsiboot.c
index 02aec4ba..f200c16f 100644
--- a/src/arch/i386/interface/pcbios/iscsiboot.c
+++ b/src/arch/i386/interface/pcbios/iscsiboot.c
@@ -13,6 +13,8 @@
#include <int13.h>
#include <usr/autoboot.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct setting keep_san_setting __setting = {
.name = "keep-san",
.description = "Preserve SAN connection",
diff --git a/src/arch/i386/interface/pcbios/memtop_umalloc.c b/src/arch/i386/interface/pcbios/memtop_umalloc.c
index 744d8e30..0645fe63 100644
--- a/src/arch/i386/interface/pcbios/memtop_umalloc.c
+++ b/src/arch/i386/interface/pcbios/memtop_umalloc.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/arch/i386/interface/pcbios/pcibios.c b/src/arch/i386/interface/pcbios/pcibios.c
index 81b4fd3c..f2c3880c 100644
--- a/src/arch/i386/interface/pcbios/pcibios.c
+++ b/src/arch/i386/interface/pcbios/pcibios.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/pci.h>
#include <realmode.h>
diff --git a/src/arch/i386/interface/pxe/pxe_call.c b/src/arch/i386/interface/pxe/pxe_call.c
index 06dee25c..925dd335 100644
--- a/src/arch/i386/interface/pxe/pxe_call.c
+++ b/src/arch/i386/interface/pxe/pxe_call.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/uaccess.h>
#include <registers.h>
#include <biosint.h>
diff --git a/src/arch/i386/interface/pxe/pxe_entry.S b/src/arch/i386/interface/pxe/pxe_entry.S
index 0e8c8e2d..0d3a57cd 100644
--- a/src/arch/i386/interface/pxe/pxe_entry.S
+++ b/src/arch/i386/interface/pxe/pxe_entry.S
@@ -17,6 +17,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER )
+
.arch i386
/****************************************************************************
diff --git a/src/arch/i386/interface/pxe/pxe_file.c b/src/arch/i386/interface/pxe/pxe_file.c
index 41674588..552a1a12 100644
--- a/src/arch/i386/interface/pxe/pxe_file.c
+++ b/src/arch/i386/interface/pxe/pxe_file.c
@@ -31,6 +31,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
FEATURE ( FEATURE_MISC, "PXEXT", DHCP_EB_FEATURE_PXE_EXT, 2 );
/**
diff --git a/src/arch/i386/interface/pxe/pxe_loader.c b/src/arch/i386/interface/pxe/pxe_loader.c
index d228a36d..bebae028 100644
--- a/src/arch/i386/interface/pxe/pxe_loader.c
+++ b/src/arch/i386/interface/pxe/pxe_loader.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/init.h>
#include "pxe.h"
#include "pxe_call.h"
diff --git a/src/arch/i386/interface/pxe/pxe_preboot.c b/src/arch/i386/interface/pxe/pxe_preboot.c
index 193abc3d..5ea06e92 100644
--- a/src/arch/i386/interface/pxe/pxe_preboot.c
+++ b/src/arch/i386/interface/pxe/pxe_preboot.c
@@ -23,6 +23,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/arch/i386/interface/pxe/pxe_tftp.c b/src/arch/i386/interface/pxe/pxe_tftp.c
index cc7f830a..c1d831bd 100644
--- a/src/arch/i386/interface/pxe/pxe_tftp.c
+++ b/src/arch/i386/interface/pxe/pxe_tftp.c
@@ -22,6 +22,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
diff --git a/src/arch/i386/interface/pxe/pxe_udp.c b/src/arch/i386/interface/pxe/pxe_udp.c
index 033b1ad9..f4702201 100644
--- a/src/arch/i386/interface/pxe/pxe_udp.c
+++ b/src/arch/i386/interface/pxe/pxe_udp.c
@@ -30,6 +30,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** A PXE UDP connection */
struct pxe_udp_connection {
/** Data transfer interface to UDP stack */
diff --git a/src/arch/i386/interface/pxe/pxe_undi.c b/src/arch/i386/interface/pxe/pxe_undi.c
index 4e4a3da0..fe124d63 100644
--- a/src/arch/i386/interface/pxe/pxe_undi.c
+++ b/src/arch/i386/interface/pxe/pxe_undi.c
@@ -22,6 +22,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdio.h>
#include <string.h>
diff --git a/src/arch/i386/interface/syslinux/com32_call.c b/src/arch/i386/interface/syslinux/com32_call.c
index 4a782dce..d2c3f918 100644
--- a/src/arch/i386/interface/syslinux/com32_call.c
+++ b/src/arch/i386/interface/syslinux/com32_call.c
@@ -21,6 +21,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <realmode.h>
#include <comboot.h>
diff --git a/src/arch/i386/interface/syslinux/com32_wrapper.S b/src/arch/i386/interface/syslinux/com32_wrapper.S
index 08d7398a..5c5bd139 100644
--- a/src/arch/i386/interface/syslinux/com32_wrapper.S
+++ b/src/arch/i386/interface/syslinux/com32_wrapper.S
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER )
+
.text
.arch i386
.code32
diff --git a/src/arch/i386/interface/syslinux/comboot_call.c b/src/arch/i386/interface/syslinux/comboot_call.c
index bf6c4c66..a78af729 100644
--- a/src/arch/i386/interface/syslinux/comboot_call.c
+++ b/src/arch/i386/interface/syslinux/comboot_call.c
@@ -21,6 +21,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <errno.h>
#include <realmode.h>
#include <biosint.h>
diff --git a/src/arch/i386/interface/syslinux/comboot_resolv.c b/src/arch/i386/interface/syslinux/comboot_resolv.c
index 41c3af7a..30ac502e 100644
--- a/src/arch/i386/interface/syslinux/comboot_resolv.c
+++ b/src/arch/i386/interface/syslinux/comboot_resolv.c
@@ -5,6 +5,8 @@
#include <gpxe/process.h>
#include <gpxe/resolv.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
static int comboot_resolv_rc;
static struct in_addr comboot_resolv_addr;
diff --git a/src/arch/i386/prefix/bootpart.S b/src/arch/i386/prefix/bootpart.S
index d60fe9bc..968da1a3 100644
--- a/src/arch/i386/prefix/bootpart.S
+++ b/src/arch/i386/prefix/bootpart.S
@@ -1,3 +1,5 @@
+FILE_LICENCE ( GPL2_OR_LATER )
+
#define BOOT_SEG 0x07c0
#define EXEC_SEG 0x0100
#define STACK_SEG 0x0200
diff --git a/src/arch/i386/prefix/dskprefix.S b/src/arch/i386/prefix/dskprefix.S
index 0156812a..2716a16b 100644
--- a/src/arch/i386/prefix/dskprefix.S
+++ b/src/arch/i386/prefix/dskprefix.S
@@ -16,6 +16,8 @@
* getting whole tracks at a time whenever possible.
*/
+FILE_LICENCE ( GPL2_ONLY )
+
.equ BOOTSEG, 0x07C0 /* original address of boot-sector */
.equ SYSSEG, 0x1000 /* system loaded at SYSSEG<<4 */
diff --git a/src/arch/i386/prefix/hdprefix.S b/src/arch/i386/prefix/hdprefix.S
index 086d7f45..a06f10c3 100644
--- a/src/arch/i386/prefix/hdprefix.S
+++ b/src/arch/i386/prefix/hdprefix.S
@@ -1,3 +1,5 @@
+FILE_LICENCE ( GPL2_OR_LATER )
+
.text
.arch i386
.section ".prefix", "awx", @progbits
diff --git a/src/arch/i386/prefix/kkpxeprefix.S b/src/arch/i386/prefix/kkpxeprefix.S
index e0bea0cd..4d13f404 100644
--- a/src/arch/i386/prefix/kkpxeprefix.S
+++ b/src/arch/i386/prefix/kkpxeprefix.S
@@ -3,6 +3,8 @@
*****************************************************************************
*/
+FILE_LICENCE ( GPL2_OR_LATER )
+
#define PXELOADER_KEEP_UNDI
#define PXELOADER_KEEP_PXE
#include "pxeprefix.S"
diff --git a/src/arch/i386/prefix/kpxeprefix.S b/src/arch/i386/prefix/kpxeprefix.S
index d708604b..923faccc 100644
--- a/src/arch/i386/prefix/kpxeprefix.S
+++ b/src/arch/i386/prefix/kpxeprefix.S
@@ -3,5 +3,7 @@
*****************************************************************************
*/
+FILE_LICENCE ( GPL2_OR_LATER )
+
#define PXELOADER_KEEP_UNDI
#include "pxeprefix.S"
diff --git a/src/arch/i386/prefix/libprefix.S b/src/arch/i386/prefix/libprefix.S
index 42189135..9e6ba6f0 100644
--- a/src/arch/i386/prefix/libprefix.S
+++ b/src/arch/i386/prefix/libprefix.S
@@ -17,6 +17,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER )
+
.arch i386
/**
diff --git a/src/arch/i386/prefix/lkrnprefix.S b/src/arch/i386/prefix/lkrnprefix.S
index 094263d2..02249f7a 100644
--- a/src/arch/i386/prefix/lkrnprefix.S
+++ b/src/arch/i386/prefix/lkrnprefix.S
@@ -34,6 +34,8 @@
*/
+FILE_LICENCE ( GPL_ANY )
+
#define SETUPSECS 4 /* Minimal nr of setup-sectors */
#define PREFIXSIZE ((SETUPSECS+1)*512)
#define PREFIXPGH (PREFIXSIZE / 16 )
diff --git a/src/arch/i386/prefix/pxeprefix.S b/src/arch/i386/prefix/pxeprefix.S
index c6ae12c7..b541e4bb 100644
--- a/src/arch/i386/prefix/pxeprefix.S
+++ b/src/arch/i386/prefix/pxeprefix.S
@@ -1,3 +1,5 @@
+FILE_LICENCE ( GPL2_OR_LATER )
+
#define PXENV_UNDI_SHUTDOWN 0x0005
#define PXENV_UNDI_GET_NIC_TYPE 0x0012
#define PXENV_UNDI_GET_IFACE_INFO 0x0013
diff --git a/src/arch/i386/prefix/unnrv2b.S b/src/arch/i386/prefix/unnrv2b.S
index 70167a14..f5724c13 100644
--- a/src/arch/i386/prefix/unnrv2b.S
+++ b/src/arch/i386/prefix/unnrv2b.S
@@ -20,6 +20,8 @@
* Michael Brown 9 Mar 2005
*/
+FILE_LICENCE ( GPL2_OR_LATER )
+
/****************************************************************************
* This file provides the decompress() and decompress16() functions
* which can be called in order to decompress an image compressed with
diff --git a/src/arch/i386/prefix/unnrv2b16.S b/src/arch/i386/prefix/unnrv2b16.S
index da0e6ae8..b24c2846 100644
--- a/src/arch/i386/prefix/unnrv2b16.S
+++ b/src/arch/i386/prefix/unnrv2b16.S
@@ -3,5 +3,7 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER )
+
#define CODE16
#include "unnrv2b.S"
diff --git a/src/arch/i386/transitions/libkir.S b/src/arch/i386/transitions/libkir.S
index 1023ddd0..1176fcce 100644
--- a/src/arch/i386/transitions/libkir.S
+++ b/src/arch/i386/transitions/libkir.S
@@ -5,6 +5,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER )
+
/****************************************************************************
* This file defines libkir: an interface between external and
* internal environments when -DKEEP_IT_REAL is used, so that both
diff --git a/src/arch/i386/transitions/librm.S b/src/arch/i386/transitions/librm.S
index 8cf1f7f5..cb27ef35 100755
--- a/src/arch/i386/transitions/librm.S
+++ b/src/arch/i386/transitions/librm.S
@@ -5,6 +5,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER )
+
/* Drag in local definitions */
#include "librm.h"
diff --git a/src/arch/i386/transitions/librm_mgmt.c b/src/arch/i386/transitions/librm_mgmt.c
index 50569f8e..f00be811 100755
--- a/src/arch/i386/transitions/librm_mgmt.c
+++ b/src/arch/i386/transitions/librm_mgmt.c
@@ -5,6 +5,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <realmode.h>
diff --git a/src/arch/x86/core/pcidirect.c b/src/arch/x86/core/pcidirect.c
index db17215e..2c61d9ca 100644
--- a/src/arch/x86/core/pcidirect.c
+++ b/src/arch/x86/core/pcidirect.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/io.h>
#include <gpxe/pci.h>
diff --git a/src/arch/x86/core/x86_string.c b/src/arch/x86/core/x86_string.c
index c0224c7a..5838ebac 100644
--- a/src/arch/x86/core/x86_string.c
+++ b/src/arch/x86/core/x86_string.c
@@ -22,6 +22,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <string.h>
/**
diff --git a/src/arch/x86/include/bits/pci_io.h b/src/arch/x86/include/bits/pci_io.h
index 0fbb439d..f6efcdac 100644
--- a/src/arch/x86/include/bits/pci_io.h
+++ b/src/arch/x86/include/bits/pci_io.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/pcibios.h>
#include <gpxe/pcidirect.h>
diff --git a/src/arch/x86/include/bits/string.h b/src/arch/x86/include/bits/string.h
index 42ddeddf..a68868ac 100644
--- a/src/arch/x86/include/bits/string.h
+++ b/src/arch/x86/include/bits/string.h
@@ -21,6 +21,8 @@
* consider these trivial functions to be PD.
*/
+FILE_LICENCE ( PUBLIC_DOMAIN );
+
#define __HAVE_ARCH_MEMCPY
extern void * __memcpy ( void *dest, const void *src, size_t len );
diff --git a/src/arch/x86/include/gpxe/efi/efix86_nap.h b/src/arch/x86/include/gpxe/efi/efix86_nap.h
index 91424c54..833c922c 100644
--- a/src/arch/x86/include/gpxe/efi/efix86_nap.h
+++ b/src/arch/x86/include/gpxe/efi/efix86_nap.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef NAP_EFIX86
#define NAP_PREFIX_efix86
#else
diff --git a/src/arch/x86/include/gpxe/pcibios.h b/src/arch/x86/include/gpxe/pcibios.h
index b86f5abd..93a6eb8a 100644
--- a/src/arch/x86/include/gpxe/pcibios.h
+++ b/src/arch/x86/include/gpxe/pcibios.h
@@ -9,6 +9,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef PCIAPI_PCBIOS
#define PCIAPI_PREFIX_pcbios
#else
diff --git a/src/arch/x86/include/gpxe/pcidirect.h b/src/arch/x86/include/gpxe/pcidirect.h
index fe433c6f..8b705fb2 100644
--- a/src/arch/x86/include/gpxe/pcidirect.h
+++ b/src/arch/x86/include/gpxe/pcidirect.h
@@ -1,6 +1,8 @@
#ifndef _PCIDIRECT_H
#define _PCIDIRECT_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/io.h>
diff --git a/src/arch/x86/interface/efi/efix86_nap.c b/src/arch/x86/interface/efi/efix86_nap.c
index 45e99a68..89a4e3ba 100644
--- a/src/arch/x86/interface/efi/efix86_nap.c
+++ b/src/arch/x86/interface/efi/efix86_nap.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/nap.h>
#include <gpxe/efi/efi.h>
diff --git a/src/arch/x86/prefix/efidrvprefix.c b/src/arch/x86/prefix/efidrvprefix.c
index 5f631588..36d56508 100644
--- a/src/arch/x86/prefix/efidrvprefix.c
+++ b/src/arch/x86/prefix/efidrvprefix.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdlib.h>
#include <gpxe/init.h>
#include <gpxe/efi/efi.h>
diff --git a/src/arch/x86/prefix/efiprefix.c b/src/arch/x86/prefix/efiprefix.c
index b05b744d..4cc9e04a 100644
--- a/src/arch/x86/prefix/efiprefix.c
+++ b/src/arch/x86/prefix/efiprefix.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdlib.h>
#include <gpxe/efi/efi.h>
diff --git a/src/config/console.h b/src/config/console.h
index b4ea1dda..be3242dd 100644
--- a/src/config/console.h
+++ b/src/config/console.h
@@ -10,6 +10,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <config/defaults.h>
//#define CONSOLE_PCBIOS /* Default BIOS console */
diff --git a/src/config/defaults.h b/src/config/defaults.h
index 1f55ef3c..389c0b07 100644
--- a/src/config/defaults.h
+++ b/src/config/defaults.h
@@ -1,6 +1,8 @@
#ifndef CONFIG_DEFAULTS_H
#define CONFIG_DEFAULTS_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#define CONFIG_DEFAULTS(_platform) <config/defaults/_platform.h>
#include CONFIG_DEFAULTS(PLATFORM)
diff --git a/src/config/defaults/pcbios.h b/src/config/defaults/pcbios.h
index 4359e1a4..f7b8a45c 100644
--- a/src/config/defaults/pcbios.h
+++ b/src/config/defaults/pcbios.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#define UACCESS_LIBRM
#define IOAPI_X86
#define PCIAPI_PCBIOS
diff --git a/src/config/general.h b/src/config/general.h
index 6dffdd6b..dfc87007 100644
--- a/src/config/general.h
+++ b/src/config/general.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <config/defaults.h>
/*
diff --git a/src/config/ioapi.h b/src/config/ioapi.h
index 7726a0f0..8ddd557b 100644
--- a/src/config/ioapi.h
+++ b/src/config/ioapi.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <config/defaults.h>
//#undef PCIAPI_PCBIOS /* Access via PCI BIOS */
diff --git a/src/config/nap.h b/src/config/nap.h
index 8648d925..1b981355 100644
--- a/src/config/nap.h
+++ b/src/config/nap.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <config/defaults.h>
//#undef NAP_PCBIOS
diff --git a/src/config/serial.h b/src/config/serial.h
index 984a7a9c..1d7f51ef 100644
--- a/src/config/serial.h
+++ b/src/config/serial.h
@@ -11,6 +11,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#define COMCONSOLE 0x3f8 /* I/O port address */
/* Keep settings from a previous user of the serial port (e.g. lilo or
diff --git a/src/config/timer.h b/src/config/timer.h
index 7c3f3521..cc6a93d1 100644
--- a/src/config/timer.h
+++ b/src/config/timer.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <config/defaults.h>
//#undef TIMER_PCBIOS
diff --git a/src/config/umalloc.h b/src/config/umalloc.h
index de4019e5..65febf1f 100644
--- a/src/config/umalloc.h
+++ b/src/config/umalloc.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <config/defaults.h>
#endif /* CONFIG_UMALLOC_H */
diff --git a/src/core/acpi.c b/src/core/acpi.c
index 94b7b2a1..b65f4d48 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 6b820ada..31306e2a 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 94d7e7c4..03cf45cf 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 e54821e3..5619ef7b 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 7340c0d5..a481c54f 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 d0266471..bbe9cbaa 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 53abaaea..1bca9e47 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 0662a3a4..ecaf781f 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 1ea3dc13..e22d2601 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 7d2e8828..b303fa35 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 81fd900e..65e01b21 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 1f57e4c6..96ccc9ff 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 83027d38..5bde0a6b 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 181ca4c5..25c578d5 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 f9ebe7cf..a8bee7dc 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 787c9027..dbd074cc 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 6de412bb..b67da0c1 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 0d188c30..24fe51ab 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 e1c9dce0..cd0f6dcc 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 37aabfe0..43d58ed2 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 cc4aedea..1ce7890e 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 6c2faf30..2a6a8a03 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 d02f37c3..221f4e1a 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 809d4dcf..74452b78 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 db7f1bed..8b0bc24d 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 1f51272d..5a82c85c 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 657bfd7a..a24b559e 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 e5c07d98..3dbf51d3 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 beb67a03..d5eb30cf 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 6f6d815a..e6b1a0f6 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 dcae9017..6dacd665 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 d34e763a..6e7374e3 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 30bb6dea..f2286cac 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 5a5d4afe..6f01f93e 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 5b3be39c..d35e89e9 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 b00c0d07..3a58e39b 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 2e17bdcb..190007a4 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 d71e3da1..096d07ec 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 7bb46da0..d31aabaf 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 a3a82c68..2b67d55d 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 4457fe4f..21ab2429 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 9ed19da2..a9bcb4d7 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>
diff --git a/src/crypto/asn1.c b/src/crypto/asn1.c
index 25e7495b..154a8a84 100644
--- a/src/crypto/asn1.c
+++ b/src/crypto/asn1.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stddef.h>
#include <errno.h>
diff --git a/src/crypto/axtls_aes.c b/src/crypto/axtls_aes.c
index 51e1924e..9e4044ea 100644
--- a/src/crypto/axtls_aes.c
+++ b/src/crypto/axtls_aes.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 <byteswap.h>
diff --git a/src/crypto/cbc.c b/src/crypto/cbc.c
index c7116ea9..1710203c 100644
--- a/src/crypto/cbc.c
+++ b/src/crypto/cbc.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/crypto.h>
diff --git a/src/crypto/chap.c b/src/crypto/chap.c
index d0784d25..8aa224c4 100644
--- a/src/crypto/chap.c
+++ b/src/crypto/chap.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/crypto/crypto_null.c b/src/crypto/crypto_null.c
index 8cc9217a..61efb34e 100644
--- a/src/crypto/crypto_null.c
+++ b/src/crypto/crypto_null.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/crypto/hmac.c b/src/crypto/hmac.c
index be0298a7..d64730c0 100644
--- a/src/crypto/hmac.c
+++ b/src/crypto/hmac.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/crypto/md5.c b/src/crypto/md5.c
index 72b291ac..8c606398 100644
--- a/src/crypto/md5.c
+++ b/src/crypto/md5.c
@@ -20,6 +20,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <string.h>
#include <byteswap.h>
diff --git a/src/crypto/x509.c b/src/crypto/x509.c
index 35adfa38..31ed412f 100644
--- a/src/crypto/x509.c
+++ b/src/crypto/x509.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/drivers/bitbash/bitbash.c b/src/drivers/bitbash/bitbash.c
index c6f93520..3e558d5c 100644
--- a/src/drivers/bitbash/bitbash.c
+++ b/src/drivers/bitbash/bitbash.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/bitbash.h>
/** @file
diff --git a/src/drivers/bitbash/i2c_bit.c b/src/drivers/bitbash/i2c_bit.c
index b85057af..13197270 100644
--- a/src/drivers/bitbash/i2c_bit.c
+++ b/src/drivers/bitbash/i2c_bit.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 <errno.h>
diff --git a/src/drivers/bitbash/spi_bit.c b/src/drivers/bitbash/spi_bit.c
index ef87b5a2..8b5060c1 100644
--- a/src/drivers/bitbash/spi_bit.c
+++ b/src/drivers/bitbash/spi_bit.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/drivers/block/ata.c b/src/drivers/block/ata.c
index c21d2f65..fd636458 100644
--- a/src/drivers/block/ata.c
+++ b/src/drivers/block/ata.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 <assert.h>
diff --git a/src/drivers/block/ramdisk.c b/src/drivers/block/ramdisk.c
index 50911994..4e6f1bca 100644
--- a/src/drivers/block/ramdisk.c
+++ b/src/drivers/block/ramdisk.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/blockdev.h>
#include <gpxe/ramdisk.h>
diff --git a/src/drivers/block/scsi.c b/src/drivers/block/scsi.c
index b22bd20f..5431233f 100644
--- a/src/drivers/block/scsi.c
+++ b/src/drivers/block/scsi.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 <byteswap.h>
diff --git a/src/drivers/bus/eisa.c b/src/drivers/bus/eisa.c
index 1af56f2e..b533364b 100644
--- a/src/drivers/bus/eisa.c
+++ b/src/drivers/bus/eisa.c
@@ -7,6 +7,8 @@
#include <unistd.h>
#include <gpxe/eisa.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
static void eisabus_remove ( struct root_device *rootdev );
/**
diff --git a/src/drivers/bus/isa.c b/src/drivers/bus/isa.c
index eb49fbf2..f458826d 100644
--- a/src/drivers/bus/isa.c
+++ b/src/drivers/bus/isa.c
@@ -6,6 +6,8 @@
#include <gpxe/io.h>
#include <gpxe/isa.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
/*
* isa.c implements a "classical" port-scanning method of ISA device
* detection. The driver must provide a list of probe addresses
diff --git a/src/drivers/bus/isapnp.c b/src/drivers/bus/isapnp.c
index 957a955b..ccf6209f 100644
--- a/src/drivers/bus/isapnp.c
+++ b/src/drivers/bus/isapnp.c
@@ -55,6 +55,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/drivers/bus/mca.c b/src/drivers/bus/mca.c
index d6bb60f2..2815603e 100644
--- a/src/drivers/bus/mca.c
+++ b/src/drivers/bus/mca.c
@@ -5,6 +5,8 @@
*
*/
+FILE_LICENCE ( BSD2 );
+
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c
index 7f038c2b..8899e6e1 100644
--- a/src/drivers/bus/pci.c
+++ b/src/drivers/bus/pci.c
@@ -19,6 +19,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/drivers/bus/pciextra.c b/src/drivers/bus/pciextra.c
index 4603bcb9..1dd63ee3 100644
--- a/src/drivers/bus/pciextra.c
+++ b/src/drivers/bus/pciextra.c
@@ -1,3 +1,5 @@
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/pci.h>
diff --git a/src/drivers/infiniband/MT25218_PRM.h b/src/drivers/infiniband/MT25218_PRM.h
index 19ca92cd..f1b7c1ff 100644
--- a/src/drivers/infiniband/MT25218_PRM.h
+++ b/src/drivers/infiniband/MT25218_PRM.h
@@ -19,6 +19,8 @@
Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved.
*/
+FILE_LICENCE ( GPL2_ONLY );
+
/***
*** This file was generated at "Tue Nov 22 15:21:23 2005"
*** by:
diff --git a/src/drivers/infiniband/MT25408_PRM.h b/src/drivers/infiniband/MT25408_PRM.h
index 17882ed7..39ecd17f 100644
--- a/src/drivers/infiniband/MT25408_PRM.h
+++ b/src/drivers/infiniband/MT25408_PRM.h
@@ -19,6 +19,8 @@
Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved.
*/
+FILE_LICENCE ( GPL2_ONLY );
+
/***
*** This file was generated at "Mon Apr 16 23:22:02 2007"
*** by:
diff --git a/src/drivers/infiniband/arbel.c b/src/drivers/infiniband/arbel.c
index c5b3bc0e..a9ca3457 100644
--- a/src/drivers/infiniband/arbel.c
+++ b/src/drivers/infiniband/arbel.c
@@ -19,6 +19,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/drivers/infiniband/arbel.h b/src/drivers/infiniband/arbel.h
index 7d97b156..87f5933d 100644
--- a/src/drivers/infiniband/arbel.h
+++ b/src/drivers/infiniband/arbel.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/uaccess.h>
#include "mlx_bitops.h"
diff --git a/src/drivers/infiniband/hermon.c b/src/drivers/infiniband/hermon.c
index e03823ff..4ece7a4c 100644
--- a/src/drivers/infiniband/hermon.c
+++ b/src/drivers/infiniband/hermon.c
@@ -17,6 +17,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/drivers/infiniband/hermon.h b/src/drivers/infiniband/hermon.h
index ed39da69..5d92efdf 100644
--- a/src/drivers/infiniband/hermon.h
+++ b/src/drivers/infiniband/hermon.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/uaccess.h>
#include "mlx_bitops.h"
diff --git a/src/drivers/infiniband/ib_packet.c b/src/drivers/infiniband/ib_packet.c
index 0f21617f..d67ba1d7 100644
--- a/src/drivers/infiniband/ib_packet.c
+++ b/src/drivers/infiniband/ib_packet.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/drivers/infiniband/ib_sma.c b/src/drivers/infiniband/ib_sma.c
index 2bd3a9e8..96cc37c9 100644
--- a/src/drivers/infiniband/ib_sma.c
+++ b/src/drivers/infiniband/ib_sma.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/drivers/infiniband/ib_smc.c b/src/drivers/infiniband/ib_smc.c
index af0c4ab9..0879a744 100644
--- a/src/drivers/infiniband/ib_smc.c
+++ b/src/drivers/infiniband/ib_smc.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/drivers/infiniband/linda.c b/src/drivers/infiniband/linda.c
index 675f1cf8..e7259014 100644
--- a/src/drivers/infiniband/linda.c
+++ b/src/drivers/infiniband/linda.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 <errno.h>
diff --git a/src/drivers/infiniband/linda.h b/src/drivers/infiniband/linda.h
index dd1737a6..66eea28e 100644
--- a/src/drivers/infiniband/linda.h
+++ b/src/drivers/infiniband/linda.h
@@ -19,6 +19,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/drivers/infiniband/linda_fw.c b/src/drivers/infiniband/linda_fw.c
index fc5ea077..968a5f8d 100644
--- a/src/drivers/infiniband/linda_fw.c
+++ b/src/drivers/infiniband/linda_fw.c
@@ -30,6 +30,8 @@
* SOFTWARE.
*/
+FILE_LICENCE ( GPL2_ONLY );
+
/*
* This file contains the memory image from the vendor, to be copied into
* the IB SERDES of the IBA7220 during initialization.
diff --git a/src/drivers/infiniband/mlx_bitops.h b/src/drivers/infiniband/mlx_bitops.h
index ec57d7b0..ca963592 100644
--- a/src/drivers/infiniband/mlx_bitops.h
+++ b/src/drivers/infiniband/mlx_bitops.h
@@ -19,6 +19,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/drivers/infiniband/qib_7220_regs.h b/src/drivers/infiniband/qib_7220_regs.h
index 0dd3c53d..e4f3c4e4 100644
--- a/src/drivers/infiniband/qib_7220_regs.h
+++ b/src/drivers/infiniband/qib_7220_regs.h
@@ -36,6 +36,7 @@
/* This file has been further processed by ./drivers/infiniband/qib_genbits.pl */
+FILE_LICENCE ( GPL2_ONLY );
#define QIB_7220_Revision_offset 0x00000000UL
struct QIB_7220_Revision_pb {
diff --git a/src/drivers/infiniband/qib_genbits.pl b/src/drivers/infiniband/qib_genbits.pl
index 9eba4da5..0298d36d 100644
--- a/src/drivers/infiniband/qib_genbits.pl
+++ b/src/drivers/infiniband/qib_genbits.pl
@@ -54,7 +54,8 @@ foreach my $datum ( @$data ) {
$datum->{fields} = $fields;
}
-print "\n/* This file has been further processed by $0 */\n\n\n";
+print "\n/* This file has been further processed by $0 */\n\n"
+print "FILE_LICENCE ( GPL2_ONLY );\n\n";
foreach my $datum ( @$data ) {
printf "#define %s_offset 0x%08xUL\n",
diff --git a/src/drivers/net/3c509.c b/src/drivers/net/3c509.c
index ecfdec55..1c58f779 100644
--- a/src/drivers/net/3c509.c
+++ b/src/drivers/net/3c509.c
@@ -4,6 +4,8 @@
*
*/
+FILE_LICENCE ( BSD2 );
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/drivers/net/3c509.h b/src/drivers/net/3c509.h
index a06d91ea..f030d4ba 100644
--- a/src/drivers/net/3c509.h
+++ b/src/drivers/net/3c509.h
@@ -31,6 +31,8 @@
*/
+FILE_LICENCE ( BSD3 );
+
#include "nic.h"
/*
diff --git a/src/drivers/net/3c515.c b/src/drivers/net/3c515.c
index dcfe66ba..eb9569fb 100644
--- a/src/drivers/net/3c515.c
+++ b/src/drivers/net/3c515.c
@@ -43,6 +43,7 @@
* Indent Options: indent -kr -i8
* *********************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
/* to get some global routines like printf */
#include "etherboot.h"
diff --git a/src/drivers/net/3c529.c b/src/drivers/net/3c529.c
index 31931048..42824644 100644
--- a/src/drivers/net/3c529.c
+++ b/src/drivers/net/3c529.c
@@ -3,6 +3,8 @@
*
*/
+FILE_LICENCE ( BSD2 );
+
#include "etherboot.h"
#include <gpxe/mca.h>
#include <gpxe/isa.h> /* for ISA_ROM */
diff --git a/src/drivers/net/3c595.c b/src/drivers/net/3c595.c
index f1c8d8a8..07c85d03 100644
--- a/src/drivers/net/3c595.c
+++ b/src/drivers/net/3c595.c
@@ -23,6 +23,8 @@
* timlegge 08-24-2003 Add Multicast Support
*/
+FILE_LICENCE ( BSD2 );
+
/* #define EDEBUG */
#include "etherboot.h"
diff --git a/src/drivers/net/3c595.h b/src/drivers/net/3c595.h
index 49d8d9b0..e27d204a 100644
--- a/src/drivers/net/3c595.h
+++ b/src/drivers/net/3c595.h
@@ -29,6 +29,8 @@
*/
+FILE_LICENCE ( BSD3 );
+
/*
* Created from if_epreg.h by Fred Gray (fgray@rice.edu) to support the
* 3c590 family.
diff --git a/src/drivers/net/3c5x9.c b/src/drivers/net/3c5x9.c
index 565044a1..87c9f29a 100644
--- a/src/drivers/net/3c5x9.c
+++ b/src/drivers/net/3c5x9.c
@@ -22,6 +22,8 @@ $Id$
***************************************************************************/
+FILE_LICENCE ( BSD2 );
+
/* #define EDEBUG */
#include <gpxe/ethernet.h>
diff --git a/src/drivers/net/3c90x.c b/src/drivers/net/3c90x.c
index 215925b4..83b70832 100644
--- a/src/drivers/net/3c90x.c
+++ b/src/drivers/net/3c90x.c
@@ -36,6 +36,8 @@
* $ indent -kr -i8 3c90x.c
*/
+FILE_LICENCE ( BSD2 );
+
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/drivers/net/3c90x.h b/src/drivers/net/3c90x.h
index c62ac1a6..acbb29d2 100644
--- a/src/drivers/net/3c90x.h
+++ b/src/drivers/net/3c90x.h
@@ -45,6 +45,8 @@
* indent options: indent -kr -i8 3c90x.c
*/
+FILE_LICENCE ( BSD2 );
+
#ifndef __3C90X_H_
#define __3C90X_H_
diff --git a/src/drivers/net/amd8111e.c b/src/drivers/net/amd8111e.c
index 03b2768f..1b1fdc19 100644
--- a/src/drivers/net/amd8111e.c
+++ b/src/drivers/net/amd8111e.c
@@ -28,6 +28,8 @@
* USA
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include "etherboot.h"
#include "nic.h"
#include "mii.h"
diff --git a/src/drivers/net/amd8111e.h b/src/drivers/net/amd8111e.h
index 82b8f7a3..a402a63e 100644
--- a/src/drivers/net/amd8111e.h
+++ b/src/drivers/net/amd8111e.h
@@ -35,6 +35,8 @@ Revision History:
3.0.1
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifndef _AMD811E_H
#define _AMD811E_H
diff --git a/src/drivers/net/b44.c b/src/drivers/net/b44.c
index d1920bde..38c4746d 100644
--- a/src/drivers/net/b44.c
+++ b/src/drivers/net/b44.c
@@ -28,6 +28,8 @@
* Copyright (c) a lot of people too. Please respect their work.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <errno.h>
#include <assert.h>
#include <stdio.h>
diff --git a/src/drivers/net/b44.h b/src/drivers/net/b44.h
index fb36757f..b5afcbdd 100644
--- a/src/drivers/net/b44.h
+++ b/src/drivers/net/b44.h
@@ -27,6 +27,9 @@
*
* Copyright (c) a lot of people too. Please respect their work.
*/
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifndef _B44_H
#define _B44_H
diff --git a/src/drivers/net/bnx2.c b/src/drivers/net/bnx2.c
index 9427d477..d905a2ed 100644
--- a/src/drivers/net/bnx2.c
+++ b/src/drivers/net/bnx2.c
@@ -12,6 +12,7 @@
* version 1.4.40 from linux 2.6.17
*/
+FILE_LICENCE ( GPL_ANY );
#include "etherboot.h"
#include "nic.h"
diff --git a/src/drivers/net/bnx2.h b/src/drivers/net/bnx2.h
index 57d5fee8..b853a694 100644
--- a/src/drivers/net/bnx2.h
+++ b/src/drivers/net/bnx2.h
@@ -9,6 +9,7 @@
* Written by: Michael Chan (mchan@broadcom.com)
*/
+FILE_LICENCE ( GPL_ANY );
#ifndef BNX2_H
#define BNX2_H
diff --git a/src/drivers/net/cs89x0.c b/src/drivers/net/cs89x0.c
index 1f647a8e..df2667d9 100644
--- a/src/drivers/net/cs89x0.c
+++ b/src/drivers/net/cs89x0.c
@@ -20,6 +20,8 @@
-- quote from email
**/
+FILE_LICENCE ( GPL2_ONLY );
+
/* cs89x0.c: A Crystal Semiconductor CS89[02]0 driver for etherboot. */
/*
Permission is granted to distribute the enclosed cs89x0.[ch] driver
diff --git a/src/drivers/net/cs89x0.h b/src/drivers/net/cs89x0.h
index 696191cf..a36b907c 100644
--- a/src/drivers/net/cs89x0.h
+++ b/src/drivers/net/cs89x0.h
@@ -16,6 +16,8 @@
-- quote from email
**/
+FILE_LICENCE ( GPL2_ONLY );
+
/* Copyright, 1988-1992, Russell Nelson, Crynwr Software
This program is free software; you can redistribute it and/or modify
diff --git a/src/drivers/net/davicom.c b/src/drivers/net/davicom.c
index 4b1faafb..07c5e1b2 100644
--- a/src/drivers/net/davicom.c
+++ b/src/drivers/net/davicom.c
@@ -15,6 +15,8 @@
*/
+FILE_LICENCE ( GPL_ANY );
+
/*********************************************************************/
/* Revision History */
/*********************************************************************/
diff --git a/src/drivers/net/depca.c b/src/drivers/net/depca.c
index 7372e604..ea85cbe1 100644
--- a/src/drivers/net/depca.c
+++ b/src/drivers/net/depca.c
@@ -1,5 +1,7 @@
/* #warning "depca.c: FIXME: fix relocation" */
+FILE_LICENCE ( GPL_ANY );
+
#if 0
/* Not fixed for relocation yet. Probably won't work relocated above 16MB */
#ifdef ALLMULTI
diff --git a/src/drivers/net/dmfe.c b/src/drivers/net/dmfe.c
index 309d5bcf..fad1737a 100644
--- a/src/drivers/net/dmfe.c
+++ b/src/drivers/net/dmfe.c
@@ -36,6 +36,8 @@
*
***************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* to get some global routines like printf */
#include "etherboot.h"
/* to get the interface to the body of the program */
diff --git a/src/drivers/net/e1000/e1000.c b/src/drivers/net/e1000/e1000.c
index 3461ee52..b6af86fc 100644
--- a/src/drivers/net/e1000/e1000.c
+++ b/src/drivers/net/e1000/e1000.c
@@ -41,6 +41,8 @@
*******************************************************************************/
+FILE_LICENCE ( GPL2_ONLY );
+
#include "e1000.h"
/**
diff --git a/src/drivers/net/e1000/e1000.h b/src/drivers/net/e1000/e1000.h
index 77a09ef1..ea51db6e 100644
--- a/src/drivers/net/e1000/e1000.h
+++ b/src/drivers/net/e1000/e1000.h
@@ -26,6 +26,8 @@
*******************************************************************************/
+FILE_LICENCE ( GPL2_ONLY );
+
/* Linux PRO/1000 Ethernet Driver main header file */
#ifndef _E1000_H_
diff --git a/src/drivers/net/e1000/e1000_hw.c b/src/drivers/net/e1000/e1000_hw.c
index 1054b90a..48aae3cb 100644
--- a/src/drivers/net/e1000/e1000_hw.c
+++ b/src/drivers/net/e1000/e1000_hw.c
@@ -26,6 +26,8 @@
*******************************************************************************/
+FILE_LICENCE ( GPL2_ONLY );
+
/* e1000_hw.c
* Shared functions for accessing and configuring the MAC
*/
diff --git a/src/drivers/net/e1000/e1000_hw.h b/src/drivers/net/e1000/e1000_hw.h
index 9e319395..d18060e5 100644
--- a/src/drivers/net/e1000/e1000_hw.h
+++ b/src/drivers/net/e1000/e1000_hw.h
@@ -26,6 +26,8 @@
*******************************************************************************/
+FILE_LICENCE ( GPL2_ONLY );
+
/* e1000_hw.h
* Structures, enums, and macros for the MAC
*/
diff --git a/src/drivers/net/e1000/e1000_osdep.h b/src/drivers/net/e1000/e1000_osdep.h
index c2d9eb9c..cdbf8d16 100644
--- a/src/drivers/net/e1000/e1000_osdep.h
+++ b/src/drivers/net/e1000/e1000_osdep.h
@@ -26,6 +26,7 @@
*******************************************************************************/
+FILE_LICENCE ( GPL2_ONLY );
/* glue for the OS independent part of e1000
* includes register access macros
diff --git a/src/drivers/net/eepro.c b/src/drivers/net/eepro.c
index 2a163d1b..a248692c 100644
--- a/src/drivers/net/eepro.c
+++ b/src/drivers/net/eepro.c
@@ -31,6 +31,8 @@ has 34 pins, the top row of 2 are not used.
* your option) any later version.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include "etherboot.h"
#include <errno.h>
#include "nic.h"
diff --git a/src/drivers/net/eepro100.c b/src/drivers/net/eepro100.c
index 5881da91..85d7571c 100644
--- a/src/drivers/net/eepro100.c
+++ b/src/drivers/net/eepro100.c
@@ -52,6 +52,8 @@
* - Michael Brown
* */
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* Philosophy of this driver.
*
* Probing:
diff --git a/src/drivers/net/epic100.c b/src/drivers/net/epic100.c
index 88e0d2b8..aaa85f80 100644
--- a/src/drivers/net/epic100.c
+++ b/src/drivers/net/epic100.c
@@ -1,6 +1,8 @@
/* epic100.c: A SMC 83c170 EPIC/100 fast ethernet driver for Etherboot */
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* 05/06/2003 timlegge Fixed relocation and implemented Multicast */
#define LINUX_OUT_MACROS
diff --git a/src/drivers/net/epic100.h b/src/drivers/net/epic100.h
index 61bd1d94..f290b103 100644
--- a/src/drivers/net/epic100.h
+++ b/src/drivers/net/epic100.h
@@ -1,6 +1,8 @@
#ifndef _EPIC100_H_
# define _EPIC100_H_
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifndef PCI_VENDOR_SMC
# define PCI_VENDOR_SMC 0x10B8
#endif
diff --git a/src/drivers/net/etherfabric.c b/src/drivers/net/etherfabric.c
index cd9c4dcd..e9533594 100644
--- a/src/drivers/net/etherfabric.c
+++ b/src/drivers/net/etherfabric.c
@@ -15,6 +15,9 @@
*
**************************************************************************
*/
+
+FILE_LICENCE ( GPL_ANY );
+
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/src/drivers/net/etherfabric.h b/src/drivers/net/etherfabric.h
index 950f8de2..9657eb7e 100644
--- a/src/drivers/net/etherfabric.h
+++ b/src/drivers/net/etherfabric.h
@@ -17,6 +17,8 @@
**************************************************************************
*/
+FILE_LICENCE ( GPL_ANY );
+
#ifndef EFAB_BITFIELD_H
#define EFAB_BITFIELD_H
diff --git a/src/drivers/net/etherfabric_nic.h b/src/drivers/net/etherfabric_nic.h
index 4be50fbb..fe94d801 100644
--- a/src/drivers/net/etherfabric_nic.h
+++ b/src/drivers/net/etherfabric_nic.h
@@ -15,6 +15,9 @@
*
**************************************************************************
*/
+
+FILE_LICENCE ( GPL_ANY );
+
#ifndef EFAB_NIC_H
#define EFAB_NIC_H
#include <gpxe/bitbash.h>
diff --git a/src/drivers/net/forcedeth.c b/src/drivers/net/forcedeth.c
index 705b6d4a..5cd4ce01 100644
--- a/src/drivers/net/forcedeth.c
+++ b/src/drivers/net/forcedeth.c
@@ -43,6 +43,8 @@
* Indent Options: indent -kr -i8
***************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* to get some global routines like printf */
#include "etherboot.h"
/* to get the interface to the body of the program */
diff --git a/src/drivers/net/hfa384x.h b/src/drivers/net/hfa384x.h
index afb50693..2e3ccf52 100644
--- a/src/drivers/net/hfa384x.h
+++ b/src/drivers/net/hfa384x.h
@@ -53,6 +53,8 @@
* --------------------------------------------------------------------
*/
+FILE_LICENCE ( GPL2_ONLY );
+
#ifndef _HFA384x_H
#define _HFA384x_H
diff --git a/src/drivers/net/ipoib.c b/src/drivers/net/ipoib.c
index 8ad2c29f..cb56458e 100644
--- a/src/drivers/net/ipoib.c
+++ b/src/drivers/net/ipoib.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 <unistd.h>
diff --git a/src/drivers/net/legacy.c b/src/drivers/net/legacy.c
index cbec3cf5..4977076c 100644
--- a/src/drivers/net/legacy.c
+++ b/src/drivers/net/legacy.c
@@ -17,6 +17,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct nic nic;
static int legacy_registered = 0;
diff --git a/src/drivers/net/mtd80x.c b/src/drivers/net/mtd80x.c
index 791eba8d..d0e1554f 100644
--- a/src/drivers/net/mtd80x.c
+++ b/src/drivers/net/mtd80x.c
@@ -23,6 +23,8 @@
*
***************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* to get some global routines like printf */
#include "etherboot.h"
/* to get the interface to the body of the program */
diff --git a/src/drivers/net/mtnic.c b/src/drivers/net/mtnic.c
index c9ce1d5c..7fe4b96f 100644
--- a/src/drivers/net/mtnic.c
+++ b/src/drivers/net/mtnic.c
@@ -30,6 +30,9 @@
* SOFTWARE.
*
*/
+
+FILE_LICENCE ( GPL2_ONLY );
+
#include <strings.h>
#include <errno.h>
#include <gpxe/malloc.h>
diff --git a/src/drivers/net/mtnic.h b/src/drivers/net/mtnic.h
index 57a7b98c..aa240e22 100644
--- a/src/drivers/net/mtnic.h
+++ b/src/drivers/net/mtnic.h
@@ -30,6 +30,9 @@
* SOFTWARE.
*
*/
+
+FILE_LICENCE ( GPL2_ONLY );
+
#ifndef H_MTNIC_IF_DEFS_H
#define H_MTNIC_IF_DEFS_H
diff --git a/src/drivers/net/natsemi.c b/src/drivers/net/natsemi.c
index 8c41316b..13adf2a7 100644
--- a/src/drivers/net/natsemi.c
+++ b/src/drivers/net/natsemi.c
@@ -46,6 +46,8 @@
*/
+FILE_LICENCE ( GPL_ANY );
+
/* Revision History */
/*
diff --git a/src/drivers/net/natsemi.h b/src/drivers/net/natsemi.h
index 13b5545a..ae827ba3 100644
--- a/src/drivers/net/natsemi.h
+++ b/src/drivers/net/natsemi.h
@@ -1,3 +1,5 @@
+FILE_LICENCE ( GPL_ANY );
+
#define NATSEMI_HW_TIMEOUT 400
#define TX_RING_SIZE 4
diff --git a/src/drivers/net/ne2k_isa.c b/src/drivers/net/ne2k_isa.c
index f8a45cc8..603d1edb 100644
--- a/src/drivers/net/ne2k_isa.c
+++ b/src/drivers/net/ne2k_isa.c
@@ -19,6 +19,8 @@
Extracted from ns8390.c and adapted by Pantelis Koukousoulas <pktoss@gmail.com>
**************************************************************************/
+FILE_LICENCE ( BSD2 );
+
#include "ns8390.h"
#include "etherboot.h"
#include "nic.h"
diff --git a/src/drivers/net/ns83820.c b/src/drivers/net/ns83820.c
index f90ece25..44d875fb 100755
--- a/src/drivers/net/ns83820.c
+++ b/src/drivers/net/ns83820.c
@@ -35,6 +35,8 @@
* Indent Options: indent -kr -i8
***************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* to get some global routines like printf */
#include "etherboot.h"
/* to get the interface to the body of the program */
diff --git a/src/drivers/net/ns8390.c b/src/drivers/net/ns8390.c
index c6bbefdd..97f1141f 100644
--- a/src/drivers/net/ns8390.c
+++ b/src/drivers/net/ns8390.c
@@ -25,6 +25,8 @@ SMC8416 PIO support added by Andrew Bettison (andrewb@zip.com.au) on 4/3/02
**************************************************************************/
+FILE_LICENCE ( BSD2 );
+
/* #warning "ns8390.c: FIXME: split ISA and PCI, clean up" */
#if 1
diff --git a/src/drivers/net/ns8390.h b/src/drivers/net/ns8390.h
index 2c4e972d..79728e75 100644
--- a/src/drivers/net/ns8390.h
+++ b/src/drivers/net/ns8390.h
@@ -6,6 +6,8 @@ Author: Martin Renters
**************************************************************************/
+FILE_LICENCE ( BSD2 );
+
#define VENDOR_NONE 0
#define VENDOR_WD 1
#define VENDOR_NOVELL 2
diff --git a/src/drivers/net/p80211hdr.h b/src/drivers/net/p80211hdr.h
index d9a8bbbe..83546712 100644
--- a/src/drivers/net/p80211hdr.h
+++ b/src/drivers/net/p80211hdr.h
@@ -57,6 +57,8 @@
* --------------------------------------------------------------------
*/
+FILE_LICENCE ( GPL2_ONLY );
+
#ifndef _P80211HDR_H
#define _P80211HDR_H
diff --git a/src/drivers/net/pcnet32.c b/src/drivers/net/pcnet32.c
index ecd7f2fc..2ceccbc1 100644
--- a/src/drivers/net/pcnet32.c
+++ b/src/drivers/net/pcnet32.c
@@ -39,6 +39,8 @@
* Indent Options: indent -kr -i8
***************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include "etherboot.h"
#include "nic.h"
#include <gpxe/pci.h>
diff --git a/src/drivers/net/phantom/nx_bitops.h b/src/drivers/net/phantom/nx_bitops.h
index 33c8fbab..40686326 100644
--- a/src/drivers/net/phantom/nx_bitops.h
+++ b/src/drivers/net/phantom/nx_bitops.h
@@ -19,6 +19,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/drivers/net/phantom/nxhal_nic_interface.h b/src/drivers/net/phantom/nxhal_nic_interface.h
index aa05c725..f487624b 100644
--- a/src/drivers/net/phantom/nxhal_nic_interface.h
+++ b/src/drivers/net/phantom/nxhal_nic_interface.h
@@ -1,3 +1,5 @@
+FILE_LICENCE ( GPL2_ONLY );
+
/*
* Data types and structure for HAL - NIC interface.
*
diff --git a/src/drivers/net/phantom/phantom.c b/src/drivers/net/phantom/phantom.c
index 370ce262..ad17cdfe 100644
--- a/src/drivers/net/phantom/phantom.c
+++ b/src/drivers/net/phantom/phantom.c
@@ -17,6 +17,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/drivers/net/phantom/phantom.h b/src/drivers/net/phantom/phantom.h
index 974eecae..1018a690 100644
--- a/src/drivers/net/phantom/phantom.h
+++ b/src/drivers/net/phantom/phantom.h
@@ -20,6 +20,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/drivers/net/phantom/phantom_hw.h b/src/drivers/net/phantom/phantom_hw.h
index e2c3e537..950f36a4 100644
--- a/src/drivers/net/phantom/phantom_hw.h
+++ b/src/drivers/net/phantom/phantom_hw.h
@@ -20,6 +20,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/drivers/net/pnic.c b/src/drivers/net/pnic.c
index e7095ba3..4b728f4e 100644
--- a/src/drivers/net/pnic.c
+++ b/src/drivers/net/pnic.c
@@ -12,6 +12,8 @@ Bochs Pseudo NIC driver for Etherboot
* See pnic_api.h for an explanation of the Bochs Pseudo NIC.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdio.h>
#include <gpxe/io.h>
diff --git a/src/drivers/net/pnic_api.h b/src/drivers/net/pnic_api.h
index 6d117fa6..27e02363 100644
--- a/src/drivers/net/pnic_api.h
+++ b/src/drivers/net/pnic_api.h
@@ -12,6 +12,8 @@
* time from PNIC_REG_DATA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/*
* PCI parameters
*/
diff --git a/src/drivers/net/prism2.c b/src/drivers/net/prism2.c
index c54dba5d..4c665929 100644
--- a/src/drivers/net/prism2.c
+++ b/src/drivers/net/prism2.c
@@ -13,6 +13,8 @@ $Id$
* your option) any later version.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <etherboot.h>
#include <nic.h>
#include <gpxe/pci.h>
diff --git a/src/drivers/net/prism2_pci.c b/src/drivers/net/prism2_pci.c
index 9e5208b6..b7c1e6bb 100644
--- a/src/drivers/net/prism2_pci.c
+++ b/src/drivers/net/prism2_pci.c
@@ -14,6 +14,8 @@ $Id$
* your option) any later version.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/pci.h>
#include <nic.h>
diff --git a/src/drivers/net/prism2_plx.c b/src/drivers/net/prism2_plx.c
index 5eaa7412..9fb5be2a 100644
--- a/src/drivers/net/prism2_plx.c
+++ b/src/drivers/net/prism2_plx.c
@@ -14,6 +14,8 @@ $Id$
* your option) any later version.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/pci.h>
#include <nic.h>
diff --git a/src/drivers/net/r8169.c b/src/drivers/net/r8169.c
index 2bba321e..69ce4e8b 100644
--- a/src/drivers/net/r8169.c
+++ b/src/drivers/net/r8169.c
@@ -23,6 +23,8 @@
* Copyright (c) a lot of people too. Please respect their work.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/drivers/net/r8169.h b/src/drivers/net/r8169.h
index d3536326..66fdc7de 100644
--- a/src/drivers/net/r8169.h
+++ b/src/drivers/net/r8169.h
@@ -24,6 +24,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifndef _R8169_H_
#define _R8169_H_
diff --git a/src/drivers/net/rtl8139.c b/src/drivers/net/rtl8139.c
index 516f9ec4..99830d7a 100644
--- a/src/drivers/net/rtl8139.c
+++ b/src/drivers/net/rtl8139.c
@@ -12,6 +12,8 @@
*/
+FILE_LICENCE ( GPL_ANY );
+
/*********************************************************************/
/* Revision History */
/*********************************************************************/
diff --git a/src/drivers/net/sis900.c b/src/drivers/net/sis900.c
index c24b43ff..177cd657 100644
--- a/src/drivers/net/sis900.c
+++ b/src/drivers/net/sis900.c
@@ -24,6 +24,8 @@
preliminary Rev. 1.0 Jan. 18, 1998
http://www.sis.com.tw/support/databook.htm */
+FILE_LICENCE ( GPL_ANY );
+
/* Revision History */
/*
diff --git a/src/drivers/net/sis900.h b/src/drivers/net/sis900.h
index e88e111d..7a5c6b53 100644
--- a/src/drivers/net/sis900.h
+++ b/src/drivers/net/sis900.h
@@ -11,6 +11,8 @@
* http://www.sis.com.tw/support/databook.htm
*/
+FILE_LICENCE ( GPL_ANY );
+
/* MAC operationl registers of SiS 7016 and SiS 900 ethernet controller */
/* The I/O extent, SiS 900 needs 256 bytes of io address */
#define SIS900_TOTAL_SIZE 0x100
diff --git a/src/drivers/net/smc9000.c b/src/drivers/net/smc9000.c
index 31a1e1b1..cfbf1047 100644
--- a/src/drivers/net/smc9000.c
+++ b/src/drivers/net/smc9000.c
@@ -26,6 +26,9 @@
* Linux driver.
*
*---------------------------------------------------------------------------*/
+
+FILE_LICENCE ( GPL_ANY );
+
#define LINUX_OUT_MACROS 1
#define SMC9000_DEBUG 0
diff --git a/src/drivers/net/smc9000.h b/src/drivers/net/smc9000.h
index 318b7798..979975b0 100644
--- a/src/drivers/net/smc9000.h
+++ b/src/drivers/net/smc9000.h
@@ -28,6 +28,9 @@
* 98-09-27 Daniel Engström moved some static strings back to the
* main .c file
* --------------------------------------------------------------------------*/
+
+FILE_LICENCE ( GPL_ANY );
+
#ifndef _SMC9000_H_
# define _SMC9000_H_
diff --git a/src/drivers/net/sundance.c b/src/drivers/net/sundance.c
index cb8ce74e..a5552cfc 100644
--- a/src/drivers/net/sundance.c
+++ b/src/drivers/net/sundance.c
@@ -40,6 +40,8 @@
*
****************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* to get some global routines like printf */
#include "etherboot.h"
/* to get the interface to the body of the program */
diff --git a/src/drivers/net/tg3.c b/src/drivers/net/tg3.c
index 14180274..18e68ea7 100644
--- a/src/drivers/net/tg3.c
+++ b/src/drivers/net/tg3.c
@@ -6,6 +6,8 @@
* Copyright (C) 2003 Eric Biederman (ebiederman@lnxi.com) [etherboot port]
*/
+FILE_LICENCE ( GPL2_ONLY );
+
/* 11-13-2003 timlegge Fix Issue with NetGear GA302T
* 11-18-2003 ebiederm Generalize NetGear Fix to what the code was supposed to be.
* 01-06-2005 Alf (Frederic Olivie) Add Dell bcm 5751 (0x1677) support
diff --git a/src/drivers/net/tg3.h b/src/drivers/net/tg3.h
index d1c09e03..a7762c3c 100644
--- a/src/drivers/net/tg3.h
+++ b/src/drivers/net/tg3.h
@@ -5,6 +5,8 @@
* Copyright (C) 2001 Jeff Garzik (jgarzik@mandrakesoft.com)
*/
+FILE_LICENCE ( GPL2_ONLY );
+
#ifndef _T3_H
#define _T3_H
diff --git a/src/drivers/net/tlan.c b/src/drivers/net/tlan.c
index c0d027c6..bc1b485e 100644
--- a/src/drivers/net/tlan.c
+++ b/src/drivers/net/tlan.c
@@ -38,6 +38,8 @@
* Indent Options: indent -kr -i8
***************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include "etherboot.h"
#include "nic.h"
#include <gpxe/pci.h>
diff --git a/src/drivers/net/tlan.h b/src/drivers/net/tlan.h
index de57d598..61da5a04 100644
--- a/src/drivers/net/tlan.h
+++ b/src/drivers/net/tlan.h
@@ -34,6 +34,8 @@
* Indent Style: indent -kr -i8
***************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/*****************************************************************
* TLan Definitions
*
diff --git a/src/drivers/net/tulip.c b/src/drivers/net/tulip.c
index 553cded6..e08e0d84 100644
--- a/src/drivers/net/tulip.c
+++ b/src/drivers/net/tulip.c
@@ -43,6 +43,8 @@
ftp://cesdis.gsfc.nasa.gov/pub/linux/drivers/tulip-devel.html
*/
+FILE_LICENCE ( GPL_ANY );
+
/*********************************************************************/
/* Revision History */
/*********************************************************************/
diff --git a/src/drivers/net/w89c840.c b/src/drivers/net/w89c840.c
index 5dc6c93a..fa6188af 100644
--- a/src/drivers/net/w89c840.c
+++ b/src/drivers/net/w89c840.c
@@ -29,6 +29,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/*
* date version by what
* Written: Aug 20 2000 V0.10 iko Initial revision.
diff --git a/src/drivers/net/wlan_compat.h b/src/drivers/net/wlan_compat.h
index a4f75e3a..9b7693bb 100644
--- a/src/drivers/net/wlan_compat.h
+++ b/src/drivers/net/wlan_compat.h
@@ -45,6 +45,8 @@
* --------------------------------------------------------------------
*/
+FILE_LICENCE ( GPL2_ONLY );
+
#ifndef _WLAN_COMPAT_H
#define _WLAN_COMPAT_H
diff --git a/src/drivers/nvs/nvs.c b/src/drivers/nvs/nvs.c
index 8e94b872..7252808b 100644
--- a/src/drivers/nvs/nvs.c
+++ b/src/drivers/nvs/nvs.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 <errno.h>
diff --git a/src/drivers/nvs/spi.c b/src/drivers/nvs/spi.c
index dbdc32f6..793080a0 100644
--- a/src/drivers/nvs/spi.c
+++ b/src/drivers/nvs/spi.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <errno.h>
#include <unistd.h>
diff --git a/src/drivers/nvs/threewire.c b/src/drivers/nvs/threewire.c
index dbecf909..f7a20bbe 100644
--- a/src/drivers/nvs/threewire.c
+++ b/src/drivers/nvs/threewire.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <assert.h>
#include <unistd.h>
diff --git a/src/hci/commands/autoboot_cmd.c b/src/hci/commands/autoboot_cmd.c
index 0e6f2948..95b172d1 100644
--- a/src/hci/commands/autoboot_cmd.c
+++ b/src/hci/commands/autoboot_cmd.c
@@ -2,6 +2,8 @@
#include <gpxe/command.h>
#include <usr/autoboot.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
static int autoboot_exec ( int argc, char **argv ) {
if ( argc != 1 ) {
diff --git a/src/hci/commands/config_cmd.c b/src/hci/commands/config_cmd.c
index 87abb05a..a9e1f169 100644
--- a/src/hci/commands/config_cmd.c
+++ b/src/hci/commands/config_cmd.c
@@ -4,6 +4,8 @@
#include <gpxe/settings.h>
#include <gpxe/settings_ui.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
static int config_exec ( int argc, char **argv ) {
char *settings_name;
struct settings *settings;
diff --git a/src/hci/commands/dhcp_cmd.c b/src/hci/commands/dhcp_cmd.c
index 9b577c86..96aac8d4 100644
--- a/src/hci/commands/dhcp_cmd.c
+++ b/src/hci/commands/dhcp_cmd.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
diff --git a/src/hci/commands/ifmgmt_cmd.c b/src/hci/commands/ifmgmt_cmd.c
index f2508e55..586fc579 100644
--- a/src/hci/commands/ifmgmt_cmd.c
+++ b/src/hci/commands/ifmgmt_cmd.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <getopt.h>
#include <gpxe/netdevice.h>
diff --git a/src/hci/commands/image_cmd.c b/src/hci/commands/image_cmd.c
index 6d8b5908..68f1e87d 100644
--- a/src/hci/commands/image_cmd.c
+++ b/src/hci/commands/image_cmd.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/hci/commands/login_cmd.c b/src/hci/commands/login_cmd.c
index e425247d..0da2497a 100644
--- a/src/hci/commands/login_cmd.c
+++ b/src/hci/commands/login_cmd.c
@@ -3,6 +3,8 @@
#include <gpxe/command.h>
#include <gpxe/login_ui.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
static int login_exec ( int argc, char **argv ) {
int rc;
diff --git a/src/hci/commands/nvo_cmd.c b/src/hci/commands/nvo_cmd.c
index c0c07280..5eb2f06f 100644
--- a/src/hci/commands/nvo_cmd.c
+++ b/src/hci/commands/nvo_cmd.c
@@ -7,6 +7,8 @@
#include <gpxe/settings.h>
#include <gpxe/command.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
static int show_exec ( int argc, char **argv ) {
char buf[256];
int rc;
diff --git a/src/hci/commands/route_cmd.c b/src/hci/commands/route_cmd.c
index 227682cb..4372e34f 100644
--- a/src/hci/commands/route_cmd.c
+++ b/src/hci/commands/route_cmd.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <getopt.h>
#include <gpxe/command.h>
diff --git a/src/hci/commands/sanboot_cmd.c b/src/hci/commands/sanboot_cmd.c
index d5bbfb85..783b747b 100644
--- a/src/hci/commands/sanboot_cmd.c
+++ b/src/hci/commands/sanboot_cmd.c
@@ -4,6 +4,8 @@
#include <gpxe/command.h>
#include <usr/autoboot.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* "sanboot" command syntax message
*
diff --git a/src/hci/editstring.c b/src/hci/editstring.c
index 347249f7..648f3389 100644
--- a/src/hci/editstring.c
+++ b/src/hci/editstring.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <assert.h>
#include <string.h>
#include <gpxe/keys.h>
diff --git a/src/hci/mucurses/ansi_screen.c b/src/hci/mucurses/ansi_screen.c
index 468bac02..51fc7c90 100644
--- a/src/hci/mucurses/ansi_screen.c
+++ b/src/hci/mucurses/ansi_screen.c
@@ -2,6 +2,8 @@
#include <curses.h>
#include <console.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
static void ansiscr_reset(struct _curses_screen *scr) __nonnull;
static void ansiscr_movetoyx(struct _curses_screen *scr,
unsigned int y, unsigned int x) __nonnull;
diff --git a/src/hci/mucurses/clear.c b/src/hci/mucurses/clear.c
index 1813939b..79b296cf 100644
--- a/src/hci/mucurses/clear.c
+++ b/src/hci/mucurses/clear.c
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* Clear a window to the bottom from current cursor position
*
diff --git a/src/hci/mucurses/colour.c b/src/hci/mucurses/colour.c
index 2310641e..c1359c86 100644
--- a/src/hci/mucurses/colour.c
+++ b/src/hci/mucurses/colour.c
@@ -1,5 +1,7 @@
#include <curses.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct colour_pair {
short fcol;
short bcol;
diff --git a/src/hci/mucurses/cursor.h b/src/hci/mucurses/cursor.h
index af86519c..16b7d27c 100644
--- a/src/hci/mucurses/cursor.h
+++ b/src/hci/mucurses/cursor.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct cursor_pos {
unsigned int y, x;
};
diff --git a/src/hci/mucurses/mucurses.c b/src/hci/mucurses/mucurses.c
index 3620d08b..087ebcc3 100644
--- a/src/hci/mucurses/mucurses.c
+++ b/src/hci/mucurses/mucurses.c
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
static void _wupdcurs ( WINDOW *win ) __nonnull;
void _wputch ( WINDOW *win, chtype ch, int wrap ) __nonnull;
void _wputc ( WINDOW *win, char c, int wrap ) __nonnull;
diff --git a/src/hci/mucurses/mucurses.h b/src/hci/mucurses/mucurses.h
index 1476733f..7ac1086a 100644
--- a/src/hci/mucurses/mucurses.h
+++ b/src/hci/mucurses/mucurses.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#define WRAP 0
#define NOWRAP 1
diff --git a/src/hci/mucurses/print.c b/src/hci/mucurses/print.c
index 9fca3088..1608c0a7 100644
--- a/src/hci/mucurses/print.c
+++ b/src/hci/mucurses/print.c
@@ -10,6 +10,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* Add a single-byte character and rendition to a window and advance
* the cursor
diff --git a/src/hci/mucurses/widgets/editbox.c b/src/hci/mucurses/widgets/editbox.c
index a52089ce..ee7d609d 100644
--- a/src/hci/mucurses/widgets/editbox.c
+++ b/src/hci/mucurses/widgets/editbox.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/editbox.h>
diff --git a/src/hci/mucurses/winattrs.c b/src/hci/mucurses/winattrs.c
index 15f97326..f549d751 100644
--- a/src/hci/mucurses/winattrs.c
+++ b/src/hci/mucurses/winattrs.c
@@ -6,6 +6,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* Get the background rendition attributes for a window
*
diff --git a/src/hci/mucurses/wininit.c b/src/hci/mucurses/wininit.c
index cd27f9fe..782e7b5c 100644
--- a/src/hci/mucurses/wininit.c
+++ b/src/hci/mucurses/wininit.c
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* Initialise console environment
*
diff --git a/src/hci/readline.c b/src/hci/readline.c
index ff7a7679..e5699d51 100644
--- a/src/hci/readline.c
+++ b/src/hci/readline.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
diff --git a/src/hci/shell.c b/src/hci/shell.c
index 74787e3c..5bedbdc9 100644
--- a/src/hci/shell.c
+++ b/src/hci/shell.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/hci/shell_banner.c b/src/hci/shell_banner.c
index 3271c483..8afefe3d 100644
--- a/src/hci/shell_banner.c
+++ b/src/hci/shell_banner.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <console.h>
#include <unistd.h>
diff --git a/src/hci/strerror.c b/src/hci/strerror.c
index 8e7d878b..4b16608c 100644
--- a/src/hci/strerror.c
+++ b/src/hci/strerror.c
@@ -18,6 +18,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* Find error description
*
diff --git a/src/hci/tui/login_ui.c b/src/hci/tui/login_ui.c
index c14a2c03..b80bf27b 100644
--- a/src/hci/tui/login_ui.c
+++ b/src/hci/tui/login_ui.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** @file
*
* Login UI
diff --git a/src/hci/tui/settings_ui.c b/src/hci/tui/settings_ui.c
index 83a56d3c..74ce6afb 100644
--- a/src/hci/tui/settings_ui.c
+++ b/src/hci/tui/settings_ui.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
diff --git a/src/image/efi_image.c b/src/image/efi_image.c
index ae95debc..60d150a9 100644
--- a/src/image/efi_image.c
+++ b/src/image/efi_image.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <errno.h>
#include <gpxe/efi/efi.h>
#include <gpxe/image.h>
diff --git a/src/image/elf.c b/src/image/elf.c
index ca650ea8..a0ec065e 100644
--- a/src/image/elf.c
+++ b/src/image/elf.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/image/embedded.c b/src/image/embedded.c
index 4f763578..58a14ea4 100644
--- a/src/image/embedded.c
+++ b/src/image/embedded.c
@@ -6,6 +6,8 @@
* fetching over the network.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <string.h>
#include <gpxe/image.h>
#include <gpxe/uaccess.h>
diff --git a/src/image/script.c b/src/image/script.c
index 2d242746..e94303ab 100644
--- a/src/image/script.c
+++ b/src/image/script.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/image/segment.c b/src/image/segment.c
index 3d2b8a4b..e2474536 100644
--- a/src/image/segment.c
+++ b/src/image/segment.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/include/assert.h b/src/include/assert.h
index 93750a1e..cc784bc1 100644
--- a/src/include/assert.h
+++ b/src/include/assert.h
@@ -10,6 +10,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef NDEBUG
#define ASSERTING 0
#else
diff --git a/src/include/byteswap.h b/src/include/byteswap.h
index 6c3ced25..466759cf 100644
--- a/src/include/byteswap.h
+++ b/src/include/byteswap.h
@@ -1,6 +1,8 @@
#ifndef ETHERBOOT_BYTESWAP_H
#define ETHERBOOT_BYTESWAP_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include "endian.h"
#include "bits/byteswap.h"
diff --git a/src/include/console.h b/src/include/console.h
index 93c53adb..62fedf5b 100644
--- a/src/include/console.h
+++ b/src/include/console.h
@@ -14,6 +14,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* A console driver
*
diff --git a/src/include/ctype.h b/src/include/ctype.h
index 7740443d..8a04f47e 100644
--- a/src/include/ctype.h
+++ b/src/include/ctype.h
@@ -6,6 +6,8 @@
* Character types
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#define isdigit(c) ((c) >= '0' && (c) <= '9')
#define islower(c) ((c) >= 'a' && (c) <= 'z')
#define isupper(c) ((c) >= 'A' && (c) <= 'Z')
diff --git a/src/include/curses.h b/src/include/curses.h
index 6b1c42d8..e2c5af23 100644
--- a/src/include/curses.h
+++ b/src/include/curses.h
@@ -10,6 +10,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#undef ERR
#define ERR (-1)
diff --git a/src/include/elf.h b/src/include/elf.h
index fadc0bdb..04022b68 100644
--- a/src/include/elf.h
+++ b/src/include/elf.h
@@ -1,6 +1,8 @@
#ifndef ELF_H
#define ELF_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#define EI_NIDENT 16 /* Size of e_ident array. */
/* Values for e_type. */
diff --git a/src/include/endian.h b/src/include/endian.h
index 32006224..9682cf9b 100644
--- a/src/include/endian.h
+++ b/src/include/endian.h
@@ -1,6 +1,8 @@
#ifndef ETHERBOOT_ENDIAN_H
#define ETHERBOOT_ENDIAN_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* Definitions for byte order, according to significance of bytes,
from low addresses to high addresses. The value is what you get by
putting '4' in the most significant byte, '3' in the second most
diff --git a/src/include/errno.h b/src/include/errno.h
index 58dff1fd..56095ecb 100644
--- a/src/include/errno.h
+++ b/src/include/errno.h
@@ -1,6 +1,8 @@
#ifndef ERRNO_H
#define ERRNO_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** @file
*
* Error codes
diff --git a/src/include/etherboot.h b/src/include/etherboot.h
index 2a465954..ad44e8a9 100644
--- a/src/include/etherboot.h
+++ b/src/include/etherboot.h
@@ -6,6 +6,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
diff --git a/src/include/getopt.h b/src/include/getopt.h
index 2505223e..0fe43567 100644
--- a/src/include/getopt.h
+++ b/src/include/getopt.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
enum getopt_argument_requirement {
diff --git a/src/include/gpxe/acpi.h b/src/include/gpxe/acpi.h
index 33b1b2b7..12edda90 100644
--- a/src/include/gpxe/acpi.h
+++ b/src/include/gpxe/acpi.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/**
diff --git a/src/include/gpxe/aes.h b/src/include/gpxe/aes.h
index bdb4b351..bdc32bd6 100644
--- a/src/include/gpxe/aes.h
+++ b/src/include/gpxe/aes.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_AES_H
#define _GPXE_AES_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct cipher_algorithm;
extern struct cipher_algorithm aes_cbc_algorithm;
diff --git a/src/include/gpxe/ansiesc.h b/src/include/gpxe/ansiesc.h
index ccc4ca65..85f7a9f3 100644
--- a/src/include/gpxe/ansiesc.h
+++ b/src/include/gpxe/ansiesc.h
@@ -26,6 +26,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** A handler for an escape sequence */
struct ansiesc_handler {
/** The control function identifier
diff --git a/src/include/gpxe/aoe.h b/src/include/gpxe/aoe.h
index 6de6b965..6b42fd5b 100644
--- a/src/include/gpxe/aoe.h
+++ b/src/include/gpxe/aoe.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/list.h>
#include <gpxe/if_ether.h>
diff --git a/src/include/gpxe/api.h b/src/include/gpxe/api.h
index df5d1ae3..ff2ba595 100644
--- a/src/include/gpxe/api.h
+++ b/src/include/gpxe/api.h
@@ -11,6 +11,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** @defgroup Single-implementation APIs
*
* These are APIs for which only a single implementation may be
diff --git a/src/include/gpxe/arp.h b/src/include/gpxe/arp.h
index 7dcc7793..0623d35c 100644
--- a/src/include/gpxe/arp.h
+++ b/src/include/gpxe/arp.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/tables.h>
struct net_device;
diff --git a/src/include/gpxe/asn1.h b/src/include/gpxe/asn1.h
index 5440c48c..477c209d 100644
--- a/src/include/gpxe/asn1.h
+++ b/src/include/gpxe/asn1.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#define ASN1_INTEGER 0x02
#define ASN1_BIT_STRING 0x03
#define ASN1_OCTET_STRING 0x04
diff --git a/src/include/gpxe/ata.h b/src/include/gpxe/ata.h
index b6da3930..643b7cd9 100644
--- a/src/include/gpxe/ata.h
+++ b/src/include/gpxe/ata.h
@@ -12,6 +12,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* An ATA Logical Block Address
*
diff --git a/src/include/gpxe/base64.h b/src/include/gpxe/base64.h
index 3321971a..e38bef01 100644
--- a/src/include/gpxe/base64.h
+++ b/src/include/gpxe/base64.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/**
diff --git a/src/include/gpxe/bitbash.h b/src/include/gpxe/bitbash.h
index 62bdce00..f2ba9f7a 100644
--- a/src/include/gpxe/bitbash.h
+++ b/src/include/gpxe/bitbash.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct bit_basher;
/** Bit-bashing operations */
diff --git a/src/include/gpxe/bitmap.h b/src/include/gpxe/bitmap.h
index 0c2f53c8..d6911a51 100644
--- a/src/include/gpxe/bitmap.h
+++ b/src/include/gpxe/bitmap.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
diff --git a/src/include/gpxe/bitops.h b/src/include/gpxe/bitops.h
index 5405c854..8db34312 100644
--- a/src/include/gpxe/bitops.h
+++ b/src/include/gpxe/bitops.h
@@ -19,6 +19,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/include/gpxe/blockdev.h b/src/include/gpxe/blockdev.h
index 8222984a..cf28524d 100644
--- a/src/include/gpxe/blockdev.h
+++ b/src/include/gpxe/blockdev.h
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/uaccess.h>
struct block_device;
diff --git a/src/include/gpxe/cbc.h b/src/include/gpxe/cbc.h
index fcc115eb..1262f1db 100644
--- a/src/include/gpxe/cbc.h
+++ b/src/include/gpxe/cbc.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/crypto.h>
/**
diff --git a/src/include/gpxe/chap.h b/src/include/gpxe/chap.h
index 87e5484f..e86ede35 100644
--- a/src/include/gpxe/chap.h
+++ b/src/include/gpxe/chap.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/md5.h>
diff --git a/src/include/gpxe/command.h b/src/include/gpxe/command.h
index 39bed477..51ca6d6d 100644
--- a/src/include/gpxe/command.h
+++ b/src/include/gpxe/command.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_COMMAND_H
#define _GPXE_COMMAND_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/tables.h>
/** A command-line command */
diff --git a/src/include/gpxe/cpio.h b/src/include/gpxe/cpio.h
index ba6f844a..f462cec1 100644
--- a/src/include/gpxe/cpio.h
+++ b/src/include/gpxe/cpio.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** A CPIO archive header
*
* All field are hexadecimal ASCII numbers padded with '0' on the
diff --git a/src/include/gpxe/crypto.h b/src/include/gpxe/crypto.h
index 10882d37..3831b79c 100644
--- a/src/include/gpxe/crypto.h
+++ b/src/include/gpxe/crypto.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stddef.h>
diff --git a/src/include/gpxe/device.h b/src/include/gpxe/device.h
index 9017f9b9..1db3ff90 100644
--- a/src/include/gpxe/device.h
+++ b/src/include/gpxe/device.h
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/list.h>
#include <gpxe/tables.h>
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h
index 33e0c5d4..74741d96 100644
--- a/src/include/gpxe/dhcp.h
+++ b/src/include/gpxe/dhcp.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/in.h>
#include <gpxe/list.h>
diff --git a/src/include/gpxe/dhcpopts.h b/src/include/gpxe/dhcpopts.h
index 8391a9d4..3d90f411 100644
--- a/src/include/gpxe/dhcpopts.h
+++ b/src/include/gpxe/dhcpopts.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/** A DHCP options block */
diff --git a/src/include/gpxe/dhcppkt.h b/src/include/gpxe/dhcppkt.h
index e8f8fafd..6007ccab 100644
--- a/src/include/gpxe/dhcppkt.h
+++ b/src/include/gpxe/dhcppkt.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/dhcp.h>
#include <gpxe/dhcpopts.h>
#include <gpxe/refcnt.h>
diff --git a/src/include/gpxe/dns.h b/src/include/gpxe/dns.h
index 3e3cff1b..9e5e874f 100644
--- a/src/include/gpxe/dns.h
+++ b/src/include/gpxe/dns.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/in.h>
diff --git a/src/include/gpxe/downloader.h b/src/include/gpxe/downloader.h
index 33aa7692..7f21e07b 100644
--- a/src/include/gpxe/downloader.h
+++ b/src/include/gpxe/downloader.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct job_interface;
struct image;
diff --git a/src/include/gpxe/editbox.h b/src/include/gpxe/editbox.h
index 007b042f..b7cc411b 100644
--- a/src/include/gpxe/editbox.h
+++ b/src/include/gpxe/editbox.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <curses.h>
#include <gpxe/editstring.h>
diff --git a/src/include/gpxe/editstring.h b/src/include/gpxe/editstring.h
index fad8bd5a..48c1baa0 100644
--- a/src/include/gpxe/editstring.h
+++ b/src/include/gpxe/editstring.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** An editable string */
struct edit_string {
/** Buffer for string */
diff --git a/src/include/gpxe/efi/efi_io.h b/src/include/gpxe/efi/efi_io.h
index 93f559db..7ad5ffe7 100644
--- a/src/include/gpxe/efi/efi_io.h
+++ b/src/include/gpxe/efi/efi_io.h
@@ -10,6 +10,8 @@
* no-ops. I/O is handled using the EFI_CPU_IO_PROTOCOL.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef IOAPI_EFI
#define IOAPI_PREFIX_efi
#else
diff --git a/src/include/gpxe/efi/efi_pci.h b/src/include/gpxe/efi/efi_pci.h
index 8be331ab..59c0eb1d 100644
--- a/src/include/gpxe/efi/efi_pci.h
+++ b/src/include/gpxe/efi/efi_pci.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef PCIAPI_EFI
#define PCIAPI_PREFIX_efi
#else
diff --git a/src/include/gpxe/efi/efi_smbios.h b/src/include/gpxe/efi/efi_smbios.h
index df947de5..01631e52 100644
--- a/src/include/gpxe/efi/efi_smbios.h
+++ b/src/include/gpxe/efi/efi_smbios.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef SMBIOS_EFI
#define SMBIOS_PREFIX_efi
#else
diff --git a/src/include/gpxe/efi/efi_timer.h b/src/include/gpxe/efi/efi_timer.h
index c332c9d6..e0531d5a 100644
--- a/src/include/gpxe/efi/efi_timer.h
+++ b/src/include/gpxe/efi/efi_timer.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef TIMER_EFI
#define TIMER_PREFIX_efi
#else
diff --git a/src/include/gpxe/efi/efi_uaccess.h b/src/include/gpxe/efi/efi_uaccess.h
index bae5fb41..a6b61c58 100644
--- a/src/include/gpxe/efi/efi_uaccess.h
+++ b/src/include/gpxe/efi/efi_uaccess.h
@@ -10,6 +10,8 @@
* no-ops.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef UACCESS_EFI
#define UACCESS_PREFIX_efi
#else
diff --git a/src/include/gpxe/efi/efi_umalloc.h b/src/include/gpxe/efi/efi_umalloc.h
index def17b2d..0388dd10 100644
--- a/src/include/gpxe/efi/efi_umalloc.h
+++ b/src/include/gpxe/efi/efi_umalloc.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef UMALLOC_EFI
#define UMALLOC_PREFIX_efi
#else
diff --git a/src/include/gpxe/eisa.h b/src/include/gpxe/eisa.h
index cde46af2..f76e4b9d 100644
--- a/src/include/gpxe/eisa.h
+++ b/src/include/gpxe/eisa.h
@@ -1,6 +1,8 @@
#ifndef EISA_H
#define EISA_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/isa_ids.h>
#include <gpxe/device.h>
diff --git a/src/include/gpxe/elf.h b/src/include/gpxe/elf.h
index db28a60a..da9d2fc0 100644
--- a/src/include/gpxe/elf.h
+++ b/src/include/gpxe/elf.h
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <elf.h>
extern int elf_load ( struct image *image );
diff --git a/src/include/gpxe/errfile.h b/src/include/gpxe/errfile.h
index dcfd4e4a..7ca9c998 100644
--- a/src/include/gpxe/errfile.h
+++ b/src/include/gpxe/errfile.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <bits/errfile.h>
/**
diff --git a/src/include/gpxe/errortab.h b/src/include/gpxe/errortab.h
index d519f68c..35765d48 100644
--- a/src/include/gpxe/errortab.h
+++ b/src/include/gpxe/errortab.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/tables.h>
struct errortab {
diff --git a/src/include/gpxe/ethernet.h b/src/include/gpxe/ethernet.h
index ff0fd6c1..45ab9a09 100644
--- a/src/include/gpxe/ethernet.h
+++ b/src/include/gpxe/ethernet.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/netdevice.h>
#include <gpxe/if_ether.h>
diff --git a/src/include/gpxe/fakedhcp.h b/src/include/gpxe/fakedhcp.h
index 550b74f7..c603bdc4 100644
--- a/src/include/gpxe/fakedhcp.h
+++ b/src/include/gpxe/fakedhcp.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
struct net_device;
diff --git a/src/include/gpxe/features.h b/src/include/gpxe/features.h
index 8d3977cb..db485bc2 100644
--- a/src/include/gpxe/features.h
+++ b/src/include/gpxe/features.h
@@ -11,6 +11,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @defgroup featurecat Feature categories
* @{
diff --git a/src/include/gpxe/filter.h b/src/include/gpxe/filter.h
index 126f6347..1f59fccc 100644
--- a/src/include/gpxe/filter.h
+++ b/src/include/gpxe/filter.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <gpxe/xfer.h>
diff --git a/src/include/gpxe/ftp.h b/src/include/gpxe/ftp.h
index 370285c6..93194f65 100644
--- a/src/include/gpxe/ftp.h
+++ b/src/include/gpxe/ftp.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** FTP default port */
#define FTP_PORT 21
diff --git a/src/include/gpxe/gdbserial.h b/src/include/gpxe/gdbserial.h
index 1863e907..2613ab47 100644
--- a/src/include/gpxe/gdbserial.h
+++ b/src/include/gpxe/gdbserial.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct gdb_transport;
/**
diff --git a/src/include/gpxe/gdbstub.h b/src/include/gpxe/gdbstub.h
index 2e2c4dab..8f9b7c1d 100644
--- a/src/include/gpxe/gdbstub.h
+++ b/src/include/gpxe/gdbstub.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/tables.h>
#include <gdbmach.h>
diff --git a/src/include/gpxe/gdbudp.h b/src/include/gpxe/gdbudp.h
index 1a990933..5f02faaa 100644
--- a/src/include/gpxe/gdbudp.h
+++ b/src/include/gpxe/gdbudp.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct sockaddr_in;
struct gdb_transport;
diff --git a/src/include/gpxe/hidemem.h b/src/include/gpxe/hidemem.h
index 010fdb58..01b3fc24 100644
--- a/src/include/gpxe/hidemem.h
+++ b/src/include/gpxe/hidemem.h
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
extern void hide_umalloc ( physaddr_t start, physaddr_t end );
diff --git a/src/include/gpxe/hmac.h b/src/include/gpxe/hmac.h
index 67aefdce..cb001b9d 100644
--- a/src/include/gpxe/hmac.h
+++ b/src/include/gpxe/hmac.h
@@ -6,6 +6,8 @@
* Keyed-Hashing for Message Authentication
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/crypto.h>
/**
diff --git a/src/include/gpxe/http.h b/src/include/gpxe/http.h
index fa92a950..baa6d83e 100644
--- a/src/include/gpxe/http.h
+++ b/src/include/gpxe/http.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** HTTP default port */
#define HTTP_PORT 80
diff --git a/src/include/gpxe/i2c.h b/src/include/gpxe/i2c.h
index 9d229546..87b89d46 100644
--- a/src/include/gpxe/i2c.h
+++ b/src/include/gpxe/i2c.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/bitbash.h>
diff --git a/src/include/gpxe/ib_mad.h b/src/include/gpxe/ib_mad.h
index 6c4e95b7..4544123c 100644
--- a/src/include/gpxe/ib_mad.h
+++ b/src/include/gpxe/ib_mad.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/ib_packet.h>
diff --git a/src/include/gpxe/ib_packet.h b/src/include/gpxe/ib_packet.h
index 5374802c..fb959126 100644
--- a/src/include/gpxe/ib_packet.h
+++ b/src/include/gpxe/ib_packet.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct ib_device;
struct ib_queue_pair;
struct ib_address_vector;
diff --git a/src/include/gpxe/ib_sma.h b/src/include/gpxe/ib_sma.h
index 835ed4ea..af40a48a 100644
--- a/src/include/gpxe/ib_sma.h
+++ b/src/include/gpxe/ib_sma.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/infiniband.h>
#include <gpxe/process.h>
diff --git a/src/include/gpxe/ib_smc.h b/src/include/gpxe/ib_smc.h
index bb9020bf..fdd1c9cc 100644
--- a/src/include/gpxe/ib_smc.h
+++ b/src/include/gpxe/ib_smc.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/infiniband.h>
typedef int ( * ib_local_mad_t ) ( struct ib_device *ibdev,
diff --git a/src/include/gpxe/icmp.h b/src/include/gpxe/icmp.h
index 49ade2f2..bb8fce8b 100644
--- a/src/include/gpxe/icmp.h
+++ b/src/include/gpxe/icmp.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** An ICMP header */
struct icmp_header {
/** Type */
diff --git a/src/include/gpxe/icmp6.h b/src/include/gpxe/icmp6.h
index 34093616..e8fd1eb3 100644
--- a/src/include/gpxe/icmp6.h
+++ b/src/include/gpxe/icmp6.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/ip6.h>
#include <gpxe/ndp.h>
diff --git a/src/include/gpxe/if_arp.h b/src/include/gpxe/if_arp.h
index 5b250337..932bb3b2 100644
--- a/src/include/gpxe/if_arp.h
+++ b/src/include/gpxe/if_arp.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/* ARP protocol HARDWARE identifiers. */
diff --git a/src/include/gpxe/if_ether.h b/src/include/gpxe/if_ether.h
index 2f3f33d4..57f8e121 100644
--- a/src/include/gpxe/if_ether.h
+++ b/src/include/gpxe/if_ether.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_IF_ETHER_H
#define _GPXE_IF_ETHER_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#define ETH_ALEN 6 /* Size of Ethernet address */
diff --git a/src/include/gpxe/image.h b/src/include/gpxe/image.h
index b4047467..10db8af2 100644
--- a/src/include/gpxe/image.h
+++ b/src/include/gpxe/image.h
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/tables.h>
#include <gpxe/list.h>
#include <gpxe/uaccess.h>
diff --git a/src/include/gpxe/in.h b/src/include/gpxe/in.h
index 831a6110..70271143 100644
--- a/src/include/gpxe/in.h
+++ b/src/include/gpxe/in.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_IN_H
#define _GPXE_IN_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/socket.h>
diff --git a/src/include/gpxe/infiniband.h b/src/include/gpxe/infiniband.h
index 196b5950..7d544237 100644
--- a/src/include/gpxe/infiniband.h
+++ b/src/include/gpxe/infiniband.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/refcnt.h>
#include <gpxe/device.h>
diff --git a/src/include/gpxe/init.h b/src/include/gpxe/init.h
index 5a51b033..a72cba7a 100644
--- a/src/include/gpxe/init.h
+++ b/src/include/gpxe/init.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_INIT_H
#define _GPXE_INIT_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/tables.h>
/**
diff --git a/src/include/gpxe/interface.h b/src/include/gpxe/interface.h
index 94c711a9..114ebf32 100644
--- a/src/include/gpxe/interface.h
+++ b/src/include/gpxe/interface.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/refcnt.h>
/** An object communication interface */
diff --git a/src/include/gpxe/io.h b/src/include/gpxe/io.h
index ebb8ba30..919823d9 100644
--- a/src/include/gpxe/io.h
+++ b/src/include/gpxe/io.h
@@ -16,6 +16,8 @@
* the address parameter.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/api.h>
#include <config/ioapi.h>
diff --git a/src/include/gpxe/iobuf.h b/src/include/gpxe/iobuf.h
index 6d1a58a4..8f05f9ea 100644
--- a/src/include/gpxe/iobuf.h
+++ b/src/include/gpxe/iobuf.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <assert.h>
#include <gpxe/list.h>
diff --git a/src/include/gpxe/ip.h b/src/include/gpxe/ip.h
index b1b0c48c..4342a0c7 100644
--- a/src/include/gpxe/ip.h
+++ b/src/include/gpxe/ip.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/in.h>
#include <gpxe/list.h>
diff --git a/src/include/gpxe/ip6.h b/src/include/gpxe/ip6.h
index dc0ae31f..edb2863c 100644
--- a/src/include/gpxe/ip6.h
+++ b/src/include/gpxe/ip6.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/in.h>
diff --git a/src/include/gpxe/ipoib.h b/src/include/gpxe/ipoib.h
index 80adee5b..5db23847 100644
--- a/src/include/gpxe/ipoib.h
+++ b/src/include/gpxe/ipoib.h
@@ -6,6 +6,8 @@
* IP over Infiniband
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/infiniband.h>
/** IPoIB packet length */
diff --git a/src/include/gpxe/isa.h b/src/include/gpxe/isa.h
index 458d754b..63027a5a 100644
--- a/src/include/gpxe/isa.h
+++ b/src/include/gpxe/isa.h
@@ -1,6 +1,8 @@
#ifndef ISA_H
#define ISA_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/isa_ids.h>
#include <gpxe/device.h>
diff --git a/src/include/gpxe/isa_ids.h b/src/include/gpxe/isa_ids.h
index bf3f1015..1faf1148 100644
--- a/src/include/gpxe/isa_ids.h
+++ b/src/include/gpxe/isa_ids.h
@@ -19,6 +19,8 @@
* the underlying "meaning" is big-endian.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <byteswap.h>
/*
diff --git a/src/include/gpxe/isapnp.h b/src/include/gpxe/isapnp.h
index 633f7b0c..b58a87e4 100644
--- a/src/include/gpxe/isapnp.h
+++ b/src/include/gpxe/isapnp.h
@@ -33,6 +33,8 @@
*
***************************************************************************/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifndef ISAPNP_H
#define ISAPNP_H
diff --git a/src/include/gpxe/iscsi.h b/src/include/gpxe/iscsi.h
index 0510974e..9185d624 100644
--- a/src/include/gpxe/iscsi.h
+++ b/src/include/gpxe/iscsi.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/socket.h>
#include <gpxe/scsi.h>
diff --git a/src/include/gpxe/job.h b/src/include/gpxe/job.h
index 8e11aa33..733a711b 100644
--- a/src/include/gpxe/job.h
+++ b/src/include/gpxe/job.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <gpxe/interface.h>
diff --git a/src/include/gpxe/keys.h b/src/include/gpxe/keys.h
index 3da8a1ff..25bc9bc0 100644
--- a/src/include/gpxe/keys.h
+++ b/src/include/gpxe/keys.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/*
* Symbolic names for some standard ASCII characters
*
diff --git a/src/include/gpxe/linebuf.h b/src/include/gpxe/linebuf.h
index 676731a9..cfa21472 100644
--- a/src/include/gpxe/linebuf.h
+++ b/src/include/gpxe/linebuf.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stddef.h>
diff --git a/src/include/gpxe/linux_compat.h b/src/include/gpxe/linux_compat.h
index 2c3cbbde..577512eb 100644
--- a/src/include/gpxe/linux_compat.h
+++ b/src/include/gpxe/linux_compat.h
@@ -10,6 +10,8 @@
* intended to be a substitute for proper porting.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <errno.h>
#include <stdio.h>
diff --git a/src/include/gpxe/list.h b/src/include/gpxe/list.h
index 602382be..22ba2015 100644
--- a/src/include/gpxe/list.h
+++ b/src/include/gpxe/list.h
@@ -9,6 +9,8 @@
* list.h.
*/
+FILE_LICENCE ( GPL2_ONLY );
+
#include <stddef.h>
#include <assert.h>
diff --git a/src/include/gpxe/login_ui.h b/src/include/gpxe/login_ui.h
index d92ba8f3..4196f7b1 100644
--- a/src/include/gpxe/login_ui.h
+++ b/src/include/gpxe/login_ui.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
extern int login_ui ( void );
#endif /* _GPXE_LOGIN_UI_H */
diff --git a/src/include/gpxe/malloc.h b/src/include/gpxe/malloc.h
index cce5d1d3..c02a8668 100644
--- a/src/include/gpxe/malloc.h
+++ b/src/include/gpxe/malloc.h
@@ -9,6 +9,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/*
* Prototypes for the standard functions (malloc() et al) are in
* stdlib.h. Include <gpxe/malloc.h> only if you need the
diff --git a/src/include/gpxe/mca.h b/src/include/gpxe/mca.h
index d276acfe..da9d73e4 100644
--- a/src/include/gpxe/mca.h
+++ b/src/include/gpxe/mca.h
@@ -5,6 +5,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifndef MCA_H
#define MCA_H
diff --git a/src/include/gpxe/md5.h b/src/include/gpxe/md5.h
index f8976a19..03d65c1a 100644
--- a/src/include/gpxe/md5.h
+++ b/src/include/gpxe/md5.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_MD5_H
#define _GPXE_MD5_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct digest_algorithm;
#include <stdint.h>
diff --git a/src/include/gpxe/memmap.h b/src/include/gpxe/memmap.h
index 836a1b92..dc5bec3b 100644
--- a/src/include/gpxe/memmap.h
+++ b/src/include/gpxe/memmap.h
@@ -10,6 +10,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** A usable memory region */
struct memory_region {
/** Physical start address */
diff --git a/src/include/gpxe/monojob.h b/src/include/gpxe/monojob.h
index aaa38d03..35ff4fd3 100644
--- a/src/include/gpxe/monojob.h
+++ b/src/include/gpxe/monojob.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct job_interface;
extern struct job_interface monojob;
diff --git a/src/include/gpxe/nap.h b/src/include/gpxe/nap.h
index f9ae3cf4..6c2e40cf 100644
--- a/src/include/gpxe/nap.h
+++ b/src/include/gpxe/nap.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/api.h>
#include <config/nap.h>
diff --git a/src/include/gpxe/netdevice.h b/src/include/gpxe/netdevice.h
index e4f5ed36..a2d1e692 100644
--- a/src/include/gpxe/netdevice.h
+++ b/src/include/gpxe/netdevice.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/list.h>
#include <gpxe/tables.h>
diff --git a/src/include/gpxe/null_nap.h b/src/include/gpxe/null_nap.h
index 6dd0cda3..0f46eaa2 100644
--- a/src/include/gpxe/null_nap.h
+++ b/src/include/gpxe/null_nap.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifdef NAP_NULL
#define NAP_PREFIX_null
#else
diff --git a/src/include/gpxe/nvo.h b/src/include/gpxe/nvo.h
index 28068f4b..c9650706 100644
--- a/src/include/gpxe/nvo.h
+++ b/src/include/gpxe/nvo.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/dhcpopts.h>
#include <gpxe/settings.h>
diff --git a/src/include/gpxe/nvs.h b/src/include/gpxe/nvs.h
index b026dd46..5c90c655 100644
--- a/src/include/gpxe/nvs.h
+++ b/src/include/gpxe/nvs.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/** A non-volatile storage device */
diff --git a/src/include/gpxe/open.h b/src/include/gpxe/open.h
index 136ff87f..ebf754da 100644
--- a/src/include/gpxe/open.h
+++ b/src/include/gpxe/open.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdarg.h>
#include <gpxe/tables.h>
#include <gpxe/socket.h>
diff --git a/src/include/gpxe/pci.h b/src/include/gpxe/pci.h
index 11bb5a8d..1789c62c 100644
--- a/src/include/gpxe/pci.h
+++ b/src/include/gpxe/pci.h
@@ -16,6 +16,8 @@
* your option) any later version.
*/
+FILE_LICENCE ( GPL2_ONLY );
+
#include <stdint.h>
#include <gpxe/device.h>
#include <gpxe/tables.h>
diff --git a/src/include/gpxe/pci_ids.h b/src/include/gpxe/pci_ids.h
index 075ff96b..f570c08f 100644
--- a/src/include/gpxe/pci_ids.h
+++ b/src/include/gpxe/pci_ids.h
@@ -7,6 +7,8 @@
* Please keep sorted.
*/
+FILE_LICENCE ( GPL2_ONLY );
+
/* Device classes and subclasses */
#define PCI_CLASS_NOT_DEFINED 0x0000
diff --git a/src/include/gpxe/pci_io.h b/src/include/gpxe/pci_io.h
index 365166c8..8b2729ab 100644
--- a/src/include/gpxe/pci_io.h
+++ b/src/include/gpxe/pci_io.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/api.h>
#include <config/ioapi.h>
diff --git a/src/include/gpxe/posix_io.h b/src/include/gpxe/posix_io.h
index 9984db00..3063dfff 100644
--- a/src/include/gpxe/posix_io.h
+++ b/src/include/gpxe/posix_io.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/uaccess.h>
diff --git a/src/include/gpxe/process.h b/src/include/gpxe/process.h
index 42e4dfa6..a4609191 100644
--- a/src/include/gpxe/process.h
+++ b/src/include/gpxe/process.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/list.h>
#include <gpxe/refcnt.h>
#include <gpxe/tables.h>
diff --git a/src/include/gpxe/profile.h b/src/include/gpxe/profile.h
index d46ca05a..a5bdd3a4 100644
--- a/src/include/gpxe/profile.h
+++ b/src/include/gpxe/profile.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/**
diff --git a/src/include/gpxe/ramdisk.h b/src/include/gpxe/ramdisk.h
index 4a77f05e..31a1d998 100644
--- a/src/include/gpxe/ramdisk.h
+++ b/src/include/gpxe/ramdisk.h
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/uaccess.h>
#include <gpxe/blockdev.h>
diff --git a/src/include/gpxe/rarp.h b/src/include/gpxe/rarp.h
index 81e03bde..7ade8312 100644
--- a/src/include/gpxe/rarp.h
+++ b/src/include/gpxe/rarp.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct net_protocol;
extern struct net_protocol rarp_protocol;
diff --git a/src/include/gpxe/refcnt.h b/src/include/gpxe/refcnt.h
index 68e0fd4b..e56f1d31 100644
--- a/src/include/gpxe/refcnt.h
+++ b/src/include/gpxe/refcnt.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* A reference counter
*
diff --git a/src/include/gpxe/resolv.h b/src/include/gpxe/resolv.h
index 81207d28..33bb0986 100644
--- a/src/include/gpxe/resolv.h
+++ b/src/include/gpxe/resolv.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/refcnt.h>
#include <gpxe/interface.h>
#include <gpxe/tables.h>
diff --git a/src/include/gpxe/retry.h b/src/include/gpxe/retry.h
index 1e7fde4c..ada0204d 100644
--- a/src/include/gpxe/retry.h
+++ b/src/include/gpxe/retry.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/list.h>
/** Default timeout value */
diff --git a/src/include/gpxe/rotate.h b/src/include/gpxe/rotate.h
index 42ec7196..0371c578 100644
--- a/src/include/gpxe/rotate.h
+++ b/src/include/gpxe/rotate.h
@@ -6,6 +6,8 @@
* Bit operations
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
static inline uint32_t rol32 ( uint32_t data, unsigned int rotation ) {
diff --git a/src/include/gpxe/rsa.h b/src/include/gpxe/rsa.h
index e30e1a5a..5052ad46 100644
--- a/src/include/gpxe/rsa.h
+++ b/src/include/gpxe/rsa.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_RSA_H
#define _GPXE_RSA_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct pubkey_algorithm;
extern struct pubkey_algorithm rsa_algorithm;
diff --git a/src/include/gpxe/sanboot.h b/src/include/gpxe/sanboot.h
index 05a3ddf0..6ec2ec24 100644
--- a/src/include/gpxe/sanboot.h
+++ b/src/include/gpxe/sanboot.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_SANBOOT_H
#define _GPXE_SANBOOT_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/tables.h>
struct sanboot_protocol {
diff --git a/src/include/gpxe/scsi.h b/src/include/gpxe/scsi.h
index e820117b..115fd3fe 100644
--- a/src/include/gpxe/scsi.h
+++ b/src/include/gpxe/scsi.h
@@ -12,6 +12,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @defgroup scsiops SCSI operation codes
* @{
diff --git a/src/include/gpxe/segment.h b/src/include/gpxe/segment.h
index 5ab91699..5b59c54c 100644
--- a/src/include/gpxe/segment.h
+++ b/src/include/gpxe/segment.h
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/uaccess.h>
extern int prep_segment ( userptr_t segment, size_t filesz, size_t memsz );
diff --git a/src/include/gpxe/serial.h b/src/include/gpxe/serial.h
index 2825b936..a72ca7e8 100644
--- a/src/include/gpxe/serial.h
+++ b/src/include/gpxe/serial.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
extern void serial_putc ( int ch );
extern int serial_getc ( void );
extern int serial_ischar ( void );
diff --git a/src/include/gpxe/settings.h b/src/include/gpxe/settings.h
index c25b6ad4..ed3f1590 100644
--- a/src/include/gpxe/settings.h
+++ b/src/include/gpxe/settings.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/tables.h>
#include <gpxe/list.h>
diff --git a/src/include/gpxe/settings_ui.h b/src/include/gpxe/settings_ui.h
index 48548fd5..a82d7336 100644
--- a/src/include/gpxe/settings_ui.h
+++ b/src/include/gpxe/settings_ui.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct settings;
extern int settings_ui ( struct settings *settings ) __nonnull;
diff --git a/src/include/gpxe/sha1.h b/src/include/gpxe/sha1.h
index 66370d42..8109a8a0 100644
--- a/src/include/gpxe/sha1.h
+++ b/src/include/gpxe/sha1.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_SHA1_H
#define _GPXE_SHA1_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include "crypto/axtls/crypto.h"
struct digest_algorithm;
diff --git a/src/include/gpxe/shell.h b/src/include/gpxe/shell.h
index c353fc4d..a65a3443 100644
--- a/src/include/gpxe/shell.h
+++ b/src/include/gpxe/shell.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
extern void shell ( void );
#endif /* _GPXE_SHELL_H */
diff --git a/src/include/gpxe/shell_banner.h b/src/include/gpxe/shell_banner.h
index f8e92a4d..28482be8 100644
--- a/src/include/gpxe/shell_banner.h
+++ b/src/include/gpxe/shell_banner.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
extern int shell_banner ( void );
#endif /* _GPXE_SHELL_BANNER_H */
diff --git a/src/include/gpxe/smbios.h b/src/include/gpxe/smbios.h
index a2942366..4df25c3e 100644
--- a/src/include/gpxe/smbios.h
+++ b/src/include/gpxe/smbios.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/api.h>
#include <config/general.h>
diff --git a/src/include/gpxe/socket.h b/src/include/gpxe/socket.h
index b683bed6..9ea0db94 100644
--- a/src/include/gpxe/socket.h
+++ b/src/include/gpxe/socket.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/**
diff --git a/src/include/gpxe/spi.h b/src/include/gpxe/spi.h
index 8f90e3d4..ebfc3226 100644
--- a/src/include/gpxe/spi.h
+++ b/src/include/gpxe/spi.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/nvs.h>
/**
diff --git a/src/include/gpxe/spi_bit.h b/src/include/gpxe/spi_bit.h
index ced85ceb..8bd25196 100644
--- a/src/include/gpxe/spi_bit.h
+++ b/src/include/gpxe/spi_bit.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/spi.h>
#include <gpxe/bitbash.h>
diff --git a/src/include/gpxe/tables.h b/src/include/gpxe/tables.h
index 39b4777f..7dfced8c 100644
--- a/src/include/gpxe/tables.h
+++ b/src/include/gpxe/tables.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_TABLES_H
#define _GPXE_TABLES_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** @page ifdef_harmful #ifdef considered harmful
*
* Overuse of @c #ifdef has long been a problem in Etherboot.
diff --git a/src/include/gpxe/tcp.h b/src/include/gpxe/tcp.h
index 264ec29b..6fb673ac 100644
--- a/src/include/gpxe/tcp.h
+++ b/src/include/gpxe/tcp.h
@@ -9,6 +9,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/tcpip.h>
/**
diff --git a/src/include/gpxe/tcpip.h b/src/include/gpxe/tcpip.h
index 544b9fef..f71d7d6d 100644
--- a/src/include/gpxe/tcpip.h
+++ b/src/include/gpxe/tcpip.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/socket.h>
#include <gpxe/in.h>
diff --git a/src/include/gpxe/tftp.h b/src/include/gpxe/tftp.h
index 0177a95a..c57bb254 100644
--- a/src/include/gpxe/tftp.h
+++ b/src/include/gpxe/tftp.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#define TFTP_PORT 69 /**< Default TFTP server port */
diff --git a/src/include/gpxe/threewire.h b/src/include/gpxe/threewire.h
index 865fc25d..4dc755c2 100644
--- a/src/include/gpxe/threewire.h
+++ b/src/include/gpxe/threewire.h
@@ -10,6 +10,8 @@
* support.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/spi.h>
#include <limits.h>
diff --git a/src/include/gpxe/timer.h b/src/include/gpxe/timer.h
index 862d87b3..86722dca 100644
--- a/src/include/gpxe/timer.h
+++ b/src/include/gpxe/timer.h
@@ -9,6 +9,8 @@
* for a monotonically increasing tick counter.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/api.h>
#include <config/timer.h>
diff --git a/src/include/gpxe/tls.h b/src/include/gpxe/tls.h
index ddec7bec..e2da0462 100644
--- a/src/include/gpxe/tls.h
+++ b/src/include/gpxe/tls.h
@@ -7,6 +7,8 @@
* Transport Layer Security Protocol
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <gpxe/refcnt.h>
#include <gpxe/filter.h>
diff --git a/src/include/gpxe/uaccess.h b/src/include/gpxe/uaccess.h
index 33aaed18..5a8f2921 100644
--- a/src/include/gpxe/uaccess.h
+++ b/src/include/gpxe/uaccess.h
@@ -19,6 +19,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <string.h>
#include <gpxe/api.h>
diff --git a/src/include/gpxe/udp.h b/src/include/gpxe/udp.h
index e515f650..670c5e5a 100644
--- a/src/include/gpxe/udp.h
+++ b/src/include/gpxe/udp.h
@@ -9,6 +9,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <gpxe/iobuf.h>
#include <gpxe/tcpip.h>
diff --git a/src/include/gpxe/umalloc.h b/src/include/gpxe/umalloc.h
index e6fc7bf0..b0e55645 100644
--- a/src/include/gpxe/umalloc.h
+++ b/src/include/gpxe/umalloc.h
@@ -8,6 +8,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/api.h>
#include <config/umalloc.h>
#include <gpxe/uaccess.h>
diff --git a/src/include/gpxe/uri.h b/src/include/gpxe/uri.h
index 3803868d..03c88d25 100644
--- a/src/include/gpxe/uri.h
+++ b/src/include/gpxe/uri.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <stdlib.h>
#include <gpxe/refcnt.h>
diff --git a/src/include/gpxe/uuid.h b/src/include/gpxe/uuid.h
index 18d1f141..019cd052 100644
--- a/src/include/gpxe/uuid.h
+++ b/src/include/gpxe/uuid.h
@@ -6,6 +6,8 @@
* Universally unique IDs
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
/** A universally unique ID */
diff --git a/src/include/gpxe/vsprintf.h b/src/include/gpxe/vsprintf.h
index aa8f8a33..ee860a52 100644
--- a/src/include/gpxe/vsprintf.h
+++ b/src/include/gpxe/vsprintf.h
@@ -31,6 +31,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
diff --git a/src/include/gpxe/x509.h b/src/include/gpxe/x509.h
index 071e1de5..1b9d9aab 100644
--- a/src/include/gpxe/x509.h
+++ b/src/include/gpxe/x509.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
struct asn1_cursor;
diff --git a/src/include/gpxe/xfer.h b/src/include/gpxe/xfer.h
index e592fa38..edd37034 100644
--- a/src/include/gpxe/xfer.h
+++ b/src/include/gpxe/xfer.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <stdarg.h>
#include <gpxe/interface.h>
diff --git a/src/include/libgen.h b/src/include/libgen.h
index 56a2f760..7e94881a 100644
--- a/src/include/libgen.h
+++ b/src/include/libgen.h
@@ -1,6 +1,8 @@
#ifndef _LIBGEN_H
#define _LIBGEN_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
extern char * basename ( char *path );
extern char * dirname ( char *path );
diff --git a/src/include/little_bswap.h b/src/include/little_bswap.h
index e4f83753..a5dc9c87 100644
--- a/src/include/little_bswap.h
+++ b/src/include/little_bswap.h
@@ -1,6 +1,8 @@
#ifndef ETHERBOOT_LITTLE_BSWAP_H
#define ETHERBOOT_LITTLE_BSWAP_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#define ntohl(x) __bswap_32(x)
#define htonl(x) __bswap_32(x)
#define ntohs(x) __bswap_16(x)
diff --git a/src/include/mii.h b/src/include/mii.h
index 34c1ca9b..e17ec63b 100644
--- a/src/include/mii.h
+++ b/src/include/mii.h
@@ -10,6 +10,8 @@
* 03/26/2004
*/
+FILE_LICENCE ( GPL2_ONLY );
+
/* Generic MII registers. */
#define MII_BMCR 0x00 /* Basic mode control register */
diff --git a/src/include/nic.h b/src/include/nic.h
index f55db4a5..c808972a 100644
--- a/src/include/nic.h
+++ b/src/include/nic.h
@@ -5,6 +5,8 @@
* your option) any later version.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#ifndef NIC_H
#define NIC_H
diff --git a/src/include/readline/readline.h b/src/include/readline/readline.h
index 1a03b483..700b7aa2 100644
--- a/src/include/readline/readline.h
+++ b/src/include/readline/readline.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
extern char * __malloc readline ( const char *prompt );
#endif /* _READLINE_H */
diff --git a/src/include/stdarg.h b/src/include/stdarg.h
index a4eb711d..78b261ae 100644
--- a/src/include/stdarg.h
+++ b/src/include/stdarg.h
@@ -1,6 +1,8 @@
#ifndef _STDARG_H
#define _STDARG_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
typedef __builtin_va_list va_list;
#define va_start( ap, last ) __builtin_va_start ( ap, last )
#define va_arg( ap, type ) __builtin_va_arg ( ap, type )
diff --git a/src/include/stddef.h b/src/include/stddef.h
index 11ea9345..2a02a898 100644
--- a/src/include/stddef.h
+++ b/src/include/stddef.h
@@ -1,6 +1,8 @@
#ifndef STDDEF_H
#define STDDEF_H
+FILE_LICENCE ( GPL2_ONLY );
+
/* for size_t */
#include <stdint.h>
diff --git a/src/include/stdint.h b/src/include/stdint.h
index dc4bd8c7..8cc9b84a 100644
--- a/src/include/stdint.h
+++ b/src/include/stdint.h
@@ -1,6 +1,8 @@
#ifndef _STDINT_H
#define _STDINT_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
/*
* This is a standard predefined macro on all gcc's I've seen. It's
* important that we define size_t in the same way as the compiler,
diff --git a/src/include/stdio.h b/src/include/stdio.h
index 82077e20..84181f0a 100644
--- a/src/include/stdio.h
+++ b/src/include/stdio.h
@@ -1,6 +1,8 @@
#ifndef _STDIO_H
#define _STDIO_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdarg.h>
diff --git a/src/include/stdlib.h b/src/include/stdlib.h
index 838a22ac..254e39b3 100644
--- a/src/include/stdlib.h
+++ b/src/include/stdlib.h
@@ -1,6 +1,8 @@
#ifndef STDLIB_H
#define STDLIB_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <assert.h>
diff --git a/src/include/string.h b/src/include/string.h
index a2894a3a..2fd6acf1 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -11,6 +11,8 @@
* published by the Free Software Foundation.
*/
+FILE_LICENCE ( GPL2_ONLY );
+
#ifndef ETHERBOOT_STRING_H
#define ETHERBOOT_STRING_H
diff --git a/src/include/strings.h b/src/include/strings.h
index 968a7c11..c7063d68 100644
--- a/src/include/strings.h
+++ b/src/include/strings.h
@@ -1,6 +1,8 @@
#ifndef _STRINGS_H
#define _STRINGS_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <limits.h>
#include <string.h>
diff --git a/src/include/unistd.h b/src/include/unistd.h
index dc1f67f6..ef946947 100644
--- a/src/include/unistd.h
+++ b/src/include/unistd.h
@@ -1,6 +1,8 @@
#ifndef _UNISTD_H
#define _UNISTD_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <stdarg.h>
diff --git a/src/include/usr/autoboot.h b/src/include/usr/autoboot.h
index 1e9647c3..16306cd0 100644
--- a/src/include/usr/autoboot.h
+++ b/src/include/usr/autoboot.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/in.h>
struct net_device;
diff --git a/src/include/usr/dhcpmgmt.h b/src/include/usr/dhcpmgmt.h
index 0f275600..2394dac4 100644
--- a/src/include/usr/dhcpmgmt.h
+++ b/src/include/usr/dhcpmgmt.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct net_device;
extern int dhcp ( struct net_device *netdev );
diff --git a/src/include/usr/ifmgmt.h b/src/include/usr/ifmgmt.h
index 7b49d349..f762c7ba 100644
--- a/src/include/usr/ifmgmt.h
+++ b/src/include/usr/ifmgmt.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct net_device;
extern int ifopen ( struct net_device *netdev );
diff --git a/src/include/usr/imgmgmt.h b/src/include/usr/imgmgmt.h
index 438af003..0c8c8cf7 100644
--- a/src/include/usr/imgmgmt.h
+++ b/src/include/usr/imgmgmt.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
struct image;
extern int imgfetch ( struct image *image, const char *uri_string,
diff --git a/src/include/usr/route.h b/src/include/usr/route.h
index fc855892..855fa7ba 100644
--- a/src/include/usr/route.h
+++ b/src/include/usr/route.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
extern void route ( void );
#endif /* _USR_ROUTE_H */
diff --git a/src/interface/efi/efi_console.c b/src/interface/efi/efi_console.c
index b78de618..04af28a2 100644
--- a/src/interface/efi/efi_console.c
+++ b/src/interface/efi/efi_console.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <assert.h>
#include <gpxe/efi/efi.h>
diff --git a/src/interface/efi/efi_init.c b/src/interface/efi/efi_init.c
index 43a3ca80..ad550375 100644
--- a/src/interface/efi/efi_init.c
+++ b/src/interface/efi/efi_init.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <string.h>
#include <gpxe/efi/efi.h>
#include <gpxe/uuid.h>
diff --git a/src/interface/efi/efi_io.c b/src/interface/efi/efi_io.c
index e11f9bfd..0ba16f8f 100644
--- a/src/interface/efi/efi_io.c
+++ b/src/interface/efi/efi_io.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <assert.h>
#include <gpxe/io.h>
#include <gpxe/efi/efi.h>
diff --git a/src/interface/efi/efi_pci.c b/src/interface/efi/efi_pci.c
index f87b5407..ec43391b 100644
--- a/src/interface/efi/efi_pci.c
+++ b/src/interface/efi/efi_pci.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <errno.h>
#include <gpxe/pci.h>
#include <gpxe/efi/efi.h>
diff --git a/src/interface/efi/efi_smbios.c b/src/interface/efi/efi_smbios.c
index 5888f2f9..8caf624c 100644
--- a/src/interface/efi/efi_smbios.c
+++ b/src/interface/efi/efi_smbios.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <errno.h>
#include <gpxe/smbios.h>
#include <gpxe/efi/efi.h>
diff --git a/src/interface/efi/efi_snp.c b/src/interface/efi/efi_snp.c
index 771b9174..e4b3546e 100644
--- a/src/interface/efi/efi_snp.c
+++ b/src/interface/efi/efi_snp.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/interface/efi/efi_strerror.c b/src/interface/efi/efi_strerror.c
index adfeaed5..2bf4581d 100644
--- a/src/interface/efi/efi_strerror.c
+++ b/src/interface/efi/efi_strerror.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <gpxe/efi/efi.h>
diff --git a/src/interface/efi/efi_timer.c b/src/interface/efi/efi_timer.c
index d1ba43af..0dcb7605 100644
--- a/src/interface/efi/efi_timer.c
+++ b/src/interface/efi/efi_timer.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <limits.h>
#include <assert.h>
#include <unistd.h>
diff --git a/src/interface/efi/efi_uaccess.c b/src/interface/efi/efi_uaccess.c
index 1c54c031..63e9521c 100644
--- a/src/interface/efi/efi_uaccess.c
+++ b/src/interface/efi/efi_uaccess.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/uaccess.h>
#include <gpxe/efi/efi.h>
diff --git a/src/interface/efi/efi_umalloc.c b/src/interface/efi/efi_umalloc.c
index 4de3789d..7113c792 100644
--- a/src/interface/efi/efi_umalloc.c
+++ b/src/interface/efi/efi_umalloc.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <assert.h>
#include <gpxe/umalloc.h>
#include <gpxe/efi/efi.h>
diff --git a/src/interface/smbios/smbios.c b/src/interface/smbios/smbios.c
index 8207c1fa..cc7df59a 100644
--- a/src/interface/smbios/smbios.c
+++ b/src/interface/smbios/smbios.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 <errno.h>
diff --git a/src/interface/smbios/smbios_settings.c b/src/interface/smbios/smbios_settings.c
index ec594c52..2235d499 100644
--- a/src/interface/smbios/smbios_settings.c
+++ b/src/interface/smbios/smbios_settings.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 <errno.h>
diff --git a/src/net/aoe.c b/src/net/aoe.c
index 08887fe0..9e6a99e2 100644
--- a/src/net/aoe.c
+++ b/src/net/aoe.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 <stdio.h>
diff --git a/src/net/arp.c b/src/net/arp.c
index cf2fe988..8bc83958 100644
--- a/src/net/arp.c
+++ b/src/net/arp.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 <byteswap.h>
diff --git a/src/net/dhcpopts.c b/src/net/dhcpopts.c
index 1898011a..c1940f1f 100644
--- a/src/net/dhcpopts.c
+++ b/src/net/dhcpopts.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/net/dhcppkt.c b/src/net/dhcppkt.c
index 2f3e6802..20a0e666 100644
--- a/src/net/dhcppkt.c
+++ b/src/net/dhcppkt.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/net/ethernet.c b/src/net/ethernet.c
index b16135a9..812da864 100644
--- a/src/net/ethernet.c
+++ b/src/net/ethernet.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 <string.h>
diff --git a/src/net/fakedhcp.c b/src/net/fakedhcp.c
index 0518789c..ad3f046f 100644
--- a/src/net/fakedhcp.c
+++ b/src/net/fakedhcp.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/net/icmp.c b/src/net/icmp.c
index 3e45c1f6..749c3454 100644
--- a/src/net/icmp.c
+++ b/src/net/icmp.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/iobuf.h>
diff --git a/src/net/infiniband.c b/src/net/infiniband.c
index d79bdc2c..1c584d83 100644
--- a/src/net/infiniband.c
+++ b/src/net/infiniband.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/net/iobpad.c b/src/net/iobpad.c
index 9961edca..cbae221a 100644
--- a/src/net/iobpad.c
+++ b/src/net/iobpad.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 8668d44b..79fa9ea6 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -21,6 +21,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/* Unique IP datagram identification number */
static uint16_t next_ident = 0;
diff --git a/src/net/netdev_settings.c b/src/net/netdev_settings.c
index 44aca7d8..54ce2fbc 100644
--- a/src/net/netdev_settings.c
+++ b/src/net/netdev_settings.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/dhcp.h>
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index b24fbfdc..1a68af2c 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.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/net/nullnet.c b/src/net/nullnet.c
index 7e199ce3..381f02a6 100644
--- a/src/net/nullnet.c
+++ b/src/net/nullnet.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/iobuf.h>
diff --git a/src/net/rarp.c b/src/net/rarp.c
index bb5e6ad7..1d0dd961 100644
--- a/src/net/rarp.c
+++ b/src/net/rarp.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <byteswap.h>
#include <gpxe/netdevice.h>
diff --git a/src/net/retry.c b/src/net/retry.c
index cd793a7f..3ca69362 100644
--- a/src/net/retry.c
+++ b/src/net/retry.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stddef.h>
#include <gpxe/timer.h>
#include <gpxe/list.h>
diff --git a/src/net/tcp.c b/src/net/tcp.c
index 0ef65779..1de2abf0 100644
--- a/src/net/tcp.c
+++ b/src/net/tcp.c
@@ -21,6 +21,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** A TCP connection */
struct tcp_connection {
/** Reference counter */
diff --git a/src/net/tcp/http.c b/src/net/tcp/http.c
index b8ea3cc5..a02408a9 100644
--- a/src/net/tcp/http.c
+++ b/src/net/tcp/http.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/net/tcp/https.c b/src/net/tcp/https.c
index 15ab32ef..7a2961f2 100644
--- a/src/net/tcp/https.c
+++ b/src/net/tcp/https.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c
index 51c2beea..943bdefc 100644
--- a/src/net/tcp/iscsi.c
+++ b/src/net/tcp/iscsi.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/net/tcpip.c b/src/net/tcpip.c
index cef638f3..932fd482 100644
--- a/src/net/tcpip.c
+++ b/src/net/tcpip.c
@@ -14,6 +14,8 @@
* TCP/IP transport-network layer interface
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/** Process a received TCP/IP packet
*
* @v iobuf I/O buffer
diff --git a/src/net/tls.c b/src/net/tls.c
index 25f18f79..a5b126ed 100644
--- a/src/net/tls.c
+++ b/src/net/tls.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* @file
*
diff --git a/src/net/udp.c b/src/net/udp.c
index 1b83518e..771655e0 100644
--- a/src/net/udp.c
+++ b/src/net/udp.c
@@ -16,6 +16,8 @@
* UDP protocol
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* A UDP connection
*
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c
index 289e41ad..9c1e09da 100644
--- a/src/net/udp/dhcp.c
+++ b/src/net/udp/dhcp.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/src/net/udp/dns.c b/src/net/udp/dns.c
index c1da454b..f94094aa 100644
--- a/src/net/udp/dns.c
+++ b/src/net/udp/dns.c
@@ -19,6 +19,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/net/udp/slam.c b/src/net/udp/slam.c
index 71043f45..396f69b0 100644
--- a/src/net/udp/slam.c
+++ b/src/net/udp/slam.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/net/udp/tftp.c b/src/net/udp/tftp.c
index be7e58af..4812f1ce 100644
--- a/src/net/udp/tftp.c
+++ b/src/net/udp/tftp.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/usr/autoboot.c b/src/usr/autoboot.c
index 6cb744c3..a99d12b1 100644
--- a/src/usr/autoboot.c
+++ b/src/usr/autoboot.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/usr/dhcpmgmt.c b/src/usr/dhcpmgmt.c
index 6acf7f6d..a0ac4c30 100644
--- a/src/usr/dhcpmgmt.c
+++ b/src/usr/dhcpmgmt.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/usr/ifmgmt.c b/src/usr/ifmgmt.c
index 0ebf5615..9c82503a 100644
--- a/src/usr/ifmgmt.c
+++ b/src/usr/ifmgmt.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 <unistd.h>
diff --git a/src/usr/imgmgmt.c b/src/usr/imgmgmt.c
index bd53d824..0ffff5d4 100644
--- a/src/usr/imgmgmt.c
+++ b/src/usr/imgmgmt.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/usr/pxemenu.c b/src/usr/pxemenu.c
index 793cb624..a778a126 100644
--- a/src/usr/pxemenu.c
+++ b/src/usr/pxemenu.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/usr/route.c b/src/usr/route.c
index f3a49f46..cf5a55d6 100644
--- a/src/usr/route.c
+++ b/src/usr/route.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <gpxe/netdevice.h>
#include <gpxe/ip.h>