util/lint: Update license header lint scripts

- Check for original LinuxBIOS header from LANL
- Check for the BSD style license used in x86emu

- Add top level checks for src/cpu and src/vboot
- Add drivers dir check for aspeed, emulation, and sil
- Add mainboard dir check for digitallogic

Change-Id: Ie1ef6a39fd1d184815d22235d43780caedb2ca95
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/19122
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Chris Ching <chingcodes@google.com>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Martin Roth 2017-04-04 14:35:42 -06:00
parent 7eab2889d1
commit ed0ee0a83d
2 changed files with 9 additions and 5 deletions

View File

@ -90,6 +90,8 @@ check_for_license 'IS PROVIDED .*"AS IS"'
check_for_license 'IS DISTRIBUTED .*"AS IS"'
check_for_license "IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE"
check_for_license '"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES'
check_for_license 'assumes any liability or responsibility for the use'
check_for_license 'THE AUTHORS DISCLAIM.*ALL WARRANTIES WITH REGARD TO THIS SOFTWARE'
check_for_license 'No license required'
for file in $headerlist; do

View File

@ -16,16 +16,17 @@
# DESCR: Check that files have license headers
# Top level
util/lint/lint-000-license-headers "src/acpi src/arch src/commonlib src/console src/device src/ec src/superio"
util/lint/lint-000-license-headers "src/acpi src/arch src/commonlib src/console \
src/cpu src/device src/ec src/superio src/vboot"
# CPU
util/lint/lint-000-license-headers "src/cpu/allwinner src/cpu/armltd src/cpu/dmp src/cpu/qemu-power8 \
src/cpu/qemu-x86 src/cpu/ti"
# src/drivers
util/lint/lint-000-license-headers "src/drivers/ams src/drivers/dec src/drivers/elog src/drivers/gic \
src/drivers/ics src/drivers/ipmi src/drivers/maxim src/drivers/parade src/drivers/ricoh \
src/drivers/ti src/drivers/usb src/drivers/xgi"
util/lint/lint-000-license-headers "src/drivers/ams src/drivers/aspeed src/drivers/dec src/drivers/elog \
src/drivers/emulation src/drivers/gic src/drivers/ics src/drivers/ipmi src/drivers/maxim \
src/drivers/parade src/drivers/ricoh src/drivers/sil src/drivers/ti src/drivers/usb src/drivers/xgi"
# src/include
util/lint/lint-000-license-headers "src/device/superio"
@ -34,7 +35,8 @@ util/lint/lint-000-license-headers "src/device/superio"
util/lint/lint-000-license-headers "src/mainboard/aaeon src/mainboard/abit src/mainboard/adlink src/mainboard/advansus \
src/mainboard/amd src/mainboard/aopen src/mainboard/apple src/mainboard/atrend src/mainboard/avalue \
src/mainboard/azza src/mainboard/bachmann src/mainboard/bap src/mainboard/bcom src/mainboard/bifferos"
util/lint/lint-000-license-headers "src/mainboard/biostar src/mainboard/compaq src/mainboard/dmp src/mainboard/ecs \
util/lint/lint-000-license-headers "src/mainboard/biostar src/mainboard/compaq src/mainboard/digitallogic \
src/mainboard/dmp src/mainboard/ecs \
src/mainboard/esd src/mainboard/gizmosphere src/mainboard/google src/mainboard/iei \
src/mainboard/intel src/mainboard/jetway src/mainboard/lanner src/mainboard/lintop \
src/mainboard/mitac src/mainboard/nec src/mainboard/nokia src/mainboard/nvidia"