Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3292
-gerrit
commit 6e206102cf78a728ca36251aaeb43e898ff5e8cb
Author: Ronald G. Minnich <rminnich(a)gmail.com>
Date: Sun May 26 05:33:35 2013 -0700
Get buildgcc to behave reasonably with the -p choice.
buildgcc has many wrong choices, and two right ones,
but you would never guess that. It's even more
frustrating when it spends lots of time building a
full tool chain and you find out it's not the one you
wanted and, still worse, you've forgotten what it does want
and, even worse, it won't f-ing tell you what the two
right choices are!.
Have it tell you when you've done something wrong, and have it
make reasonable decisions when you say things like
-p arm
instead of
-p armv7a-eabi
This change lowers my blood pressure 10 points.
Change-Id: I44a59d7cb7a6260894d8bcb692a693ed25681ff8
Signed-off-by: Ronald G. Minnich <rminnich(a)gmail.com>
---
util/crossgcc/buildgcc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 7d416c2..c436f8e 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -221,6 +221,16 @@ while true ; do
esac
done
+case "$TARGETARCH" in
+ armv7a-eabi) break;;
+ i386-elf) break;;
+ i386-mingw32) break;;
+ i386*) TARGETARCH=i386-elf;;
+ arm*) TARGETARCH=armv7a-eabi;;
+ *) printf "Invalid architecture\n\n"; myhelp; exit 1;;
+esac
+
+echo "Target arch is now $TARGETARCH"
GDB_PACKAGE="GDB"
PYTHON_PACKAGE="PYTHON"
EXPAT_PACKAGE="EXPAT"
Nico Huber (nico.huber(a)secunet.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3300
-gerrit
commit 4a220d1ffcfa393680ca9e62d6c4ba610b49695a
Author: Nico Huber <nico.huber(a)secunet.com>
Date: Sun May 26 15:14:57 2013 +0200
Fix a warning in fsys_squashfs.c
Fix the following warning:
fs/fsys_squashfs.c: In function 'read_bytes':
fs/fsys_squashfs.c:74:30: warning: variable 'offset' set but not used [-Wunused-but-set-variable]
by removing the unused code to assign 'offset'.
Change-Id: If85647f98ea8e89eabb7d043632e39865cf8da7b
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
fs/fsys_squashfs.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/fs/fsys_squashfs.c b/fs/fsys_squashfs.c
index a82f00e..5dec882 100644
--- a/fs/fsys_squashfs.c
+++ b/fs/fsys_squashfs.c
@@ -71,12 +71,8 @@ static int inode_read(unsigned int inode_block, unsigned int inode_offset);
*/
static int read_bytes(long long address, unsigned int len, void *output_data)
{
- unsigned int block_number, offset;
int ret;
- block_number = address >> SECTOR_BITS;
- offset = address - (block_number);
-
TRACE("reading from position 0x%x, bytes %d\n", (int)address, len);
disk_read_func = disk_read_hook;
ret = devread(0, (int)address, len, output_data);
Nico Huber (nico.huber(a)secunet.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3295
-gerrit
commit 7532acf597009c44c15de15f5b5c3fdca3e05cef
Author: Nico Huber <nico.huber(a)secunet.com>
Date: Sun May 26 14:06:41 2013 +0200
Fix a warning in elfload.c
Fix the warning:
main/elfload.c: In function 'load_segments':
main/elfload.c:138:21: warning: variable 'time' set but not used [-Wunused-but-set-variable]
by setting 'time' (and 'start_time') only when DEBUG is enabled.
Change-Id: I19975963f180f7380dcae8d07f088505203fdbc9
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
main/elfload.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/main/elfload.c b/main/elfload.c
index 63ea2b4..3eb03c2 100644
--- a/main/elfload.c
+++ b/main/elfload.c
@@ -135,11 +135,12 @@ static int load_segments(Elf_phdr *phdr, int phnum,
unsigned long checksum_offset)
{
unsigned long bytes;
- u64 start_time, time;
int i;
bytes = 0;
- start_time = currticks();
+#if defined(DEBUG) && (DEBUG == 1)
+ u64 start_time = currticks();
+#endif
for (i = 0; i < phnum; i++) {
if (phdr[i].p_type != PT_LOAD)
continue;
@@ -165,9 +166,11 @@ static int load_segments(Elf_phdr *phdr, int phnum,
debug("ok\n");
}
- time = currticks() - start_time;
+#if defined(DEBUG) && (DEBUG == 1)
+ u64 time = currticks() - start_time;
debug("Loaded %lu bytes in %ums (%luKB/s)\n", bytes, time,
time? bytes/time : 0);
+#endif
return 1;
}
Nico Huber (nico.huber(a)secunet.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3294
-gerrit
commit f7471b63091dbad30db257ec49eed0e559033c7a
Author: Nico Huber <nico.huber(a)secunet.com>
Date: Sun May 26 12:00:16 2013 +0200
Fix random warnings in char_io.c
Fix two warnings:
char_io.c: In function 'grub_printf':
char_io.c:86:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
char_io.c: In function 'init_page':
char_io.c:104:4: warning: implicit declaration of function 'get_cb_version' [-Wimplicit-function-declaration]
by removing the variable 'ret' and including sys_info.h for the
'get_cb_version' prototype.
Change-Id: I596b17b3594f8909ff5d6eccb9cb0be475bf052e
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
main/grub/char_io.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main/grub/char_io.c b/main/grub/char_io.c
index fec3387..21df9f8 100644
--- a/main/grub/char_io.c
+++ b/main/grub/char_io.c
@@ -20,6 +20,7 @@
*/
#include <libpayload.h>
+#include <sys_info.h>
#include <config.h>
#include <version.h>
#include <grub/shared.h>
@@ -83,13 +84,12 @@ void grub_putstr(const char *str)
void grub_printf(const char *format, ...)
{
- int ret;
va_list args;
#define OUTPUT_SIZE 256
char output[OUTPUT_SIZE];
va_start(args, format);
- ret = vsnprintf(output, OUTPUT_SIZE, format, args);
+ vsnprintf(output, OUTPUT_SIZE, format, args);
va_end(args);
grub_putstr(output);
refresh();
the following patch was just integrated into master:
commit c6d1da0b18a35470c5cf5d366d33fac957ae7974
Author: Gabe Black <gabeblack(a)chromium.org>
Date: Sun May 26 11:31:56 2013 +0200
snow: Add a name to the serial console UART choice block.
This allows other boards to have the same choice block without confusing
kconfig.
Change-Id: Iea5a7f2d1c263aa7992f504b832ca9c862833c3f
Signed-off-by: Gabe Black <gabeblack(a)chromium.org>
Reviewed-on: http://review.coreboot.org/3293
Reviewed-by: Ronald G. Minnich <rminnich(a)gmail.com>
Tested-by: build bot (Jenkins)
See http://review.coreboot.org/3293 for details.
-gerrit