From 83d290c56fab2d38cd1ab4c4cc7099559c1d5046 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Sun, 6 May 2018 17:58:06 -0400 Subject: SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini --- common/Makefile | 4 +--- common/autoboot.c | 3 +-- common/board_f.c | 3 +-- common/board_info.c | 4 +--- common/board_r.c | 3 +-- common/boot_fit.c | 3 +-- common/bootm.c | 3 +-- common/bootm_os.c | 3 +-- common/bootretry.c | 3 +-- common/bootstage.c | 3 +-- common/bouncebuf.c | 3 +-- common/cli.c | 3 +-- common/cli_hush.c | 3 +-- common/cli_readline.c | 3 +-- common/cli_simple.c | 3 +-- common/command.c | 3 +-- common/common_fit.c | 3 +-- common/console.c | 3 +-- common/ddr_spd.c | 3 +-- common/dfu.c | 3 +-- common/edid.c | 3 +-- common/eeprom/eeprom_field.c | 3 +-- common/eeprom/eeprom_layout.c | 3 +-- common/fb_mmc.c | 3 +-- common/fb_nand.c | 3 +-- common/fdt_support.c | 3 +-- common/flash.c | 3 +-- common/hash.c | 3 +-- common/hwconfig.c | 3 +-- common/image-android.c | 3 +-- common/image-fdt.c | 3 +-- common/image-fit.c | 3 +-- common/image-sig.c | 3 +-- common/image.c | 3 +-- common/init/board_init.c | 3 +-- common/iomux.c | 3 +-- common/iotrace.c | 3 +-- common/lcd.c | 3 +-- common/lcd_console.c | 3 +-- common/lcd_console_rotation.c | 3 +-- common/lcd_simplefb.c | 3 +-- common/log.c | 3 +-- common/log_console.c | 3 +-- common/main.c | 3 +-- common/malloc_simple.c | 3 +-- common/memsize.c | 3 +-- common/menu.c | 3 +-- common/miiphyutil.c | 3 +-- common/s_record.c | 3 +-- common/spl/Makefile | 4 +--- common/spl/spl.c | 3 +-- common/spl/spl_atf.c | 3 +-- common/spl/spl_bootrom.c | 3 +-- common/spl/spl_dfu.c | 3 +-- common/spl/spl_ext.c | 4 +--- common/spl/spl_fat.c | 3 +-- common/spl/spl_fit.c | 3 +-- common/spl/spl_mmc.c | 3 +-- common/spl/spl_nand.c | 3 +-- common/spl/spl_net.c | 3 +-- common/spl/spl_nor.c | 3 +-- common/spl/spl_onenand.c | 3 +-- common/spl/spl_ram.c | 3 +-- common/spl/spl_sata.c | 3 +-- common/spl/spl_sdp.c | 3 +-- common/spl/spl_spi.c | 3 +-- common/spl/spl_usb.c | 3 +-- common/spl/spl_xip.c | 3 +-- common/spl/spl_ymodem.c | 3 +-- common/splash_source.c | 3 +-- common/stdio.c | 3 +-- common/update.c | 3 +-- common/usb.c | 3 +-- common/usb_hub.c | 3 +-- common/usb_kbd.c | 3 +-- common/usb_storage.c | 3 +-- common/xyzModem.c | 3 +-- 77 files changed, 77 insertions(+), 158 deletions(-) (limited to 'common') diff --git a/common/Makefile b/common/Makefile index 7011dad..d0681c7 100644 --- a/common/Makefile +++ b/common/Makefile @@ -1,9 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ # # (C) Copyright 2004-2006 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. -# -# SPDX-License-Identifier: GPL-2.0+ -# # core ifndef CONFIG_SPL_BUILD diff --git a/common/autoboot.c b/common/autoboot.c index 2eef7a0..9b9fb53 100644 --- a/common/autoboot.c +++ b/common/autoboot.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/board_f.c b/common/board_f.c index ae8bdb7..fa667c7 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2011 The Chromium OS Authors. * (C) Copyright 2002-2006 @@ -6,8 +7,6 @@ * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH * Marius Groeger - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/board_info.c b/common/board_info.c index 16cf966..a392bec 100644 --- a/common/board_info.c +++ b/common/board_info.c @@ -1,6 +1,4 @@ -/* - * SPDX-License-Identifier: GPL-2.0+ - */ +// SPDX-License-Identifier: GPL-2.0+ #include #include diff --git a/common/board_r.c b/common/board_r.c index 7a3d4ca..6b29706 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2011 The Chromium OS Authors. * (C) Copyright 2002-2006 @@ -6,8 +7,6 @@ * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH * Marius Groeger - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/boot_fit.c b/common/boot_fit.c index 4b5cec5..ffa4d74 100644 --- a/common/boot_fit.c +++ b/common/boot_fit.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2017 * Texas Instruments, * * Franklin S Cooper Jr. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/bootm.c b/common/bootm.c index 3616291..61e8075 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000-2009 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef USE_HOSTCC diff --git a/common/bootm_os.c b/common/bootm_os.c index b84a8e2..f4bd905 100644 --- a/common/bootm_os.c +++ b/common/bootm_os.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000-2009 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/bootretry.c b/common/bootretry.c index b3b8271..072055b 100644 --- a/common/bootretry.c +++ b/common/bootretry.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/bootstage.c b/common/bootstage.c index b1d4ee8..9793b85 100644 --- a/common/bootstage.c +++ b/common/bootstage.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2011, Google Inc. All rights reserved. - * - * SPDX-License-Identifier: GPL-2.0+ */ diff --git a/common/bouncebuf.c b/common/bouncebuf.c index 054d9e0..a7098e2 100644 --- a/common/bouncebuf.c +++ b/common/bouncebuf.c @@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Generic bounce buffer implementation * * Copyright (C) 2012 Marek Vasut - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/cli.c b/common/cli.c index 57874d8..51b8d5f 100644 --- a/common/cli.c +++ b/common/cli.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. @@ -5,8 +6,6 @@ * Add to readline cmdline-editing by * (C) Copyright 2005 * JinHua Luo, GuangDong Linux Center, - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/cli_hush.c b/common/cli_hush.c index 07c048e..955e8fe 100644 --- a/common/cli_hush.c +++ b/common/cli_hush.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * sh.c -- a prototype Bourne shell grammar parser * Intended to follow the original Thompson and Ritchie @@ -70,8 +71,6 @@ * document how quoting rules not precisely followed for variable assignments * maybe change map[] to use 2-bit entries * (eventually) remove all the printf's - * - * SPDX-License-Identifier: GPL-2.0+ */ #define __U_BOOT__ diff --git a/common/cli_readline.c b/common/cli_readline.c index ecded11..60a232b 100644 --- a/common/cli_readline.c +++ b/common/cli_readline.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. @@ -5,8 +6,6 @@ * Add to readline cmdline-editing by * (C) Copyright 2005 * JinHua Luo, GuangDong Linux Center, - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/cli_simple.c b/common/cli_simple.c index cb642d2..311880a 100644 --- a/common/cli_simple.c +++ b/common/cli_simple.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. @@ -5,8 +6,6 @@ * Add to readline cmdline-editing by * (C) Copyright 2005 * JinHua Luo, GuangDong Linux Center, - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/command.c b/common/command.c index 21a6d40..52d47c1 100644 --- a/common/command.c +++ b/common/command.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000-2009 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ /* diff --git a/common/common_fit.c b/common/common_fit.c index 3fef740..577b352 100644 --- a/common/common_fit.c +++ b/common/common_fit.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2016 Google, Inc * Written by Simon Glass - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/console.c b/common/console.c index b9297e0..2688af5 100644 --- a/common/console.c +++ b/common/console.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/ddr_spd.c b/common/ddr_spd.c index 0aa1cbf..58dc9b3 100644 --- a/common/ddr_spd.c +++ b/common/ddr_spd.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright 2008-2014 Freescale Semiconductor, Inc. - * - * SPDX-License-Identifier: GPL-2.0 */ #include diff --git a/common/dfu.c b/common/dfu.c index 07dff31..2620d32 100644 --- a/common/dfu.c +++ b/common/dfu.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * dfu.c -- dfu command * @@ -7,8 +8,6 @@ * Copyright (C) 2012 Samsung Electronics * authors: Andrzej Pietrasiewicz * Lukasz Majewski - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/edid.c b/common/edid.c index 3d0809a..90d1167 100644 --- a/common/edid.c +++ b/common/edid.c @@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2012 The Chromium OS Authors. * * (C) Copyright 2010 * Petr Stetiar * - * SPDX-License-Identifier: GPL-2.0+ - * * Contains stolen code from ddcprobe project which is: * Copyright (C) Nalin Dahyabhai */ diff --git a/common/eeprom/eeprom_field.c b/common/eeprom/eeprom_field.c index 7f095a6..f56eebe 100644 --- a/common/eeprom/eeprom_field.c +++ b/common/eeprom/eeprom_field.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2009-2016 CompuLab, Ltd. * * Authors: Nikita Kiryanov * Igor Grinberg - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/eeprom/eeprom_layout.c b/common/eeprom/eeprom_layout.c index c059233..5a9be1d 100644 --- a/common/eeprom/eeprom_layout.c +++ b/common/eeprom/eeprom_layout.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2009-2016 CompuLab, Ltd. * * Authors: Nikita Kiryanov * Igor Grinberg - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/fb_mmc.c b/common/fb_mmc.c index cf5b77c..b748b15 100644 --- a/common/fb_mmc.c +++ b/common/fb_mmc.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2014 Broadcom Corporation. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/fb_nand.c b/common/fb_nand.c index aa28046..3df0f72 100644 --- a/common/fb_nand.c +++ b/common/fb_nand.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2014 Broadcom Corporation. * Copyright 2015 Free Electrons. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/fdt_support.c b/common/fdt_support.c index 66a313e..812eca8 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2007 * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com * * Copyright 2010-2011 Freescale Semiconductor, Inc. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/flash.c b/common/flash.c index 8766774..efe8f53 100644 --- a/common/flash.c +++ b/common/flash.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ /* #define DEBUG */ diff --git a/common/hash.c b/common/hash.c index 69d53ed..ef14651 100644 --- a/common/hash.c +++ b/common/hash.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2012 The Chromium OS Authors. * @@ -6,8 +7,6 @@ * * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef USE_HOSTCC diff --git a/common/hwconfig.c b/common/hwconfig.c index e5186d7..e9e956a 100644 --- a/common/hwconfig.c +++ b/common/hwconfig.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * An inteface for configuring a hardware via u-boot environment. * @@ -5,8 +6,6 @@ * Copyright 2011 Freescale Semiconductor, Inc. * * Author: Anton Vorontsov - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef HWCONFIG_TEST diff --git a/common/image-android.c b/common/image-android.c index 5ad3a1f..2f38c19 100644 --- a/common/image-android.c +++ b/common/image-android.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2011 Sebastian Andrzej Siewior - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/image-fdt.c b/common/image-fdt.c index 3dc02a1..9b41f16 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2013, Google Inc. * @@ -5,8 +6,6 @@ * * (C) Copyright 2000-2006 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/image-fit.c b/common/image-fit.c index 030a3e5..9798fcd 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2013, Google Inc. * @@ -5,8 +6,6 @@ * * (C) Copyright 2000-2006 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifdef USE_HOSTCC diff --git a/common/image-sig.c b/common/image-sig.c index d9f712f..f65d883 100644 --- a/common/image-sig.c +++ b/common/image-sig.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2013, Google Inc. - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifdef USE_HOSTCC diff --git a/common/image.c b/common/image.c index e1c50eb..4eae585 100644 --- a/common/image.c +++ b/common/image.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2008 Semihalf * * (C) Copyright 2000-2006 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef USE_HOSTCC diff --git a/common/init/board_init.c b/common/init/board_init.c index 4a391be..526fee3 100644 --- a/common/init/board_init.c +++ b/common/init/board_init.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Code shared between SPL and U-Boot proper * * Copyright (c) 2015 Google, Inc * Written by Simon Glass - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/iomux.c b/common/iomux.c index 0e4e680..7cfd9f2 100644 --- a/common/iomux.c +++ b/common/iomux.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2008 * Gary Jennejohn, DENX Software Engineering GmbH, garyj@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/iotrace.c b/common/iotrace.c index 2725563..b16b0d6 100644 --- a/common/iotrace.c +++ b/common/iotrace.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2014 Google, Inc. - * - * SPDX-License-Identifier: GPL-2.0+ */ #define IOTRACE_IMPL diff --git a/common/lcd.c b/common/lcd.c index 4b3d7dc..2e2bef3 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Common LCD routines * * (C) Copyright 2001-2002 * Wolfgang Denk, DENX Software Engineering -- wd@denx.de - * - * SPDX-License-Identifier: GPL-2.0+ */ /* #define DEBUG */ diff --git a/common/lcd_console.c b/common/lcd_console.c index bb0d7c5..7d1f883 100644 --- a/common/lcd_console.c +++ b/common/lcd_console.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2001-2015 * DENX Software Engineering -- wd@denx.de * Compulab Ltd - http://compulab.co.il/ * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/lcd_console_rotation.c b/common/lcd_console_rotation.c index 7aac521..a5f5c6d 100644 --- a/common/lcd_console_rotation.c +++ b/common/lcd_console_rotation.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2015 * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/lcd_simplefb.c b/common/lcd_simplefb.c index 81f3f42..fca6006 100644 --- a/common/lcd_simplefb.c +++ b/common/lcd_simplefb.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Simplefb device tree support * * (C) Copyright 2015 * Stephen Warren - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/log.c b/common/log.c index 66d5e3e..3b5588e 100644 --- a/common/log.c +++ b/common/log.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Logging support * * Copyright (c) 2017 Google, Inc * Written by Simon Glass - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/log_console.c b/common/log_console.c index 2902733..0b5b708 100644 --- a/common/log_console.c +++ b/common/log_console.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Logging support * * Copyright (c) 2017 Google, Inc * Written by Simon Glass - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/main.c b/common/main.c index 66a03a1..9802bed 100644 --- a/common/main.c +++ b/common/main.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ /* #define DEBUG */ diff --git a/common/malloc_simple.c b/common/malloc_simple.c index 6114002..c14f8b5 100644 --- a/common/malloc_simple.c +++ b/common/malloc_simple.c @@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Simple malloc implementation * * Copyright (c) 2014 Google, Inc - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/memsize.c b/common/memsize.c index c315275..5670e95 100644 --- a/common/memsize.c +++ b/common/memsize.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2004 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/menu.c b/common/menu.c index c53030f..bf2b471 100644 --- a/common/menu.c +++ b/common/menu.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2010-2011 Calxeda, Inc. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/miiphyutil.c b/common/miiphyutil.c index 8eb0f76..8d89751 100644 --- a/common/miiphyutil.c +++ b/common/miiphyutil.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2001 * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com. - * - * SPDX-License-Identifier: GPL-2.0+ */ /* diff --git a/common/s_record.c b/common/s_record.c index aa82668..2b7651f 100644 --- a/common/s_record.c +++ b/common/s_record.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/spl/Makefile b/common/spl/Makefile index 9bf8a2d..814081f 100644 --- a/common/spl/Makefile +++ b/common/spl/Makefile @@ -1,10 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0+ # # (C) Copyright 2012 # Texas Instruments Incorporated - http://www.ti.com/ # Aneesh V -# -# SPDX-License-Identifier: GPL-2.0+ -# # Based on common/Makefile. # diff --git a/common/spl/spl.c b/common/spl/spl.c index 794dbd0..3dafeae 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2010 * Texas Instruments, * * Aneesh V - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/spl/spl_atf.c b/common/spl/spl_atf.c index 5f9aa95..cddab6a 100644 --- a/common/spl/spl_atf.c +++ b/common/spl/spl_atf.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: BSD-3-Clause /* * Reference to the ARM TF Project, * plat/arm/common/arm_bl2_setup.c @@ -6,8 +7,6 @@ * Copyright (C) 2016 Rockchip Electronic Co.,Ltd * Written by Kever Yang * Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH - * - * SPDX-License-Identifier: BSD-3-Clause */ #include diff --git a/common/spl/spl_bootrom.c b/common/spl/spl_bootrom.c index 6804246..076f5d8 100644 --- a/common/spl/spl_bootrom.c +++ b/common/spl/spl_bootrom.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2017 Theobroma Systems Design und Consulting GmH - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/spl/spl_dfu.c b/common/spl/spl_dfu.c index 05bb210..b8e3a6c 100644 --- a/common/spl/spl_dfu.c +++ b/common/spl/spl_dfu.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2016 * Texas Instruments, * * Ravi B - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c index 559ba0b..fd30a61 100644 --- a/common/spl/spl_ext.c +++ b/common/spl/spl_ext.c @@ -1,6 +1,4 @@ -/* - * SPDX-License-Identifier: GPL-2.0+ - */ +// SPDX-License-Identifier: GPL-2.0+ #include #include diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c index 59a85a9..87dd553 100644 --- a/common/spl/spl_fat.c +++ b/common/spl/spl_fat.c @@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2014 * Texas Instruments, * * Dan Murphy * - * SPDX-License-Identifier: GPL-2.0+ - * * FAT Image Functions copied from spl_mmc.c */ diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 9f03e26..8b5befc 100644 --- a/common/spl/spl_fit.c +++ b/common/spl/spl_fit.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2016 Google, Inc * Written by Simon Glass - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index e780b82..db5be3d 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2010 * Texas Instruments, * * Aneesh V - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c index d075985..9a52500 100644 --- a/common/spl/spl_nand.c +++ b/common/spl/spl_nand.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2011 * Corscience GmbH & Co. KG - Simon Schwarz - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c index 33f3b74..b6967ff 100644 --- a/common/spl/spl_net.c +++ b/common/spl/spl_net.c @@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000-2004 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * (C) Copyright 2012 * Ilya Yanok - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index 1ef8ac8..bb6194f 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/spl_nor.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2012 Stefan Roese - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/spl/spl_onenand.c b/common/spl/spl_onenand.c index fc98e9c..d323339 100644 --- a/common/spl/spl_onenand.c +++ b/common/spl/spl_onenand.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2013 * ISEE 2007 SL - Enric Balletbo i Serra @@ -5,8 +6,6 @@ * Based on common/spl/spl_nand.c * Copyright (C) 2011 * Corscience GmbH & Co. KG - Simon Schwarz - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include diff --git a/common/spl/spl_ram.c b/common/spl/spl_ram.c index a15761e..e870193 100644 --- a/common/spl/spl_ram.c +++ b/common/spl/spl_ram.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2016 * Xilinx, Inc. @@ -7,8 +8,6 @@ * * Michal Simek * Stefan Agner - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c index 357f8e5..adfce1d 100644 --- a/common/spl/spl_sata.c +++ b/common/spl/spl_sata.c @@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2013 * Texas Instruments, * * Dan Murphy * - * SPDX-License-Identifier: GPL-2.0+ - * * Derived work from spl_usb.c */ diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index 69390ed..807256e 100644 --- a/common/spl/spl_sdp.c +++ b/common/spl/spl_sdp.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2016 Toradex * Author: Stefan Agner - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c index 42880d5..df46046 100644 --- a/common/spl/spl_spi.c +++ b/common/spl/spl_spi.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2011 OMICRON electronics GmbH * @@ -5,8 +6,6 @@ * * Copyright (C) 2011 * Heiko Schocher, DENX Software Engineering, hs@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/spl/spl_usb.c b/common/spl/spl_usb.c index 5aac10b..c8d8231 100644 --- a/common/spl/spl_usb.c +++ b/common/spl/spl_usb.c @@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2014 * Texas Instruments, * * Dan Murphy * - * SPDX-License-Identifier: GPL-2.0+ - * * Derived work from spl_mmc.c */ diff --git a/common/spl/spl_xip.c b/common/spl/spl_xip.c index 3f6420b..1af4da8 100644 --- a/common/spl/spl_xip.c +++ b/common/spl/spl_xip.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2017, STMicroelectronics - All Rights Reserved * Author(s): Vikas Manocha, for STMicroelectronics. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c index 4ab3dcd..35f8f80 100644 --- a/common/spl/spl_ymodem.c +++ b/common/spl/spl_ymodem.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000-2004 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. @@ -6,8 +7,6 @@ * Texas Instruments, * * Matt Porter - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include diff --git a/common/splash_source.c b/common/splash_source.c index e0defde..62763b9 100644 --- a/common/splash_source.c +++ b/common/splash_source.c @@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2014 CompuLab, Ltd. * * Authors: Igor Grinberg - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/stdio.c b/common/stdio.c index 2e5143a..ee22c1f 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2009 Sergey Kubushyn * @@ -5,8 +6,6 @@ * * (C) Copyright 2000 * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/update.c b/common/update.c index ef61790..f237ea5 100644 --- a/common/update.c +++ b/common/update.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2008 Semihalf * * Written by: Rafal Czubak * Bartlomiej Sieka - * - * SPDX-License-Identifier: GPL-2.0+ */ #include diff --git a/common/usb.c b/common/usb.c index 8d27bc7..78178c5 100644 --- a/common/usb.c +++ b/common/usb.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Most of this source has been derived from the Linux USB * project: @@ -13,8 +14,6 @@ * * Adapted for U-Boot: * (C) Copyright 2001 Denis Peter, MPL AG Switzerland - * - * SPDX-License-Identifier: GPL-2.0+ */ /* diff --git a/common/usb_hub.c b/common/usb_hub.c index 0729a20..e1d93b8 100644 --- a/common/usb_hub.c +++ b/common/usb_hub.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Most of this source has been derived from the Linux USB * project: @@ -13,8 +14,6 @@ * * Adapted for U-Boot: * (C) Copyright 2001 Denis Peter, MPL AG Switzerland - * - * SPDX-License-Identifier: GPL-2.0+ */ /**************************************************************************** diff --git a/common/usb_kbd.c b/common/usb_kbd.c index 8cbdba6..8b2fccf 100644 --- a/common/usb_kbd.c +++ b/common/usb_kbd.c @@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2001 * Denis Peter, MPL AG Switzerland * * Part of this source has been derived from the Linux USB * project. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include diff --git a/common/usb_storage.c b/common/usb_storage.c index a91b1c0..9cd6474 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Most of this source has been derived from the Linux USB * project: @@ -17,8 +18,6 @@ * * BBB support based on /sys/dev/usb/umass.c from * FreeBSD. - * - * SPDX-License-Identifier: GPL-2.0+ */ /* Note: diff --git a/common/xyzModem.c b/common/xyzModem.c index a0c5dfe..a126e32 100644 --- a/common/xyzModem.c +++ b/common/xyzModem.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: eCos-2.0 /* *========================================================================== * @@ -6,8 +7,6 @@ * RedBoot stream handler for xyzModem protocol * *========================================================================== - * SPDX-License-Identifier: eCos-2.0 - *========================================================================== *#####DESCRIPTIONBEGIN#### * * Author(s): gthomas -- cgit v1.1