Nico Huber has uploaded this change for review. ( https://review.coreboot.org/28197
Change subject: Makefile.inc: Ensure update of build.h
......................................................................
Makefile.inc: Ensure update of build.h
There were so many pitfalls that I wrote my own version of this even-
tually. This version is inspired by the procedure of Alex Thiessen[1].
Instead of generating a `build.h` on demand, we always generate a tem-
porary version that, if it differs from the current one, is added as
a dependency.
As we use .SECONDEXPANSION on the prerequisites, special care is taken
that we won't generate the file twice. As it would be too late to add
the dependency if we'd run `genbuild_h.sh` inside a recipe, we have
to run it through the `$(shell)` function. But that brings us to the
next issue: The make variables used by `genbuild_h.sh` are not expor-
ted to this shell like they would be in a recipe. So we export them
manually. We could also make these variables explicit parameters of
`genbuild_h.sh` instead.
An alternative to always creating the temporary `build.h` would be
to add a phony target as dependency instead, and finally calling
`genbuild_h.sh` again in case we need an update. But, um, we create
so many files anyway...
[1] https://review.coreboot.org/25685
Change-Id: I311cf610eabae873c70f2985fc7a09acec8061f0
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M Makefile.inc
1 file changed, 17 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/28197/1
diff --git a/Makefile.inc b/Makefile.inc
index 7ce2360..3840505 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -464,11 +464,24 @@
#######################################################################
# generate build support files
-$(obj)/build.h: .xcompile
+
+build_h := $(obj)/build.h
+
+# We have to manually export variables that `genbuild_h.sh` uses
+# when we call it through the `$(shell)` function. This is fragile
+# but as variables newly added to `genbuild_h.sh` would just not
+# work, we'd notice that instantly at least.
+build_h_exports := BUILD_TIMELESS KERNELVERSION COREBOOT_EXTRA_VERSION
+
+# Report new `build.ht` as dependency if `build.h` differs.
+build_h_check := \
+ export $(foreach exp,$(build_h_exports),$(exp)="$($(exp))"); \
+ util/genbuild_h/genbuild_h.sh >$(build_h)t 2>/dev/null; \
+ cmp -s $(build_h)t $(build_h) >/dev/null 2>&1 || echo $(build_h)t
+
+$(build_h): $$(shell $$(build_h_check))
@printf " GEN build.h\n"
- rm -f $(obj)/build.h
- util/genbuild_h/genbuild_h.sh > $(obj)/build.ht
- mv $(obj)/build.ht $(obj)/build.h
+ mv $< $@
build-dirs:
mkdir -p $(objcbfs) $(objgenerated)
--
To view, visit https://review.coreboot.org/28197
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I311cf610eabae873c70f2985fc7a09acec8061f0
Gerrit-Change-Number: 28197
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28196
to look at the new patch set (#2).
Change subject: ec/lenovo/pmh7: support 9bit address space
......................................................................
ec/lenovo/pmh7: support 9bit address space
The pmh7 has at least a 9bit address space.
The h8s allows to access the 9th address space by using io port
0x15ed as second address register.
The pmh7 is connected via SPI to the h8s. The h8s is acting as
proxy to access the address space.
Change-Id: I0d7ce00950862adf928a88d70afbc33df8b87d9a
Signed-off-by: Alexander Couzens <lynxis(a)fe80.eu>
---
M src/ec/lenovo/pmh7/pmh7.c
M src/ec/lenovo/pmh7/pmh7.h
2 files changed, 6 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/96/28196/2
--
To view, visit https://review.coreboot.org/28196
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I0d7ce00950862adf928a88d70afbc33df8b87d9a
Gerrit-Change-Number: 28196
Gerrit-PatchSet: 2
Gerrit-Owner: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28195
to look at the new patch set (#2).
Change subject: ec/lenovo/pmh7: use read/write function in clear_bit/set_bit
......................................................................
ec/lenovo/pmh7: use read/write function in clear_bit/set_bit
Make the code simpler and improve readability.
Change-Id: Ifa9308c32e4646c122254931b55fb83541a10a3c
Signed-off-by: Alexander Couzens <lynxis(a)fe80.eu>
---
M src/ec/lenovo/pmh7/pmh7.c
1 file changed, 4 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/28195/2
--
To view, visit https://review.coreboot.org/28195
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ifa9308c32e4646c122254931b55fb83541a10a3c
Gerrit-Change-Number: 28195
Gerrit-PatchSet: 2
Gerrit-Owner: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/27781 )
Change subject: mb/lenovo/x1_carbon_gen1: add support for hynix memory
......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/#/c/27781/5/src/mainboard/lenovo/x1_carbon_gen1…
File src/mainboard/lenovo/x1_carbon_gen1/romstage.c:
https://review.coreboot.org/#/c/27781/5/src/mainboard/lenovo/x1_carbon_gen1…
PS5, Line 118: die("Unsupported Memory. (detected 'reserved' memory configuration).");
line over 80 characters
--
To view, visit https://review.coreboot.org/27781
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib93c0e3cbdc29cbf6cff26292df4fbbb8208082f
Gerrit-Change-Number: 27781
Gerrit-PatchSet: 5
Gerrit-Owner: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Fri, 17 Aug 2018 16:59:37 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/27781 )
Change subject: mb/lenovo/x1_carbon_gen1: add support for hynix memory
......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/#/c/27781/4/src/mainboard/lenovo/x1_carbon_gen1…
File src/mainboard/lenovo/x1_carbon_gen1/romstage.c:
https://review.coreboot.org/#/c/27781/4/src/mainboard/lenovo/x1_carbon_gen1…
PS4, Line 117: die("Unsupported Memory. (detected 'reserved' memory configuration).");
line over 80 characters
--
To view, visit https://review.coreboot.org/27781
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib93c0e3cbdc29cbf6cff26292df4fbbb8208082f
Gerrit-Change-Number: 27781
Gerrit-PatchSet: 4
Gerrit-Owner: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Fri, 17 Aug 2018 16:58:08 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No