From bdf00e73122fbe9b4fc8fd79be1be85c191df556 Mon Sep 17 00:00:00 2001
From: Thierry Laurion <insurgo@riseup.net>
Date: Wed, 30 Oct 2024 16:06:23 -0400
Subject: [PATCH 1/2] t440p/w541 coreboot configs: bump
 CONFIG_CBFS_SIZE=0x800000 -> 0xBE4FFF (not sure why it was 8mb as opposed to
 all other 12mb opaque flash chips)

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
---
 config/coreboot-t440p.config | 2 +-
 config/coreboot-w541.config  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/coreboot-t440p.config b/config/coreboot-t440p.config
index ac28f6754..8021acd55 100644
--- a/config/coreboot-t440p.config
+++ b/config/coreboot-t440p.config
@@ -117,7 +117,7 @@ CONFIG_DIMM_SPD_SIZE=256
 CONFIG_FMDFILE=""
 CONFIG_NO_POST=y
 CONFIG_MAINBOARD_VENDOR="LENOVO"
-CONFIG_CBFS_SIZE=0x800000
+CONFIG_CBFS_SIZE=0xBE4FFF
 CONFIG_LINEAR_FRAMEBUFFER_MAX_HEIGHT=1600
 CONFIG_LINEAR_FRAMEBUFFER_MAX_WIDTH=2560
 CONFIG_MAX_CPUS=8
diff --git a/config/coreboot-w541.config b/config/coreboot-w541.config
index 5515e064e..81d7bd7b8 100644
--- a/config/coreboot-w541.config
+++ b/config/coreboot-w541.config
@@ -117,7 +117,7 @@ CONFIG_DIMM_SPD_SIZE=256
 CONFIG_FMDFILE=""
 CONFIG_NO_POST=y
 CONFIG_MAINBOARD_VENDOR="LENOVO"
-CONFIG_CBFS_SIZE=0x800000
+CONFIG_CBFS_SIZE=0xBE4FFF
 CONFIG_LINEAR_FRAMEBUFFER_MAX_HEIGHT=1600
 CONFIG_LINEAR_FRAMEBUFFER_MAX_WIDTH=2560
 CONFIG_MAX_CPUS=8

From fb975d064272ba2c7988270637e2ce952563c7ab Mon Sep 17 00:00:00 2001
From: Thierry Laurion <insurgo@riseup.net>
Date: Wed, 30 Oct 2024 16:18:14 -0400
Subject: [PATCH 2/2] t440p/w541: move to untested so that people don't flash
 those without external programmer for now

repro:
docker run -e DISPLAY=$DISPLAY --network host --rm -ti -v $(pwd):$(pwd) -w $(pwd) tlaurion/heads-dev-env:latest -- make BOARD=w541-hotp-maximized board.move_tested_to_untested
docker run -e DISPLAY=$DISPLAY --network host --rm -ti -v $(pwd):$(pwd) -w $(pwd) tlaurion/heads-dev-env:latest -- make BOARD=w541-maximized board.move_tested_to_untested
docker run -e DISPLAY=$DISPLAY --network host --rm -ti -v $(pwd):$(pwd) -w $(pwd) tlaurion/heads-dev-env:latest -- make BOARD=t440p-hotp-maximized board.move_tested_to_untested
docker run -e DISPLAY=$DISPLAY --network host --rm -ti -v $(pwd):$(pwd) -w $(pwd) tlaurion/heads-dev-env:latest -- make BOARD=t440p-maximized board.move_tested_to_untested

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
---
 .circleci/config.yml                             | 16 ++++++++--------
 .../UNTESTED_t440p-hotp-maximized.config}        |  0
 .../UNTESTED_t440p-maximized.config}             |  0
 .../UNTESTED_w541-hotp-maximized.config}         |  0
 .../UNTESTED_w541-maximized.config}              |  0
 5 files changed, 8 insertions(+), 8 deletions(-)
 rename boards/{t440p-hotp-maximized/t440p-hotp-maximized.config => UNTESTED_t440p-hotp-maximized/UNTESTED_t440p-hotp-maximized.config} (100%)
 rename boards/{t440p-maximized/t440p-maximized.config => UNTESTED_t440p-maximized/UNTESTED_t440p-maximized.config} (100%)
 rename boards/{w541-hotp-maximized/w541-hotp-maximized.config => UNTESTED_w541-hotp-maximized/UNTESTED_w541-hotp-maximized.config} (100%)
 rename boards/{w541-maximized/w541-maximized.config => UNTESTED_w541-maximized/UNTESTED_w541-maximized.config} (100%)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 02095919d..26917a2d8 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -411,29 +411,29 @@ workflows:
 
 
       - build:
-          name: t440p-maximized
-          target: t440p-maximized
+          name: UNTESTED_t440p-maximized
+          target: UNTESTED_t440p-maximized
           subcommand: ""
           requires:
             - x230-hotp-maximized
 
       - build:
-          name: t440p-hotp-maximized
-          target: t440p-hotp-maximized
+          name: UNTESTED_t440p-hotp-maximized
+          target: UNTESTED_t440p-hotp-maximized
           subcommand: ""
           requires:
             - x230-hotp-maximized
 
       - build:
-          name: w541-maximized
-          target: w541-maximized
+          name: UNTESTED_w541-maximized
+          target: UNTESTED_w541-maximized
           subcommand: ""
           requires:
             - x230-hotp-maximized
 
       - build:
-          name: w541-hotp-maximized
-          target: w541-hotp-maximized
+          name: UNTESTED_w541-hotp-maximized
+          target: UNTESTED_w541-hotp-maximized
           subcommand: ""
           requires:
             - x230-hotp-maximized
diff --git a/boards/t440p-hotp-maximized/t440p-hotp-maximized.config b/boards/UNTESTED_t440p-hotp-maximized/UNTESTED_t440p-hotp-maximized.config
similarity index 100%
rename from boards/t440p-hotp-maximized/t440p-hotp-maximized.config
rename to boards/UNTESTED_t440p-hotp-maximized/UNTESTED_t440p-hotp-maximized.config
diff --git a/boards/t440p-maximized/t440p-maximized.config b/boards/UNTESTED_t440p-maximized/UNTESTED_t440p-maximized.config
similarity index 100%
rename from boards/t440p-maximized/t440p-maximized.config
rename to boards/UNTESTED_t440p-maximized/UNTESTED_t440p-maximized.config
diff --git a/boards/w541-hotp-maximized/w541-hotp-maximized.config b/boards/UNTESTED_w541-hotp-maximized/UNTESTED_w541-hotp-maximized.config
similarity index 100%
rename from boards/w541-hotp-maximized/w541-hotp-maximized.config
rename to boards/UNTESTED_w541-hotp-maximized/UNTESTED_w541-hotp-maximized.config
diff --git a/boards/w541-maximized/w541-maximized.config b/boards/UNTESTED_w541-maximized/UNTESTED_w541-maximized.config
similarity index 100%
rename from boards/w541-maximized/w541-maximized.config
rename to boards/UNTESTED_w541-maximized/UNTESTED_w541-maximized.config
