summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMAKEALL29
-rw-r--r--drivers/rtc/ds1337.c4
-rw-r--r--include/configs/digsy_mtc.h1
-rw-r--r--include/configs/galaxy5200.h2
4 files changed, 35 insertions, 1 deletions
diff --git a/MAKEALL b/MAKEALL
index b394adb..776f968 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -1,11 +1,15 @@
#!/bin/sh
+# Print statistics when we exit
+trap exit 1 2 3 15
+trap print_stats 0
+
# Determine number of CPU cores if no default was set
: ${BUILD_NCPUS:="`getconf _NPROCESSORS_ONLN`"}
if [ "$BUILD_NCPUS" -gt 1 ]
then
- JOBS=-j`expr "$BUILD_NCPUS" + 1`
+ JOBS="-j $((BUILD_NCPUS + 1))"
else
JOBS=""
fi
@@ -31,6 +35,11 @@ fi
LIST=""
+# Keep track of the number of builds and errors
+ERR_CNT=0
+ERR_LIST=""
+TOTAL_CNT=0
+
#########################################################################
## MPC5xx Systems
#########################################################################
@@ -904,6 +913,14 @@ build_target() {
${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
| tee ${LOG_DIR}/$target.ERR
+ if [ -s ${LOG_DIR}/$target.ERR ] ; then
+ ERR_CNT=$((ERR_CNT + 1))
+ ERR_LIST="${ERR_LIST} $target"
+ else
+ rm ${LOG_DIR}/$target.ERR
+ fi
+
+ TOTAL_CNT=$((TOTAL_CNT + 1))
${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
| tee -a ${LOG_DIR}/$target.MAKELOG
@@ -911,7 +928,17 @@ build_target() {
#-----------------------------------------------------------------------
+print_stats() {
+ echo ""
+ echo "--------------------- SUMMARY ----------------------------"
+ echo "Boards compiled: ${TOTAL_CNT}"
+ if [ ${ERR_CNT} -gt 0 ] ; then
+ echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
+ fi
+ echo "----------------------------------------------------------"
+}
+#-----------------------------------------------------------------------
for arg in $@
do
case "$arg" in
diff --git a/drivers/rtc/ds1337.c b/drivers/rtc/ds1337.c
index a71ab5d..7abf041 100644
--- a/drivers/rtc/ds1337.c
+++ b/drivers/rtc/ds1337.c
@@ -56,6 +56,7 @@
#define RTC_YR_REG_ADDR 0x6
#define RTC_CTL_REG_ADDR 0x0e
#define RTC_STAT_REG_ADDR 0x0f
+#define RTC_TC_REG_ADDR 0x10
/*
* RTC control register bits
@@ -169,6 +170,9 @@ int rtc_set (struct rtc_time *tmp)
void rtc_reset (void)
{
rtc_write (RTC_CTL_REG_ADDR, RTC_DS1337_RESET_VAL);
+#ifdef CONFIG_SYS_DS1339_TCR_VAL
+ rtc_write (RTC_TC_REG_ADDR, CONFIG_SYS_DS1339_TCR_VAL);
+#endif
}
diff --git a/include/configs/digsy_mtc.h b/include/configs/digsy_mtc.h
index 2bdaaac..7a1a7c3 100644
--- a/include/configs/digsy_mtc.h
+++ b/include/configs/digsy_mtc.h
@@ -244,6 +244,7 @@
*/
#define CONFIG_RTC_DS1337
#define CONFIG_SYS_I2C_RTC_ADDR 0x68
+#define CONFIG_SYS_DS1339_TCR_VAL 0xAB /* diode + 4k resistor */
/*
* Flash configuration
diff --git a/include/configs/galaxy5200.h b/include/configs/galaxy5200.h
index f4b520d..3b67ea9 100644
--- a/include/configs/galaxy5200.h
+++ b/include/configs/galaxy5200.h
@@ -367,6 +367,8 @@
CONFIG_BOOTP_DNS2 | \
CONFIG_BOOTP_SEND_HOSTNAME )
+#define CONFIG_VERSION_VARIABLE 1
+
/*
* Various low-level settings
*/