blob: 69e3c3770157fe46d0ac2b558ebcb3f9b12027d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
errx() {
printf "$@" >&2
exit 1
}
set -e
host=${1:-$(hostname)}
if ! test -r "kernfrag/templates/base"; then
errx "config: Could not find base template\n"
fi
if ! test -r "kernfrag/templates/$host"; then
errx "config: Could not find template for '%s'\n" "$host"
fi
printf "Starting merge for %s...\n\n" "$host"
awk 'NF { printf "%s%s\0", "kernfrag/fragments/", $1 }' \
"kernfrag/templates/base" "kernfrag/templates/$host" | xargs -0 scripts/kconfig/merge_config.sh
|