Jakub Czapiga has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/70107 )
Change subject: tests/Makefile.common: Allow to disable test framework with parameter
......................................................................
tests/Makefile.common: Allow to disable test framework with parameter
Test framework can be used as a base for other test-like utilities - for
example look at screenshoot utility in depthcharge. Sometimes CMocka is
not required and even makes things problematic. Thanks to this patch one
can set -no_test_framework parameter to instruct framework not to include
and link selected test against CMocka library.
Signed-off-by: Jakub Czapiga <jacz(a)semihalf.com>
Change-Id: I01dc7c6c50e6ae2f7f71bd6752c2d5f2cc7c3cdc
---
M tests/Makefile.common
1 file changed, 24 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/70107/1
diff --git a/tests/Makefile.common b/tests/Makefile.common
index 595f870..fe46aeb 100644
--- a/tests/Makefile.common
+++ b/tests/Makefile.common
@@ -55,14 +55,10 @@
TEST_CFLAGS += -D__TEST__
-TEST_CFLAGS += -I$(cmockasrc)/include
-
ifneq ($(filter-out 0,$(TEST_PRINT)),)
TEST_CFLAGS += -DTEST_PRINT=1
endif
-# Link against Cmocka
-TEST_LDFLAGS := -L$(cmockaobj)/src -lcmocka -Wl,-rpath=$(cmockaobj)/src
TEST_LDFLAGS += -Wl,--gc-sections
# Some memlayout symbols don't work with userspace relocation -- disable it.
@@ -70,7 +66,7 @@
TEST_LDFLAGS += -no-pie
# Extra attributes for unit tests, declared per test
-attributes := srcs cflags config mocks stage
+attributes := srcs cflags config mocks no_test_framework stage
# Copy attributes of one test to another.
# $1 - input test name
@@ -136,7 +132,13 @@
done ; \
$(OBJCOPY) $$@.orig $$$$objcopy_wrap_flags $$@
-$($(1)-bin): $($(1)-objs) $(CMOCKA_LIB)
+# Link against Cmocka if not disabled
+$(addsuffix $$(filter-out n 0,$($(1)-no_test_framework)),$($(1)-objs)): TEST_CFLAGS += -I$(cmockasrc)/include
+$($(1)-bin)$$(filter-out n 0,$($(1)-no_test_framework)): TEST_LDFLAGS += -L$(cmockaobj)/src -lcmocka -Wl,-rpath=$(cmockaobj)/src
+$($(1)-bin)$$(filter-out n 0,$($(1)-no_test_framework)): TEST_CFLAGS += -I$(cmockasrc)/include
+$($(1)-bin)$$(filter-out n 0,$($(1)-no_test_framework)): $(CMOCKA_LIB)
+
+$($(1)-bin): $($(1)-objs)
$(HOSTCC) $$^ $($(1)-cflags) $$(TEST_LDFLAGS) -o $$@
endef
--
To view, visit https://review.coreboot.org/c/coreboot/+/70107
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I01dc7c6c50e6ae2f7f71bd6752c2d5f2cc7c3cdc
Gerrit-Change-Number: 70107
Gerrit-PatchSet: 1
Gerrit-Owner: Jakub Czapiga <jacz(a)semihalf.com>
Gerrit-MessageType: newchange
Attention is currently required from: Ashish Kumar Mishra, Subrata Banik, Haribalaraman Ramasubramanian, Rizwan Qureshi, Krishna P Bhat D, Balaji Manigandan, Ronak Kanabar, Usha P.
Harsha B R has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69886 )
Change subject: mb/intel/mtlrvp: Add bootblock and early gpio for MTL-RVP
......................................................................
Patch Set 8:
(1 comment)
File src/mainboard/intel/mtlrvp/bootblock.c:
https://review.coreboot.org/c/coreboot/+/69886/comment/b10e8eff_d7d4e98f
PS7, Line 8: variant_configure_early_gpio_pads
> wondering what would be the variant for RVP? is this meaningful even ?
Since this is now integral part of gpio.c, variant is not required.
--
To view, visit https://review.coreboot.org/c/coreboot/+/69886
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9c0893e52036147c5f6bbfafc6d818e9d3460bed
Gerrit-Change-Number: 69886
Gerrit-PatchSet: 8
Gerrit-Owner: Harsha B R <harsha.b.r(a)intel.com>
Gerrit-Reviewer: Ashish Kumar Mishra <ashish.k.mishra(a)intel.com>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Reviewer: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Haribalaraman Ramasubramanian <haribalaraman.r(a)intel.com>
Gerrit-Reviewer: Harsha B R <harsha.b.r(a)intel.com>
Gerrit-Reviewer: Krishna P Bhat D <krishna.p.bhat.d(a)intel.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Ronak Kanabar <ronak.kanabar(a)intel.com>
Gerrit-Reviewer: Usha P <usha.p(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Ashish Kumar Mishra <ashish.k.mishra(a)intel.com>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Haribalaraman Ramasubramanian <haribalaraman.r(a)intel.com>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Attention: Krishna P Bhat D <krishna.p.bhat.d(a)intel.com>
Gerrit-Attention: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Attention: Ronak Kanabar <ronak.kanabar(a)intel.com>
Gerrit-Attention: Usha P <usha.p(a)intel.com>
Gerrit-Comment-Date: Tue, 29 Nov 2022 15:06:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Subrata Banik <subratabanik(a)google.com>
Gerrit-MessageType: comment
Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/70133 )
Change subject: [UNTESTED] mb/amd/chausie: change AMD_FWM_POSITION_INDEX for non-chromeos case
......................................................................
[UNTESTED] mb/amd/chausie: change AMD_FWM_POSITION_INDEX for non-chromeos case
Commit 2c102232e8f7 ("mb/amd/chausie,google/skyrim: increase
RW_MRC_CACHE size to 120 kByte") increased the MRC cache size, but with
the change the default AMD_FWM_POSITION_INDEX which is 5 for the 16MByte
flash size, the amdfw part won't be placed on the expected position,
since the cbfs header is in that exact location and cbfstool places the
amdfw part right after that. Change the AMD_FWM_POSITION_INDEX to 4 for
the non-chromeos builds to work around this.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: I89fe1d0672139e04070f05c6c8fa8955edcfc7ee
---
M src/mainboard/amd/chausie/Kconfig
1 file changed, 19 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/70133/1
diff --git a/src/mainboard/amd/chausie/Kconfig b/src/mainboard/amd/chausie/Kconfig
index da0e0c4..ad4d530 100644
--- a/src/mainboard/amd/chausie/Kconfig
+++ b/src/mainboard/amd/chausie/Kconfig
@@ -29,6 +29,7 @@
config AMD_FWM_POSITION_INDEX
int
default 3 if CHROMEOS
+ default 4
help
TODO: might need to be adapted for better placement of files in cbfs
--
To view, visit https://review.coreboot.org/c/coreboot/+/70133
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I89fe1d0672139e04070f05c6c8fa8955edcfc7ee
Gerrit-Change-Number: 70133
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: newchange
Attention is currently required from: Ashish Kumar Mishra, Harsha B R, Haribalaraman Ramasubramanian, Rizwan Qureshi, Krishna P Bhat D, Balaji Manigandan, Ronak Kanabar, Usha P.
Hello build bot (Jenkins), Ashish Kumar Mishra, Haribalaraman Ramasubramanian, Rizwan Qureshi, Krishna P Bhat D, Balaji Manigandan, Eric Lai, Ronak Kanabar, Usha P,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/69886
to look at the new patch set (#8).
Change subject: mb/intel/mtlrvp: Add bootblock and early gpio for MTL-RVP
......................................................................
mb/intel/mtlrvp: Add bootblock and early gpio for MTL-RVP
This adds an initial bootblock code. This also configures required
GPIOs for early board initialization.
1. Add bootblock file for MTL-RVP
2. Add early gpio config for MTL-P variant in gpio.c
BRANCH=none
BUG=b:224325352
TEST=FW_NAME=mtlrvp_p emerge-rex coreboot chromeos-bootimage
Signed-off-by: Harsha B R <harsha.b.r(a)intel.com>
Change-Id: I9c0893e52036147c5f6bbfafc6d818e9d3460bed
---
M src/mainboard/intel/mtlrvp/Makefile.inc
A src/mainboard/intel/mtlrvp/bootblock.c
M src/mainboard/intel/mtlrvp/variants/baseboard/include/baseboard/variants.h
M src/mainboard/intel/mtlrvp/variants/mtlrvp_p/Makefile.inc
M src/mainboard/intel/mtlrvp/variants/mtlrvp_p/gpio.c
5 files changed, 109 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/86/69886/8
--
To view, visit https://review.coreboot.org/c/coreboot/+/69886
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9c0893e52036147c5f6bbfafc6d818e9d3460bed
Gerrit-Change-Number: 69886
Gerrit-PatchSet: 8
Gerrit-Owner: Harsha B R <harsha.b.r(a)intel.com>
Gerrit-Reviewer: Ashish Kumar Mishra <ashish.k.mishra(a)intel.com>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Reviewer: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Haribalaraman Ramasubramanian <haribalaraman.r(a)intel.com>
Gerrit-Reviewer: Harsha B R <harsha.b.r(a)intel.com>
Gerrit-Reviewer: Krishna P Bhat D <krishna.p.bhat.d(a)intel.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Ronak Kanabar <ronak.kanabar(a)intel.com>
Gerrit-Reviewer: Usha P <usha.p(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Ashish Kumar Mishra <ashish.k.mishra(a)intel.com>
Gerrit-Attention: Harsha B R <harsha.b.r(a)intel.com>
Gerrit-Attention: Haribalaraman Ramasubramanian <haribalaraman.r(a)intel.com>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Attention: Krishna P Bhat D <krishna.p.bhat.d(a)intel.com>
Gerrit-Attention: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Attention: Ronak Kanabar <ronak.kanabar(a)intel.com>
Gerrit-Attention: Usha P <usha.p(a)intel.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Wonkyu Kim, Ravishankar Sarawadi, Rizwan Qureshi, Paul Menzel, Angel Pons, Krishna P Bhat D, Tim Wawrzynczak, Tarun Tuli, Jamie Ryu, Harsha B R, Kapil Porwal, Nick Vaccaro, Ronak Kanabar, Usha P, Raj Astekar.
Harsha B R has uploaded a new patch set (#14) to the change originally created by Jamie Ryu. ( https://review.coreboot.org/c/coreboot/+/66101 )
Change subject: mb/intel/mtlrvp: Enable EC and building ChromeOS
......................................................................
mb/intel/mtlrvp: Enable EC and building ChromeOS
This configures and initializes EC, and adds building ChromeOS.
BUG=b:224325352
TEST=FW_NAME=mtlrvp_p emerge-rex coreboot chromeos-bootimage
Signed-off-by: Jamie Ryu <jamie.m.ryu(a)intel.com>
Change-Id: I662d7f79050d35e152d97dc5c2118a4af56223bc
Signed-off-by: Harsha B R <harsha.b.r(a)intel.com>
---
M src/mainboard/intel/mtlrvp/Kconfig
M src/mainboard/intel/mtlrvp/Makefile.inc
A src/mainboard/intel/mtlrvp/chromeos.c
D src/mainboard/intel/mtlrvp/devicetree.cb
M src/mainboard/intel/mtlrvp/dsdt.asl
A src/mainboard/intel/mtlrvp/ec.c
A src/mainboard/intel/mtlrvp/mainboard.c
A src/mainboard/intel/mtlrvp/smihandler.c
M src/mainboard/intel/mtlrvp/variants/baseboard/include/baseboard/variants.h
A src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp/include/baseboard/ec.h
M src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp/include/baseboard/gpio.h
A src/mainboard/intel/mtlrvp/variants/mtlrvp_p/Makefile.inc
A src/mainboard/intel/mtlrvp/variants/mtlrvp_p/devicetree.cb
A src/mainboard/intel/mtlrvp/variants/mtlrvp_p/gpio.c
A src/mainboard/intel/mtlrvp/variants/mtlrvp_p/include/variant/ec.h
A src/mainboard/intel/mtlrvp/variants/mtlrvp_p/include/variant/gpio.h
16 files changed, 345 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/01/66101/14
--
To view, visit https://review.coreboot.org/c/coreboot/+/66101
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I662d7f79050d35e152d97dc5c2118a4af56223bc
Gerrit-Change-Number: 66101
Gerrit-PatchSet: 14
Gerrit-Owner: Jamie Ryu <jamie.m.ryu(a)intel.com>
Gerrit-Reviewer: Harsha B R <harsha.b.r(a)intel.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Krishna P Bhat D <krishna.p.bhat.d(a)intel.com>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Reviewer: Raj Astekar <raj.astekar(a)intel.com>
Gerrit-Reviewer: Ravishankar Sarawadi <ravishankar.sarawadi(a)intel.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Ronak Kanabar <ronak.kanabar(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)google.com>
Gerrit-Reviewer: Usha P <usha.p(a)intel.com>
Gerrit-Reviewer: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-CC: Haribalaraman Ramasubramanian <haribalaraman.r(a)intel.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-Attention: Ravishankar Sarawadi <ravishankar.sarawadi(a)intel.com>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Krishna P Bhat D <krishna.p.bhat.d(a)intel.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)google.com>
Gerrit-Attention: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Attention: Jamie Ryu <jamie.m.ryu(a)intel.com>
Gerrit-Attention: Harsha B R <harsha.b.r(a)intel.com>
Gerrit-Attention: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Attention: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Attention: Ronak Kanabar <ronak.kanabar(a)intel.com>
Gerrit-Attention: Usha P <usha.p(a)intel.com>
Gerrit-Attention: Raj Astekar <raj.astekar(a)intel.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Felix Singer, Martin L Roth.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/67820 )
Change subject: util/xcompile: Add --no-warn-rwx-segments to arm64 LD params
......................................................................
Patch Set 2:
(2 comments)
File util/xcompile/xcompile:
https://review.coreboot.org/c/coreboot/+/67820/comment/a93e368e_35a7d498
PS2, Line 312: ifneq (\$(shell "\${LD_${TARCH}}" --no-warn-rwx-segments --version >/dev/null 2>&1),)
Why run this in make and not in xcompile already? cf. line 203 for
`${LDFLAGS_ARM64_A53_ERRATUM_843419}`. In case of this change,
it should be a little simpler, because there is no Kconfig to check.
This whole function (report_arch_toolchain()) is hard to parse. I guess
there are more if's than necessary, e.g. when the ERRATUM variable is empty,
we don't need to guard it (line 304)?
https://review.coreboot.org/c/coreboot/+/67820/comment/d2d5b100_32acfe0e
PS2, Line 313: LD_${TARCH}+=" --no-warn-rwx-segments"
In make, there shouldn't be quotes. Make would put them literally into
the variable.
--
To view, visit https://review.coreboot.org/c/coreboot/+/67820
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I5ca9f0cc6cdc45161b0edf892c4b4a76d50e57bf
Gerrit-Change-Number: 67820
Gerrit-PatchSet: 2
Gerrit-Owner: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Comment-Date: Tue, 29 Nov 2022 14:11:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment