diff options
author | Leah Rowe <leah@libreboot.org> | 2023-02-19 23:21:37 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-02-19 23:21:37 +0000 |
commit | 36982ab5f43953928a2a826efafce140907fc97d (patch) | |
tree | 0a15d59c7802556af617d7eb3dfa715c65a5d343 /resources/coreboot | |
parent | 3857b4b65bdc275c14c3a3ee31ce9593e65357d5 (diff) |
fix bad ifdtool patch from earlier commit
Diffstat (limited to 'resources/coreboot')
-rw-r--r-- | resources/coreboot/default/patches/0017-util-ifdtool-fix-bad-patch.patch | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/resources/coreboot/default/patches/0017-util-ifdtool-fix-bad-patch.patch b/resources/coreboot/default/patches/0017-util-ifdtool-fix-bad-patch.patch new file mode 100644 index 00000000..e83c3894 --- /dev/null +++ b/resources/coreboot/default/patches/0017-util-ifdtool-fix-bad-patch.patch @@ -0,0 +1,65 @@ +From 8af41a8f60665cd73daa2d79e6a011b25f1957c2 Mon Sep 17 00:00:00 2001 +From: Leah Rowe <leah@libreboot.org> +Date: Sun, 19 Feb 2023 23:20:10 +0000 +Subject: [PATCH 1/1] util/ifdtool: fix bad patch + +i messed up the "rebase" a few lbmk commits ago +--- + util/ifdtool/ifdtool.c | 28 ++++++++++++++-------------- + 1 file changed, 14 insertions(+), 14 deletions(-) + +diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c +index 5509721018..89feb99536 100644 +--- a/util/ifdtool/ifdtool.c ++++ b/util/ifdtool/ifdtool.c +@@ -1785,33 +1785,33 @@ get_region_type_string(const char *region_type_string) + if (region_type_string == NULL) + return -1; + else if (!strcasecmp("Descriptor", region_type_string)) +- region_type = 0; ++ return 0; + else if (!strcasecmp("BIOS", region_type_string)) +- region_type = 1; ++ return 1; + else if (!strcasecmp("ME", region_type_string)) +- region_type = 2; ++ return 2; + else if (!strcasecmp("GbE", region_type_string)) +- region_type = 3; ++ return 3; + else if (!strcasecmp("Platform Data", region_type_string)) +- region_type = 4; ++ return 4; + else if (!strcasecmp("Device Exp1", region_type_string)) +- region_type = 5; ++ return 5; + else if (!strcasecmp("Secondary BIOS", region_type_string)) +- region_type = 6; ++ return 6; + else if (!strcasecmp("Reserved", region_type_string)) +- region_type = 7; ++ return 7; + else if (!strcasecmp("EC", region_type_string)) +- region_type = 8; ++ return 8; + else if (!strcasecmp("Device Exp2", region_type_string)) +- region_type = 9; ++ return 9; + else if (!strcasecmp("IE", region_type_string)) +- region_type = 10; ++ return 10; + else if (!strcasecmp("10GbE_0", region_type_string)) +- region_type = 11; ++ return 11; + else if (!strcasecmp("10GbE_1", region_type_string)) +- region_type = 12; ++ return 12; + else if (!strcasecmp("PTT", region_type_string)) +- region_type = 15; ++ return 15; + else + return -1; + } +-- +2.30.2 + |