the following patch was just integrated into master:
commit 18ff4f166beef62175a81e9ffc7390d4a0ae5b64
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Thu Jul 10 21:06:04 2014 +0200
build system: create .xcompile dependency
It's probably safe to say that .xcompile needs an update if
util/xcompile/xcompile changed, so tell make about this
dependency.
Updates are honored immediately due to GNU make's feature of
reinterpreting everything when an included file changes. See "How
Makefiles Are Remade" in the GNU make documentation for details.
Change-Id: Ide2f028eaddcee66028c6403688cc83e1622fa6b
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
Reviewed-on: http://review.coreboot.org/6255
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
See http://review.coreboot.org/6255 for details.
-gerrit
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6254
-gerrit
commit a974f9c66f2af979230db574ea8e792e90b8de54
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Thu Jul 10 20:38:21 2014 +0200
build system: remove duplicate architecture list
Let xcompile pass the list of architectures, given
that it already has it.
This potentially requires removing $(src)/.xcompile
so it gets updated.
Change-Id: I565512d3bef987c9a4e48a39bfd88bacf0b65de9
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
---
toolchain.inc | 2 --
util/xcompile/xcompile | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/toolchain.inc b/toolchain.inc
index b5b4fe0..842473b 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -17,8 +17,6 @@
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-ARCH_SUPPORTED := armv7 x86_32
-
# ccache integration
ifeq ($(CONFIG_CCACHE),y)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 8239243..01d75bf 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -145,6 +145,7 @@ detect_special_flags() {
report_arch_toolchain() {
cat <<EOF
# elf${TWIDTH}-${TBFDARCH} toolchain (${GCCPREFIX}gcc)
+ARCH_SUPPORTED+=${TARCH}
CC_${TARCH}:=${GCCPREFIX}gcc
CFLAGS_${TARCH}:=${CFLAGS}
CPP_${TARCH}:=${GCCPREFIX}cpp
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6255
-gerrit
commit a5cc61e0a8d84846a48ac6613121bc948d2ec1ab
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Thu Jul 10 21:06:04 2014 +0200
build system: create .xcompile dependency
It's probably safe to say that .xcompile needs an update if
util/xcompile/xcompile changed, so tell make about this
dependency.
Updates are honored immediately due to GNU make's feature of
reinterpreting everything when an included file changes. See "How
Makefiles Are Remade" in the GNU make documentation for details.
Change-Id: Ide2f028eaddcee66028c6403688cc83e1622fa6b
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
---
Makefile | 6 ++++--
util/xcompile/xcompile | 0
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index c8cad4f..fad8103 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,9 @@
## SUCH DAMAGE.
##
-$(if $(wildcard .xcompile),,$(eval $(shell bash util/xcompile/xcompile $(XGCCPATH) > .xcompile)))
+.xcompile: util/xcompile/xcompile
+ A=`mktemp $@.XXXXXX`; $< $(XGCCPATH) > $$A && mv $$A $@ 2> /dev/null
+
include .xcompile
export top := $(CURDIR)
@@ -271,4 +273,4 @@ clean-cscope:
distclean: clean
rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig* .ccwrap .xcompile
-.PHONY: $(PHONY) clean clean-for-update clean-cscope cscope distclean doxygen doxy .xcompile
+.PHONY: $(PHONY) clean clean-for-update clean-cscope cscope distclean doxygen doxy
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
old mode 100644
new mode 100755
the following patch was just integrated into master:
commit 3bb0b7230c07cb1d5b71df6976a8323c1cb41ca0
Author: Daniele Forsi <dforsi(a)gmail.com>
Date: Mon Jul 14 15:35:42 2014 +0200
util/xcompile: Print fatal error messages to stderr instead of stdout
This uses die() which was previously unused.
Before this change an unhelpful error message was printed when make tried
to parse English text as if it was part of the makefile:
.xcompile:1: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.
After this change the first error message at least mentions that iasl is
missing:
ERROR: no iasl found
make: -print-libgcc-file-name: Command not found
make: -print-libgcc-file-name: Command not found
make: -print-libgcc-file-name: Command not found
/bin/sh: 0: Illegal option -
Makefile.inc:36: *** Please use the coreboot toolchain (or prove that your toolchain works). Stop.
Change-Id: I79d5de5993e3828460130192df376daa55f32aa0
Signed-off-by: Daniele Forsi <dforsi(a)gmail.com>
Reviewed-on: http://review.coreboot.org/6272
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <gaumless(a)gmail.com>
See http://review.coreboot.org/6272 for details.
-gerrit
Daniele Forsi (dforsi(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6275
-gerrit
commit 582e1916a106b1f3fc10f64383eaa339442bcffe
Author: Daniele Forsi <dforsi(a)gmail.com>
Date: Mon Jul 14 22:27:38 2014 +0200
build: turn .xcompile into a Makefile target
This gives better error messages if util/xcompile/xcompile fails, eg.
if iasl is missing:
Makefile:33: .xcompile: No such file or directory
ERROR: no iasl found
Makefile:254: recipe for target '.xcompile' failed
make: *** [.xcompile] Error 1
This works because if any included makefile is missing, GNU make will
print a warning and it will rebuild it if a rule exists, else it will
error out, see "Including Other Makefiles" in the manual:
https://www.gnu.org/software/make/manual/make.html#Include
In this case the warning at Makefile:33 is printed only when make is
run in a clean tree, but .xcompile is rebuilt every time (like before)
because make always tries to create/update makefiles and this it is a
.PHONY target.
Change-Id: Ie33ce46e17c8e59e32234576aeb77074879fa7e7
Signed-off-by: Daniele Forsi <dforsi(a)gmail.com>
---
Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index c8cad4f..cc4e3a4 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,6 @@
## SUCH DAMAGE.
##
-$(if $(wildcard .xcompile),,$(eval $(shell bash util/xcompile/xcompile $(XGCCPATH) > .xcompile)))
include .xcompile
export top := $(CURDIR)
@@ -251,6 +250,9 @@ endif
cscope:
cscope -bR
+.xcompile: util/xcompile/xcompile
+ bash util/xcompile/xcompile $(XGCCPATH) > .xcompile
+
doxy: doxygen
doxygen:
$(DOXYGEN) documentation/Doxyfile.coreboot
Martin Roth (gaumless(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6258
-gerrit
commit 1a5f8da3ab57e80d57c97f30defc5cb2eaae2a52
Author: Martin Roth <martin.roth(a)se-eng.com>
Date: Thu Jul 10 14:57:34 2014 -0600
board_status.sh allow cmd() to not save output
- allow for cmd() to be run, but not pipe to a file.
Change-Id: I3e1650e421a49a06218e082ceb5a60b7b4808ce8
Signed-off-by: Martin Roth <martin.roth(a)se-eng.com>
---
util/board_status/board_status.sh | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 7c321b3..20ba48f 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -60,10 +60,16 @@ _cmd()
return $EXIT_FAILURE
fi
+ if [ -n "$3" ]; then
+ pipe_location="${3}"
+ else
+ pipe_location="/dev/null"
+ fi
+
if [ "$1" -eq "$REMOTE" ] && [ -n "$REMOTE_HOST" ]; then
- ssh root@${REMOTE_HOST} "$2" > "${3}" 2>&1
+ ssh root@${REMOTE_HOST} "$2" > "$pipe_location" 2>&1
else
- $2 > "${3}" 2>&1
+ $2 > "$pipe_location" 2>&1
fi
return $?
the following patch was just integrated into master:
commit be5340bad23af53b4e78adb143fed926ff199c7c
Author: Martin Roth <martin.roth(a)se-eng.com>
Date: Sun Jun 22 21:46:24 2014 -0600
board_status.sh add non-fatal test_cmd
- add a non-fatal option to test_cmd.
Change-Id: If74693ea7ec8ea24104d5836e4c24bfb135ef0e1
Signed-off-by: Martin Roth <martin.roth(a)se-eng.com>
Reviewed-on: http://review.coreboot.org/6257
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
Reviewed-by: David Hendricks <dhendrix(a)chromium.org>
See http://review.coreboot.org/6257 for details.
-gerrit