Comments (3)
please take the RET-Changes first, till i found a solution for logging:
1) make &&
make pack &&
cp_download_files &&
RET=0
;;
2) make u-boot && RET=0;;
3) make kernel && RET=0;;
4) make kernel-config && RET=0;;
5) make pack && RET=0;;
6) cp_download_files && RET=0;;
7) make clean && RET=0;;
logging can be done using "./build.sh 2>&1 | tee build.log"...don't using this for option 4 (make menuconfig) => you can't navigate then inside menuconfig
from bpi-r2-bsp.
logging can be done this way:
- make u-boot 2> >( tee "$logfile" ) && RET=0;;
- make kernel 2> >( tee "$logfile" ) && RET=0;;
from bpi-r2-bsp.
now functional with logging (changed color of "Now Building..." to yellow, because its no error :) ):
echo -e "\033[33m Now building...\033[0m"
echo
ret=1
logfile="$(dirname $0)/build.log"
exec 3> >(tee $logfile)
case $mode in
1) make 2>&3 &&
make pack 2>&3 &&
cp_download_files 2>&3 &&
ret=0
;;
2) make u-boot 2>&3 && ret=0;;
3) make kernel 2>&3 && ret=0;;
4) make kernel-config && ret=0;;
5) make pack 2>&3 && ret=0;;
6) cp_download_files 2>&3 && ret=0;;
7) make clean 2>&3 && ret=0;;
esac
exec 3>&-
echo
if [ "$RET" -eq "0" ];
then
echo -e "\033[32m Build success!\033[0m"
else
echo -e "\033[31m Build failed!\033[0m"
fi
echo
from bpi-r2-bsp.
Related Issues (20)
- MT7623 preloader source code HOT 3
- powerdown not working HOT 9
- GPIO not working HOT 24
- uart0/1 TX not working HOT 1
- Bug in init of ethernet driver? HOT 3
- is it i2s or i2c? HOT 3
- unable to disable tx-checksum-ipv4 for both eth0 and eth1 HOT 3
- Using 4G module with R2 will occur DNS error in some usage scenarios HOT 2
- dkpg error on Linux Kernel version syntax
- mt6625l using major-device-number from spi
- Environment of u-boot won't save in sd cart when boot from external sd card. HOT 3
- [uboot] uenv.txt is not loaded before display bootmenu
- kernel compilation failed HOT 5
- Kernel compilation failed (configuration multimedia support on module instead of builded in)
- USB3.0 (XHCI) Limited Problem
- GE Port Could not support 10Mb and 100Mb, just only support 1Gb HOT 2
- What's the maximum size for the SD card HOT 2
- Preloader's uboot load size HOT 2
- otg not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpi-r2-bsp.