aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2009-05-01 15:41:06 +0100
committerMichael Brown <mcb30@etherboot.org>2009-05-18 08:33:25 +0100
commitc44a193d0d147ed6f98741124569864e516e9d4b (patch)
tree94a9b841e13eb643181e180f358c8612b1b29bfc /src
parent41307f2874989048679c83686527a3887ed485b3 (diff)
downloadipxe-c44a193d0d147ed6f98741124569864e516e9d4b.zip
ipxe-c44a193d0d147ed6f98741124569864e516e9d4b.tar.gz
ipxe-c44a193d0d147ed6f98741124569864e516e9d4b.tar.bz2
[legal] Add a selection of FILE_LICENCE declarations
Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
Diffstat (limited to 'src')
-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 64e0bcc..d487cce 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 8a0433d..1e2d23c 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 443c8ad..7667917 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 bdc8498..44e764f 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 59a1b7c..0372714 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 da66d23..737ec0e 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 d1251f0..523f028 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 bb589ec..6e76b2e 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 cf6da4f..aae1e1e 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 424a96c..d2c363b 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 8434f89..c6e253c 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 2b31b41..2428d1f 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 6f34404..1d4e88d 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 708fc27..79ac01b 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 4cdce67..7dfb5d1 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 e29d150..a4b2f4a 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 e578278..2463d96 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 b126d2a..1ba7d1f 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 9136377..1d18e54 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 decb083..32be9ee 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 552bf41..ea116fe 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 34e3ac5..1a71472 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 620b62e..17082c3 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 ff387d9..8a30dba 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 420d2ae..c572914 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 0f297a2..f96cf20 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 972016a..1945099 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 d1b9a59..6ab347c 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 40e3218..a00b2b9 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 c8daf72..a41040e 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 9d57310..53eb2c0 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 1edf6af..1690b1c 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 90550d8..68f8d4b 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 cd5668e..c477c7f 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 e4d4f49..3cb4776 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 979a092..70bb73d 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 d365cf0..ab466af 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 98418c2..ddbd40e 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 119a9a2..000db0c 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 413e702..8418854 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 5ea8a31..fa3ff0f 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 dd0ee44..eded977 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 f8ba7a7..1354f6b 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 647ea19..a68413a 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 9eb72e9..8edf131 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 99666d8..32e6bd4 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 0ecc502..2bb52e0 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 dcbd0a6..17ba2cb 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 e907105..8730fbf 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 99fa096..42b31fe 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 56661a8..1232f0a 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 f1fe8af..9d00fb6 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 1c651ef..9065e61 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 f1c721e..c32429b 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 0a6f277..83726b1 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 7e3caa3..ed9df52 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 5eef547..c41e2e4 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 a3cd2c0..eaf7025 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 0e03d70..67ba22f 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 59705fa..8f11951 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 b1ae3ba..beb5b22 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 bf6d031..e1884d9 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 9eb2767..f193f5e 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 f13db26..031b6c5 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 6222fd6..7b21749 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 4ca7089..44614c7 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 0c501a9..f8e20c4 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 ab31c69..4c20e73 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 6d332ac..b0cabef 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 b3d4bca..b72c1ec 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 2f3ea15..f60686c 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 dd9092e..a6516d2 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 26e6dd7..a0a830b 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 e68fa85..2839e2b 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 c18d03e..5d3c11b 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 c6253d0..de6925b 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 bfc1187..426830e 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 1a4a385..c3c17c1 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 d9bc8cb..de9b8fb 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 a263600..86d7077 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 af28bbc..8694172 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 6e1e51c..46484c0 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 2f4a051..e38cac7 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 efaaef0..094214b 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 0b475ea..8ecf7c1 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 1306f91..a193def 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 43d1f85..718b759 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 04f9cdf..733060f 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 02aec4b..f200c16 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 744d8e3..0645fe6 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 81b4fd3..f2c3880 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 06dee25..925dd33 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 0e8c8e2..0d3a57c 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 4167458..552a1a1 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 d228a36..bebae02 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 193abc3..5ea06e9 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 cc7f830..c1d831b 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 033b1ad..f470220 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 4e4a3da..fe124d6 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 4a782dc..d2c3f91 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 08d7398..5c5bd13 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 bf6c4c6..a78af72 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 41c3af7..30ac502 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 d60fe9b..968da1a 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 0156812..2716a16 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 086d7f4..a06f10c 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 e0bea0c..4d13f40 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 d708604..923facc 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 4218913..9e6ba6f 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 094263d..02249f7 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 c6ae12c..b541e4b 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 70167a1..f5724c1 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 da0e6ae..b24c284 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 1023ddd..1176fcc 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 8cf1f7f..cb27ef3 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 50569f8..f00be81 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 db17215..2c61d9c 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 c0224c7..5838eba 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 0fbb439..f6efcda 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 42ddedd..a68868a 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 91424c5..833c922 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 b86f5ab..93a6eb8 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 fe433c6..8b705fb 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 45e99a6..89a4e3b 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 5f63158..36d5650 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 b05b744..4cc9e04 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 b4ea1dd..be3242d 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 1f55ef3..389c0b0 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 4359e1a..f7b8a45 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 6dffdd6..dfc8700 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 7726a0f..8ddd557 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 8648d92..1b98135 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 984a7a9..1d7f51e 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 7c3f352..cc6a93d 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 de4019e..65febf1 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 94b7b2a..b65f4d4 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 6b820ad..31306e2 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 94d7e7c..03cf45c 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 e54821e..5619ef7 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 7340c0d..a481c54 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 d026647..bbe9cba 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 53abaae..1bca9e4 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 0662a3a..ecaf781 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 1ea3dc1..e22d260 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 7d2e882..b303fa3 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 81fd900..65e01b2 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 1f57e4c..96ccc9f 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 83027d3..5bde0a6 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 181ca4c..25c578d 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 f9ebe7c..a8bee7d 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 787c902..dbd074c 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 6de412b..b67da0c 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 0d188c3..24fe51a 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 e1c9dce..cd0f6dc 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 37aabfe..43d58ed 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 cc4aede..1ce7890 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 6c2faf3..2a6a8a0 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 d02f37c..221f4e1 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 809d4dc..74452b7 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 db7f1be..8b0bc24 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 1f51272..5a82c85 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 657bfd7..a24b559 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 e5c07d9..3dbf51d 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 beb67a0..d5eb30c 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 6f6d815..e6b1a0f 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 dcae901..6dacd66 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 d34e763..6e7374e 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 30bb6de..f2286ca 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 5a5d4af..6f01f93 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 5b3be39..d35e89e 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 b00c0d0..3a58e39 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 2e17bdc..190007a 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 d71e3da..096d07e 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 7bb46da..d31aaba 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 a3a82c6..2b67d55 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 4457fe4..21ab242 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 9ed19da..a9bcb4d 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 25e7495..154a8a8 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 51e1924..9e4044e 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 c7116ea..1710203 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 d0784d2..8aa224c 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 8cc9217..61efb34 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 be0298a..d64730c 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 72b291a..8c60639 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 35adfa3..31ed412 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 c6f9352..3e558d5 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 b85057a..1319727 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 ef87b5a..8b5060c 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 c21d2f6..fd63645 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 5091199..4e6f1bc 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 b22bd20..5431233 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 1af56f2..b533364 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 eb49fbf..f458826 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 957a955..ccf6209 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 d6bb60f..2815603 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 7f038c2..8899e6e 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 4603bcb..1dd63ee 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 19ca92c..f1b7c1f 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 17882ed..39ecd17 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 c5b3bc0..a9ca345 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 7d97b15..87f5933 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 e03823f..4ece7a4 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 ed39da6..5d92efd 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 0f21617..d67ba1d 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 2bd3a9e..96cc37c 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 af0c4ab..0879a74 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 675f1cf..e725901 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 dd1737a..66eea28 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 fc5ea07..968a5f8 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 ec57d7b..ca96359 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 0dd3c53..e4f3c4e 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 9eba4da..0298d36 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 ecfdec5..1c58f77 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 a06d91e..f030d4b 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 dcfe66b..eb9569f 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 3193104..4282464 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 f1c8d8a..07c85d0 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 49d8d9b..e27d204 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 565044a..87c9f29 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 215925b..83b7083 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 c62ac1a..acbb29d 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 03b2768..1b1fdc1 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 82b8f7a..a402a63 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 d1920bd..38c4746 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 fb36757..b5afcbd 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 9427d47..d905a2e 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 57d5fee..b853a69 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 1f647a8..df2667d 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 696191c..a36b907 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 4b1faaf..07c5e1b 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 7372e60..ea85cbe 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 309d5bc..fad1737 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 3461ee5..b6af86f 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 77a09ef..ea51db6 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 1054b90..48aae3c 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 9e31939..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 c2d9eb9..cdbf8d1 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 2a163d1..a248692 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 5881da9..85d7571 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 88e0d2b..aaa85f8 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 61bd1d9..f290b10 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 cd9c4dc..e953359 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 950f8de..9657eb7 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 4be50fb..fe94d80 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 705b6d4..5cd4ce0 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 afb5069..2e3ccf5 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 8ad2c29..cb56458 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 cbec3cf..4977076 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 791eba8..d0e1554 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 c9ce1d5..7fe4b96 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 57a7b98..aa240e2 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 8c41316..13adf2a 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 13b5545..ae827ba 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 f8a45cc..603d1ed 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 f90ece2..44d875f 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 c6bbefd..97f1141 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 2c4e972..79728e7 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 d9a8bbb..8354671 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 ecd7f2f..2ceccbc 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 33c8fba..4068632 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 aa05c72..f487624 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 370ce26..ad17cdf 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 974eeca..1018a69 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 e2c3e53..950f36a 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 e7095ba..4b728f4 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 6d117fa..27e0236 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 c54dba5..4c66592 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 9e5208b..b7c1e6b 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 5eaa741..9fb5be2 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 2bba321..69ce4e8 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 d353632..66fdc7d 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 516f9ec..99830d7 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 c24b43f..177cd65 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 e88e111..7a5c6b5 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 31a1e1b..cfbf104 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 318b779..979975b 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 cb8ce74..a5552cf 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 1418027..18e68ea 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 d1c09e0..a7762c3 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 c0d027c..bc1b485 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 de57d59..61da5a0 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 553cded..e08e0d8 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 5dc6c93..fa6188a 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 a4f75e3..9b7693b 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 8e94b87..7252808 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 dbdc32f..793080a 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 dbecf90..f7a20bb 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 0e6f294..95b172d 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 87abb05..a9e1f16 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 9b577c8..96aac8d 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 f2508e5..586fc57 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 6d8b590..68f1e87 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 e425247..0da2497 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 c0c0728..5eb2f06 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 227682c..4372e34 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 d5bbfb8..783b747 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 347249f..648f338 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 468bac0..51fc7c9 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 1813939..79b296c 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 2310641..c1359c8 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 af86519..16b7d27 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 3620d08..087ebcc 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 1476733..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 9fca308..1608c0a 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 a52089c..ee7d609 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 15f9732..f549d75 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 cd27f9f..782e7b5 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 ff7a767..e5699d5 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 74787e3..5bedbdc 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 3271c48..8afefe3 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 8e7d878..4b16608 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 c14a2c0..b80bf27 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 83a56d3..74ce6af 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 ae95deb..60d150a 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 ca650ea..a0ec065 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 4f76357..58a14ea 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 2d24274..e94303a 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 3d2b8a4..e247453 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 93750a1..cc784bc 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 6c3ced2..466759c 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 93c53ad..62fedf5 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 7740443..8a04f47 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 6b1c42d..e2c5af2 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 fadc0bd..04022b6 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 3200622..9682cf9 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 58dff1f..56095ec 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 2a46595..ad44e8a 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 2505223..0fe4356 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 33b1b2b..12edda9 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 bdb4b35..bdc32bd 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 ccc4ca6..85f7a9f 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 6de6b96..6b42fd5 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 df5d1ae..ff2ba59 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 7dcc779..0623d35 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 5440c48..477c209 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 b6da393..643b7cd 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 3321971..e38bef0 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 62bdce0..f2ba9f7 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 0c2f53c..d6911a5 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 5405c85..8db3431 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 8222984..cf28524 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 fcc115e..1262f1d 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 87e5484..e86ede3 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 39bed47..51ca6d6 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 ba6f844..f462cec 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 10882d3..3831b79 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 9017f9b..1db3ff9 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 33e0c5d..74741d9 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 8391a9d..3d90f41 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 e8f8faf..6007cca 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 3e3cff1..9e5e874 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 33aa769..7f21e07 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 007b042..b7cc411 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 fad8bd5..48c1baa 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 93f559d..7ad5ffe 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 8be331a..59c0eb1 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 df947de..01631e5 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 c332c9d..e0531d5 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 bae5fb4..a6b61c5 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 def17b2..0388dd1 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 cde46af..f76e4b9 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 db28a60..da9d2fc 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 dcfd4e4..7ca9c99 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 d519f68..35765d4 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 ff0fd6c..45ab9a0 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 550b74f..c603bdc 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 8d3977c..db485bc 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 126f634..1f59fcc 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 370285c..93194f6 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 1863e90..2613ab4 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 2e2c4da..8f9b7c1 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 1a99093..5f02faa 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 010fdb5..01b3fc2 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 67aefdc..cb001b9 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 fa92a95..baa6d83 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 9d22954..87b89d4 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 6c4e95b..4544123 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 5374802..fb95912 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 835ed4e..af40a48 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 bb9020b..fdd1c9c 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 49ade2f..bb8fce8 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 3409361..e8fd1eb 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 5b25033..932bb3b 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 2f3f33d..57f8e12 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 b404746..10db8af 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 831a611..7027114 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 196b595..7d54423 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 5a51b03..a72cba7 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 94c711a..114ebf3 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 ebb8ba3..919823d 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 6d1a58a..8f05f9e 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 b1b0c48..4342a0c 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 dc0ae31..edb2863 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 80adee5..5db2384 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 458d754..63027a5 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 bf3f101..1faf114 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 633f7b0..b58a87e 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 0510974..9185d62 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 8e11aa3..733a711 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 3da8a1f..25bc9bc 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 676731a..cfa2147 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 2c3cbbd..577512e 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 602382b..22ba201 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 d92ba8f..4196f7b 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 cce5d1d..c02a866 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 d276acf..da9d73e 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 f8976a1..03d65c1 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 836a1b9..dc5bec3 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 aaa38d0..35ff4fd 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 f9ae3cf..6c2e40c 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 e4f5ed3..a2d1e69 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 6dd0cda..0f46eaa 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 28068f4..c965070 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 b026dd4..5c90c65 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 136ff87..ebf754d 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 11bb5a8..1789c62 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 075ff96..f570c08 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 365166c..8b2729a 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 9984db0..3063dff 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 42e4dfa..a460919 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 d46ca05..a5bdd3a 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 4a77f05..31a1d99 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 81e03bd..7ade831 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 68e0fd4..e56f1d3 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 81207d2..33bb098 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 1e7fde4..ada0204 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 42ec719..0371c57 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 e30e1a5..5052ad4 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 05a3ddf..6ec2ec2 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 e820117..115fd3f 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 5ab9169..5b59c54 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 2825b93..a72ca7e 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 c25b6ad..ed3f159 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 48548fd..a82d733 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 66370d4..8109a8a 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 c353fc4..a65a344 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 f8e92a4..28482be 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 a294236..4df25c3 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 b683bed..9ea0db9 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 8f90e3d..ebfc322 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 ced85ce..8bd2519 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 39b4777..7dfced8 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 264ec29..6fb673a 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 544b9fe..f71d7d6 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 0177a95..c57bb25 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 865fc25..4dc755c 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 862d87b..86722dc 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 ddec7be..e2da046 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 33aaed1..5a8f292 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 e515f65..670c5e5 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 e6fc7bf..b0e5564 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 3803868..03c88d2 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 18d1f14..019cd05 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 aa8f8a3..ee860a5 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 071e1de..1b9d9aa 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 e592fa3..edd3703 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 56a2f76..7e94881 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 e4f8375..a5dc9c8 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 34c1ca9..e17ec63 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 f55db4a..c808972 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 1a03b48..700b7aa 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 a4eb711..78b261a 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 11ea934..2a02a89 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 dc4bd8c..8cc9b84 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 82077e2..84181f0 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 838a22a..254e39b 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 a2894a3..2fd6acf 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 968a7c1..c7063d6 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 dc1f67f..ef94694 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 1e9647c..16306cd 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 0f27560..2394dac 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 7b49d34..f762c7b 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 438af00..0c8c8cf 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 fc85589..855fa7b 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 b78de61..04af28a 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 43a3ca8..ad55037 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 e11f9bf..0ba16f8 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 f87b540..ec43391 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 5888f2f..8caf624 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 771b917..e4b3546 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 adfeaed..2bf4581 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 d1ba43a..0dcb760 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 1c54c03..63e9521 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 4de3789..7113c79 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 8207c1f..cc7df59 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 ec594c5..2235d49 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 08887fe..9e6a99e 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 cf2fe98..8bc8395 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 1898011..c1940f1 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 2f3e680..20a0e66 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 b16135a..812da86 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 0518789..ad3f046 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 3e45c1f..749c345 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 d79bdc2..1c584d8 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 9961edc..cbae221 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 8668d44..79fa9ea 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 44aca7d..54ce2fb 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 b24fbfd..1a68af2 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 7e199ce..381f02a 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 bb5e6ad..1d0dd96 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 cd793a7..3ca6936 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 0ef6577..1de2abf 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 b8ea3cc..a02408a 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 15ab32e..7a2961f 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 51c2bee..943bdef 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 cef638f..932fd48 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 25f18f7..a5b126e 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 1b83518..771655e 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 289e41a..9c1e09d 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 c1da454..f94094a 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 71043f4..396f69b 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 be7e58a..4812f1c 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 6cb744c..a99d12b 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 6acf7f6..a0ac4c3 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 0ebf561..9c82503 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 bd53d82..0ffff5d 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 793cb62..a778a12 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 f3a49f4..cf5a55d 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>