Patrick Georgi (pgeorgi(a)google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11601
-gerrit
commit 1732518d15475c45812bca4dc58272a2fa8ed737
Author: zbao <fishbaozi(a)gmail.com>
Date: Fri Sep 11 09:11:49 2015 -0400
amd/pi/Makefile: Remove cp option '-u'
"-u" is only for GNU cp. Cp of BSD and Solaris don't
take this option.
It is not necessary to compare the files before copying.
Change-Id: I60cf57991275db0e075278f77a95ca5b8b941c7f
Signed-off-by: Zheng Bao <zheng.bao(a)amd.com>
Signed-off-by: Zheng Bao <fishbaozi(a)gmail.com>
---
src/vendorcode/amd/pi/Makefile.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/vendorcode/amd/pi/Makefile.inc b/src/vendorcode/amd/pi/Makefile.inc
index a3d7fc1..b95fc5c 100644
--- a/src/vendorcode/amd/pi/Makefile.inc
+++ b/src/vendorcode/amd/pi/Makefile.inc
@@ -83,7 +83,7 @@ define create_agesa_cp_template
$(agesa_src_path)/$(notdir $2): $2 $(agesa_src_path)
@printf " AGESA Copying $$(notdir $2) => $$(@D)\n"
if [ ! -r $(agesa_src_path)/$(notdir $2) ]; then \
- cp -uf $2 $$(@D); \
+ cp -f $2 $$(@D); \
fi
$(agesa_obj_path)/$1.libagesa.o: $(agesa_src_path)/$(notdir $2) $(obj)/config.h $(src)/include/kconfig.h $(agesa_obj_path)
Zheng Bao (zheng.bao(a)amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11483
-gerrit
commit 065590b983e64b7cfd3a589435ba6a55581d6071
Author: zbao <fishbaozi(a)gmail.com>
Date: Thu Nov 5 20:08:50 2015 +0800
buildgcc: Search the cksum command without checking OS type
The checksum command might appear to be unpredictable only by
checking the OS. Just list the candidates, sorted by possibility.
Change-Id: Ia3f4f5f0f98ff47d322a4f70689cca0bd4fa79fa
Signed-off-by: Zheng Bao <zheng.bao(a)amd.com>
Signed-off-by: Zheng Bao <fishbaozi(a)gmail.com>
---
util/crossgcc/buildgcc | 42 ++++++++++++++++++++++++------------------
1 file changed, 24 insertions(+), 18 deletions(-)
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 321854f..a444099 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -146,24 +146,30 @@ searchtool()
fi
fi
fi
- if [ "$(echo $1 | cut -b -3)" = "sha" ]; then
- if [ $UNAME = "FreeBSD" ]; then
- if [ -x "$(which sha1 2>/dev/null)" ]; then
- echo sha1
- return
- fi
- fi
- if [ $UNAME = "NetBSD" ]; then
- if [ -x "$(which cksum 2>/dev/null)" ]; then
- echo cksum -a $(echo $1 | sed -e 's,sum,,')
- return
- fi
- fi
- if [ $UNAME = "Darwin" ]; then
- if [ -x "$(which openssl 2>/dev/null)" ]; then
- echo openssl $(echo $1 | sed -e 's,sum,,')
- return
- fi
+ if echo $1 | grep -q "sum" ; then
+ algor=$(echo $1 | sed -e 's,sum,,') #algor=sha1
+ if [ -x "$(which $1 2>/dev/null)" ]; then
+ #sha1sum [file]
+ echo $1
+ return
+ elif [ -x "$(which shasum 2>/dev/null)" ]; then
+ #shasum -a 1 [file]
+ echo shasum -a $(echo $algor | cut -c 4-)
+ return
+ elif [ -x "$(which $algor 2>/dev/null)" ]; then
+ #sha1 [file]
+ echo $algor
+ return
+ elif [ -x "$(which openssl 2>/dev/null)" ]; then
+ #openssl sha1 [file]
+ echo openssl $algor
+ return
+ elif [ -x "$(which cksum 2>/dev/null)" ]; then
+ #cksum -a sha1 [file]
+ #cksum has special options in NetBSD. Actually, NetBSD will use the second case above.
+ echo "buildgcc" | cksum -a $algor > /dev/null 2>/dev/null && \
+ echo cksum -a $algor
+ return
fi
fi
please_install $1
Zheng Bao (zheng.bao(a)amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11681
-gerrit
commit 754637536da99fb849fcb938ac1c7044b6f3073b
Author: zbao <fishbaozi(a)gmail.com>
Date: Fri Sep 18 06:17:09 2015 -0700
xcompile: Redirect the objdump stderr to /dev/null
On system with clang, "as" is available but "objdump" is not by default.
So if ${gccprefix} is empty, "as" can run successfully and the "objdump"
below might report error. Mask that output.
Change-Id: I9940f069f66e097973ed6138cf3c696087fa5531
Signed-off-by: Zheng Bao <zheng.bao(a)amd.com>
Signed-off-by: Zheng Bao <fishbaozi(a)gmail.com>
---
util/xcompile/xcompile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 76c3698..a8134a0 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -111,7 +111,7 @@ testas() {
2>/dev/null || return 1
# Check output content type.
- local obj_type="$(LANG=C LC_ALL= ${gccprefix}objdump -p $obj_file)"
+ local obj_type="$(LANG=C LC_ALL= ${gccprefix}objdump -p $obj_file 2>/dev/null)"
local obj_arch="$(expr "$obj_type" : '.*format \(.[a-z0-9-]*\)')"
[ "$obj_arch" = "$full_arch" ] || return 1
Zheng Bao (zheng.bao(a)amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11748
-gerrit
commit 1d1241be59642f77091465733e55586f7c49660d
Author: zbao <fishbaozi(a)gmail.com>
Date: Mon Jul 6 19:06:41 2015 -0400
AMD/Bettong: Set on-board eMMC as SD 2.0 for rev F
The on-board eMMC is designed as 2.0. If it is set as 3.0,
it can not be detected.
Change-Id: I9fd913f76535e65c1672924ebdeba3d35dea59cc
Signed-off-by: Zheng Bao <zheng.bao(a)amd.com>
Signed-off-by: Zheng Bao <fishbaozi(a)gmail.com>
---
src/mainboard/amd/bettong/BiosCallOuts.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mainboard/amd/bettong/BiosCallOuts.c b/src/mainboard/amd/bettong/BiosCallOuts.c
index ad8dc40..83a1f19 100644
--- a/src/mainboard/amd/bettong/BiosCallOuts.c
+++ b/src/mainboard/amd/bettong/BiosCallOuts.c
@@ -31,6 +31,7 @@
#include "hudson.h"
#include <stdlib.h>
#include "BiosCallOuts.h"
+#include "board_rev.h"
static AGESA_STATUS Fch_Oem_config(UINT32 Func, UINT32 FchData, VOID *ConfigPtr);
@@ -90,6 +91,11 @@ AGESA_STATUS Fch_Oem_config(UINT32 Func, UINT32 FchData, VOID *ConfigPtr)
FchParams_env->Usb.USB30PortInit = 8; /* 8: If USB3 port is unremoveable. */
/* sata configuration */
+ /* SD configuration */
+ /* Rev F has an on-board eMMC, which only support SD 2.0 */
+ if (get_board_id() == 'F') {
+ FchParams_env->Sd.SdConfig = SdVer2;
+ }
}
printk(BIOS_DEBUG, "Done\n");