Giter VIP home page Giter VIP logo

Comments (3)

frank-w avatar frank-w commented on August 16, 2024

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.

frank-w avatar frank-w commented on August 16, 2024

logging can be done this way:

  1. make u-boot 2> >( tee "$logfile" ) && RET=0;;
  2. make kernel 2> >( tee "$logfile" ) && RET=0;;

from bpi-r2-bsp.

frank-w avatar frank-w commented on August 16, 2024

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

build.sh.txt

from bpi-r2-bsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.