Generate SPDX header for non-copyright files
This commit is contained in:
@@ -21,7 +21,13 @@ case $command in
|
|||||||
add)
|
add)
|
||||||
for recipe in `find $base -name "*.inc" | grep -v /staging/`; do
|
for recipe in `find $base -name "*.inc" | grep -v /staging/`; do
|
||||||
name=`echo $recipe | sed -e "s,\.inc,_${version}.bb,"`
|
name=`echo $recipe | sed -e "s,\.inc,_${version}.bb,"`
|
||||||
echo -e 'require ${PN}.inc\nSRCREV = "v${PV}"' > $name
|
cat <<EOM > $name
|
||||||
|
# SPDX-FileCopyrightText: none
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
require \${PN}.inc
|
||||||
|
SRCREV = "v\${PV}"
|
||||||
|
EOM
|
||||||
git add $name
|
git add $name
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user