coreboot-kgpe-d16/util/scripts
Martin Roth 298b00776a utils: Add initial version of "remove_unused_code" script
This script creates a patch to remove all of the coreboot code that a
platform doesn't use.  This is useful for auditing the codebase for an
individual platform or releasing a platform's code.

Unlike the script that Sage used that did something similar, this keeps
the entire Kconfig tree (Though in a single file), all makefiles that
are required to build, and the standard build tools can still be used.
This will allow for much easier re-integration back into the coreboot
codebase if code is released after running this.

This is just the initial version and more features needed to be added to
make it fully functional.
- It should be able to build multiple configurations to retain the code
for all of those configurations.
- Flag to remove submodules files as well
- Additional variable flags to replace hardcoded values.
- The list of makefiles that need to be kept is pretty long, and could
be updated so that they aren't needed by the top level makefiles.
- Add flag to show changed files
- Show number of files before and after script is run

Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: Iec69db2ad1358846d649db627b6d60ac8c2204e4
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59169
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
2022-08-09 19:22:31 +00:00
..
config
cross-repo-cherrypick util/scripts/cross-repo-cherrypick: Modify output format 2022-06-03 18:44:51 +00:00
decode_spd.sh
description.md utils: Add initial version of "remove_unused_code" script 2022-08-09 19:22:31 +00:00
dts-to-fmd.sh
find-unused-kconfig-symbols.sh
gerrit-rebase util/: Replace GPLv2 boiler plate with SPDX header 2020-05-09 21:22:08 +00:00
get_maintainer.pl
maintainers.go maintainers.go: Work around common mistake in MAINTAINERS 2021-04-14 12:18:58 +00:00
no-fsf-addresses.sh util: Update all shebangs to use /usr/bin/env 2021-01-25 08:57:40 +00:00
parse-maintainers.pl util: Add SPDX header, replacing boiler plate where applicable 2020-05-11 17:11:59 +00:00
prepare-commit-msg.clang-format
rm_unused_code utils: Add initial version of "remove_unused_code" script 2022-08-09 19:22:31 +00:00
ucode_h_to_bin.sh util: Add SPDX header, replacing boiler plate where applicable 2020-05-11 17:11:59 +00:00
update_submodules