Fork of the vendor (Boundary Devices) u-boot for Reform 2, with minor tweaks. The goal is to migrate to mainstream u-boot or barebox ASAP. The main impediment so far is the 4GB RAM config.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

50 行
1.5 KiB

  1. #!/bin/bash
  2. savedir=../u-boot-images
  3. mkdir -p $savedir
  4. rm -fr $savedir/*
  5. boards=$(cd configs && grep -l DEFCONFIG * | sed 's/_defconfig.*$//');
  6. cpus=`grep -c '^processor' /proc/cpuinfo` ;
  7. jobs=`expr $cpus + 2` ;
  8. numboards=0;
  9. numsuccess=0;
  10. numfailures=0;
  11. for board in $boards ; do
  12. if [ $board != "mx6qsabrelite" ] ; then
  13. cnt=`sed -n "/CONFIG_ARCH_IMX8M=/=" configs/${board}_defconfig`
  14. if [ "${cnt}" != "" ] ; then
  15. export ARCH=arm64
  16. export CROSS_COMPILE=aarch64-linux-gnu-
  17. else
  18. export ARCH=arm
  19. export CROSS_COMPILE=arm-linux-gnueabihf-
  20. fi
  21. make distclean ; make ${board}_defconfig
  22. make all -j $jobs
  23. if [ $? -ne 0 ]; then
  24. numfailures=`expr $numfailures + 1`;
  25. echo -e "\n\n\n!!!!!!!! build failure for $board !!!!!!!!!!!!\n\n";
  26. read line;
  27. else
  28. if [ "${ARCH}" == "arm64" ] ; then
  29. make flash.bin -j4
  30. cp -fv flash.bin ${savedir}/u-boot.${board} ;
  31. ls -l ${savedir}/u-boot.${board};
  32. cp -fv u-boot.bin ${savedir}/u-boot.bin.${board};
  33. else
  34. cp -fv u-boot.imx $savedir/u-boot.${board};
  35. ls -l $savedir/u-boot.${board};
  36. fi
  37. numsuccess=`expr $numsuccess + 1`;
  38. fi
  39. defcfg=$(sed -n -e's/.\{1,\}DEFCONFIG=\\"\(.\{1,\}\)\\""/\1/p' configs/${board}_defconfig)
  40. if [ "$defcfg" != "$board" ] ; then
  41. echo -e "\n\n\n!!!!!!!! $board does not match $defcfg !!!!!!!!!!!!\n\n";
  42. read line;
  43. fi
  44. numboards=`expr $numboards + 1`;
  45. fi
  46. done
  47. make distclean;
  48. echo -e "\n\n\nbuilt for ${numboards} boards. ${numsuccess} succeeded and ${numfailures} failed";