summaryrefslogtreecommitdiff
path: root/util/release
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2024-01-18 19:10:50 -0700
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-01-30 08:13:50 +0000
commit50e8579bfd14ca3fdebe21a4f12b5320e3a6fc1a (patch)
treed708805b1739b2ab27fa5514d43d66598f96dc54 /util/release
parentc59426f60ddfa85104dff79a5f2c3fabc23f6180 (diff)
util/release: Remove makefile.inc references from genrelnotes
Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: Id86ebc20cf5af5b65812c3f09235d0cba86d13f2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80126 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com>
Diffstat (limited to 'util/release')
-rwxr-xr-xutil/release/genrelnotes22
1 files changed, 7 insertions, 15 deletions
diff --git a/util/release/genrelnotes b/util/release/genrelnotes
index e899c3e7e7..5ac8abffbf 100755
--- a/util/release/genrelnotes
+++ b/util/release/genrelnotes
@@ -185,8 +185,6 @@ find_areas() {
# up manually.
version_ctrl_c() {
printf "\n Cleaning up and exiting.\n" >&2
- find 'src' -name 'gnumakefile' \
- -exec rename 's/gnumakefile/Makefile\.inc/' {} \;
git checkout origin/main > /dev/null 2>&1
git submodule update --init --checkout > /dev/null 2>&1
rm "$LOGFILE"
@@ -221,23 +219,17 @@ show_diff () {
}
get_sloc () {
- # Because cloc works on extensions, and .inc identifies as pascal,
- # while we use it both for Makefile.inc and some files that are
- # really C, do three passes: everything but .inc files, all .inc files
- # that aren't Makefiles, all Makefile.inc, then combine them.
-
local base
base=$(mktemp)
- find src -name Makefile.inc > "${base}.mak"
cloc --progress-rate=0 --quiet \
--script-lang="Bourne Shell",bash --exclude-ext=inc \
--exclude-dir=vendorcode "--out=${base}" src
cloc --progress-rate=0 --quiet \
- "--exclude-list-file=${base}.mak" --force-lang=c,inc \
+ "--exclude-list-file=${base}.mk" --force-lang=c,inc \
--exclude-dir=vendorcode "--out=${base}.c" src
cloc --progress-rate=0 --quiet \
- "--list-file=${base}.mak" --force-lang=make,inc \
+ "--list-file=${base}.mk" --force-lang=make,inc \
--exclude-dir=vendorcode "--out=${base}.m" src
cloc --progress-rate=0 --quiet --sum-reports \
"${base}" "${base}.c" "${base}.m" --out "${base}.result"
@@ -267,9 +259,9 @@ done
printf "Logging directories in the old tree\n" >&2
mainboard_list_old=$(grep -h "^[[:space:]]*config\>[[:space:]]*\<BOARD_" src/mainboard/*/*/Kconfig.name 2>/dev/null | sed "s,^.*\<BOARD_\([A-Z0-9_]*\)\>.*$,\1," | sort)
cpu_list_old=$(find_areas "src/cpu" "Kconfig" "intel/common")
-soc_list_old=$(find_areas "src/soc" "Makefile.inc" "intel/common\|amd/common\|romstage")
+soc_list_old=$(find_areas "src/soc" "Makefile.mk" "intel/common\|amd/common\|romstage")
northbridge_list_old=$(find_areas "src/northbridge" "Kconfig" "")
-sio_list_old=$(find_areas "src/superio" "Makefile.inc" "")
+sio_list_old=$(find_areas "src/superio" "Makefile.mk" "")
southbridge_list_old=$(find_areas "src/southbridge" "Kconfig" "")
echo "Calculating old SLOC"
@@ -290,9 +282,9 @@ done
echo "Logging directories in the new tree." >&2
mainboard_list_new=$(grep -h "^[[:space:]]*config\>[[:space:]]*\<BOARD_" src/mainboard/*/*/Kconfig.name 2>/dev/null | sed "s,^.*\<BOARD_\([A-Z0-9_]*\)\>.*$,\1," | sort)
cpu_list_new=$(find_areas "src/cpu" "Kconfig" "intel/common")
-soc_list_new=$(find_areas "src/soc" "Makefile.inc" "intel/common\|amd/common\|romstage")
+soc_list_new=$(find_areas "src/soc" "Makefile.mk" "intel/common\|amd/common\|romstage")
northbridge_list_new=$(find_areas "src/northbridge" "Kconfig" "")
-sio_list_new=$(find_areas "src/superio" "Makefile.inc" "")
+sio_list_new=$(find_areas "src/superio" "Makefile.mk" "")
southbridge_list_new=$(find_areas "src/southbridge" "Kconfig" "")
printf "Calculating new SLOC\n"
@@ -472,7 +464,7 @@ get_log_dedupe "Vendorcode" "src/vendorcode"
# Then look at areas that are usually outside the mainboards and architectures
get_log_dedupe "Build system" \
- "Makefile Makefile.inc toolchain.inc src/Kconfig src/cpu/Makefile.inc"
+ "Makefile Makefile.mk toolchain.mk src/Kconfig src/cpu/Makefile.mk"
get_log_dedupe "Submodules" "3rdparty util/nvidia/cbootimage"