Lines Matching +full:software +full:- +full:generated
3 # Script to create/update include/generated/autoksyms.h and dependency files
8 # This program is free software; you can redistribute it and/or modify
10 # published by the Free Software Foundation.
12 # Create/update the include/generated/autoksyms.h file from the list
21 set -e
23 cur_ksyms_file="include/generated/autoksyms.h"
24 new_ksyms_file="include/generated/autoksyms.h.tmpnew"
28 printf " %-7s %s\n" "$1" "$2"
37 set -x
55 * Automatically generated file; DO NOT EDIT.
59 [ "$(ls -A "$MODVERDIR")" ] &&
61 sed -n -e '3{s/ /\n/g;/^$/!p;}' "$mod"
62 done | sort -u |
68 if [ -n "$CONFIG_MODVERSIONS" ]; then
76 sort "$cur_ksyms_file" "$new_ksyms_file" | uniq -u |
77 sed -n 's/^#define __KSYM_\(.*\) 1/\1/p' | tr "A-Z_" "a-z/" |
79 if [ -z "$sympath" ]; then continue; fi
81 mkdir -p "$(dirname "$depfile")"
87 while [ ! "$depfile" -nt "$new_ksyms_file" ]; do
91 done | tail -1 )
92 changed=${changed:-0}
94 if [ $changed -gt 0 ]; then
96 old=$(grep -c "^#define __KSYM_" "$cur_ksyms_file" || true)
97 new=$(grep -c "^#define __KSYM_" "$new_ksyms_file" || true)
100 mv -f "$new_ksyms_file" "$cur_ksyms_file"
104 rm -f "$new_ksyms_file"