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.

36 lines
1.3KB

  1. savedir=../u-boot-images
  2. mkdir -p $savedir
  3. rm $savedir/*
  4. boards=$(cd configs && grep -l DEFCONFIG * | sed 's/_defconfig.*$//');
  5. cpus=`grep -c '^processor' /proc/cpuinfo` ;
  6. jobs=`expr $cpus + 2` ;
  7. numboards=0;
  8. numsuccess=0;
  9. numfailures=0;
  10. dd if=/dev/zero of=test.bin bs=4096 count=1
  11. for board in $boards ; do
  12. if [ $board != "mx6qsabrelite" ] ; then
  13. make distclean ; make ${board}_defconfig
  14. cfgfile=$(sed -n -e's/.\{1,\}IMX_CONFIG=\([^,]\{1,\}\),.*$/\1/p' configs/${board}_defconfig)
  15. make include/autoconf.mk
  16. arm-linux-gnueabihf-gcc -E \
  17. -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/5/include -Iinclude \
  18. -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ \
  19. -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic \
  20. -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 \
  21. -msoft-float -pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7 \
  22. -x c -o test.cfgtmp $cfgfile
  23. mkimage -n test.cfgtmp -T imximage -e 0x17800000 -d test.bin test.imx
  24. od -Ax -tx4 --endian=big test.imx >$savedir/${board}.txt
  25. if [ -e $savedir/${board}.txt ] ; then
  26. numsuccess=`expr $numsuccess + 1`;
  27. fi
  28. numboards=`expr $numboards + 1`;
  29. fi
  30. done
  31. make distclean ;
  32. echo -e "\n\n\nbuilt for ${numboards} boards. ${numsuccess} succeeded and ${numfailures} failed";