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.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6KB

  1. #!/bin/bash
  2. # syntax ./boundary_savedefconfig "commit message" [boards]
  3. #Separate files by board and commit changes after "savedefconfig"
  4. commit_msg=$1;
  5. if [ -z $2 ] ; then
  6. boards=`ls -d board/boundary/* | sed 's.board/boundary/..'`;
  7. else
  8. boards=$2;
  9. fi
  10. numboards=0;
  11. numsuccess=0;
  12. numfailures=0;
  13. skipped=0;
  14. for board in ${boards} ; do
  15. update_cnt=0;
  16. target="";
  17. defconfigs="";
  18. hfile="";
  19. if [ -e board/boundary/${board}/Kconfig ] ; then
  20. target=`grep '^if TARGET_' board/boundary/${board}/Kconfig | sed 's.if ..'`;
  21. echo board=${board} target=${target};
  22. hfile=`grep -A1 SYS_CONFIG_NAME board/boundary/${board}/Kconfig | grep default | sed 's.default "..' | sed 's."..' | sed 's/[ \x09]*//'`;
  23. defconfigs=`git grep -w CONFIG_${target} configs/ | sed 's.configs/..'| sed 's/_defconfig:.*$//'`;
  24. fi
  25. for defconfig in ${defconfigs} ; do
  26. make ${defconfig}_defconfig;
  27. make savedefconfig;
  28. cp defconfig configs/${defconfig}_defconfig;
  29. echo updated ${defconfig}_defconfig;
  30. git update-index configs/${defconfig}_defconfig;
  31. update_cnt=`expr $update_cnt + 1`;
  32. done
  33. if [ x${hfile} == x ] ; then
  34. echo hfile=${hfile} board=${board} target=${target}
  35. else
  36. git update-index include/configs/${hfile}.h
  37. git update-index board/boundary/${board}/*.c
  38. git update-index board/boundary/${board}/*
  39. git update-index arch/arm/mach-imx/mx6/Kconfig
  40. echo "${board}: ${update_cnt} defconfigs updated";
  41. numsuccess=`expr $numsuccess + 1`;
  42. git c -m"${board}: ${commit_msg}";
  43. numboards=`expr $numboards + 1`;
  44. fi
  45. done
  46. echo -e "\n\ninsert for ${numboards} boards. ${numsuccess} succeeded and ${numfailures} failed, ${skipped} skipped";