Attention is currently required from: Boris Mittelberg, Caveh Jalali, Jakub Czapiga, Karthik Ramasubramanian, Nick Vaccaro, Nick Vaccaro, Subrata Banik, Yu-Ping Wu.
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/78076?usp=email )
The change is no longer submittable: All-Comments-Resolved is unsatisfied now.
Change subject: {lib, ec/google}: Add weak implementation for get_lid_switch()
......................................................................
Patch Set 8:
(1 comment)
File src/lib/bootmode.c:
https://review.coreboot.org/c/coreboot/+/78076/comment/58eb4ec5_a0c1fb26 :
PS8, Line 41: __weak int get_lid_switch(void)
This file bootmode.c is effectively added as:
all-y += bootmode.c.
At the same time, eg. samsung/lumpy has get_lid_switch() implementation in chromeos.c file added as:
romstage-y += chromeos.c
ramstage-y += chromeos.c
Such boards would incorrectly pick the weak / dummy implementation for other stages. I claim those boards could also have VBOOT_LID_SWITCH selected since they are actually Chromebooks with an implemented lid switch.
I don't mind you marking this as acked, just that I feel we should try to invent something better to detect such cases build-time.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/78076?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I8847bc6f08f5d9cecf9d9ddaf33c44bd40491e98
Gerrit-Change-Number: 78076
Gerrit-PatchSet: 8
Gerrit-Owner: Subrata Banik
subratabanik@google.com
Gerrit-Reviewer: Boris Mittelberg
bmbm@google.com
Gerrit-Reviewer: Caveh Jalali
caveh@chromium.org
Gerrit-Reviewer: Jakub Czapiga
czapiga@google.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Nick Vaccaro
nvaccaro@chromium.org
Gerrit-Reviewer: Nick Vaccaro
nvaccaro@google.com
Gerrit-Reviewer: Yu-Ping Wu
yupingso@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Karthik Ramasubramanian
kramasub@google.com
Gerrit-CC: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Attention: Subrata Banik
subratabanik@google.com
Gerrit-Attention: Jakub Czapiga
czapiga@google.com
Gerrit-Attention: Caveh Jalali
caveh@chromium.org
Gerrit-Attention: Nick Vaccaro
nvaccaro@chromium.org
Gerrit-Attention: Nick Vaccaro
nvaccaro@google.com
Gerrit-Attention: Yu-Ping Wu
yupingso@google.com
Gerrit-Attention: Karthik Ramasubramanian
kramasub@google.com
Gerrit-Attention: Boris Mittelberg
bmbm@google.com
Gerrit-Comment-Date: Tue, 03 Oct 2023 14:04:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment