Revision 9b0c922c

View differences:

tools/ide/QtCreator/QtCreatorSetup.sh
529 529
  cd $projectdir
530 530

  
531 531
  # AMiRo-OS, ChibiOS, AMiRo-BLT and AMiRo-LLD relative root directories
532
  local amiroosrootdir=$(realpath --relative-base=$projectdir $(dirname ${BASH_SOURCE[0]})/../../..)
533
  local chibiosrootdir=$(realpath --relative-base=$projectdir ${amiroosrootdir}/kernel/ChibiOS)
534
  local amirobltrootdir=$(realpath --relative-base=$projectdir ${amiroosrootdir}/bootloader/AMiRo-BLT)
535
  local amirolldrootdir=$(realpath --relative-base=$projectdir ${amiroosrootdir}/periphery-lld/AMiRo-LLD)
532
  local amiroosrootdir=$(realpath $(dirname ${BASH_SOURCE[0]})/../../..)
533
  local chibiosrootdir=$(realpath ${amiroosrootdir}/kernel/ChibiOS)
534
  local amirobltrootdir=$(realpath ${amiroosrootdir}/bootloader/AMiRo-BLT)
535
  local amirolldrootdir=$(realpath ${amiroosrootdir}/periphery-lld/AMiRo-LLD)
536 536

  
537 537
  # generate a file that contains all subdirectories as includes (but ignore hidden and documentation directories)
538 538
  find $gccincludedir -type d > ${projectdir}/LightRing.includes
539
  echo $amiroosrootdir >> ${projectdir}/LightRing.includes
539 540
  find $amiroosrootdir/modules -type d | grep -v "/doc\|/build\|/.dep\|/PowerManagement\|/DiWheelDrive" >> ${projectdir}/LightRing.includes
540
  find $amiroosrootdir/os -type d | grep -v "/doc\|/build\|/.dep\|/PowerManagement\|/DiWheelDrive" >> ${projectdir}/LightRing.includes
541
  find $amiroosrootdir/core -type d >> ${projectdir}/LightRing.includes
542
  find $amiroosrootdir/unittests -type d >> ${projectdir}/LightRing.includes
541 543
  find $chibiosrootdir -type d | grep -E "/os/common/abstractions/cmsis_os$" >> ${projectdir}/LightRing.includes
542 544
  find $chibiosrootdir -type d | grep -E "/os/common/ext/CMSIS/(include|ST/STM32F1xx)$" >> ${projectdir}/LightRing.includes
543 545
  find $chibiosrootdir -type d | grep -E "/os/common/oslib/(include|src)$" >> ${projectdir}/LightRing.includes
......
552 554
  find $chibiosrootdir -type d | grep -E "/os/various/(shell|cpp_wrappers)" >> ${projectdir}/LightRing.includes
553 555
  find $chibiosrootdir -type d | grep -E "/test/(lib|rt/source/test)$" >> ${projectdir}/LightRing.includes
554 556
  find $amirobltrootdir -type d | grep -E "/Target/Source/AMiRo$" >> ${projectdir}/LightRing.includes
555
  echo "$(realpath --relative-base=$projectdir ${amirolldrootdir}/..)" >> ${projectdir}/LightRing.includes
557
  echo "$(realpath ${amirolldrootdir}/..)" >> ${projectdir}/LightRing.includes
556 558
  find $amirolldrootdir -type d | grep -v "/doc" >> ${projectdir}/LightRing.includes
557 559
  # generate a file that specifies all files
558 560
  echo -n "" > ${projectdir}/LightRing.files
......
560 562
    find $path -maxdepth 1 -type f \( ! -iname ".*" \) |
561 563
      grep -Ev "^.*((/arm-none-eabi/)|(PowerManagement)|(DiWheelDrive)).*$" |
562 564
      grep -E  "^.*(\.s|\.S|\.h|\.c|\.hpp|\.cpp|\.tpp|\.ld)$" |
563
      grep -Ev "^${amiroosrootdir}/os/hal/ports/((STM32F[^1])|(STM32F1[^0])|(STM32F10[^3])|(STM32F103[^x])|(STM32F103x[^E])).*$" |
564 565
      grep -Ev "^${chibiosrootdir}/os/common/ext/CMSIS/ST/STM32F1xx/((stm32f1[^0x])|(stm32f10[^3])|(stm32f103[^x])|(stm32f103x[^e])).*$" |
565 566
      grep -Ev "^${chibiosrootdir}/os/common/ext/CMSIS/include/((core_[^c])|(core_c[^m])|(core_cm[^3A-Za-z])|(cmsis_[^g])|(cmsis_g[^c]|(cmsis_gc[^c])))" |
566 567
      grep -Ev "^${chibiosrootdir}/os/common/ports/ARMCMx/chcore_v[^7]m.*$" |
......
662 663
  cd $projectdir
663 664

  
664 665
  # AMiRo-OS, ChibiOS, AMiRo-BLT and AMiRo-LLD relative root directories
665
  local amiroosrootdir=$(realpath --relative-base=$projectdir $(dirname ${BASH_SOURCE[0]})/../../..)
666
  local chibiosrootdir=$(realpath --relative-base=$projectdir ${amiroosrootdir}/kernel/ChibiOS)
667
  local amirobltrootdir=$(realpath --relative-base=$projectdir ${amiroosrootdir}/bootloader/AMiRo-BLT)
668
  local amirolldrootdir=$(realpath --relative-base=$projectdir ${amiroosrootdir}/periphery-lld/AMiRo-LLD)
666
  local amiroosrootdir=$(realpath $(dirname ${BASH_SOURCE[0]})/../../..)
667
  local chibiosrootdir=$(realpath ${amiroosrootdir}/kernel/ChibiOS)
668
  local amirobltrootdir=$(realpath ${amiroosrootdir}/bootloader/AMiRo-BLT)
669
  local amirolldrootdir=$(realpath ${amiroosrootdir}/periphery-lld/AMiRo-LLD)
669 670

  
670 671
  # generate a file that contains all subdirectories as includes (but ignore hidden and documentation directories)
671 672
  find $gccincludedir -type d > ${projectdir}/PowerManagement.includes
673
  echo $amiroosrootdir >> ${projectdir}/PowerManagement.includes
672 674
  find $amiroosrootdir/modules -type d | grep -v "/doc\|/build\|/.dep\|/LightRing\|/DiWheelDrive" >> ${projectdir}/PowerManagement.includes
673
  find $amiroosrootdir/os -type d | grep -v "/doc\|/build\|/.dep\|/LightRing\|/DiWheelDrive" >> ${projectdir}/PowerManagement.includes
675
  find $amiroosrootdir/core -type d >> ${projectdir}/PowerManagement.includes
676
  find $amiroosrootdir/unittests -type d >> ${projectdir}/PowerManagement.includes
674 677
  find $chibiosrootdir -type d | grep -E "/os/common/abstractions/cmsis_os$" >> ${projectdir}/PowerManagement.includes
675 678
  find $chibiosrootdir -type d | grep -E "/os/common/ext/CMSIS/(include|ST/STM32F4xx)$" >> ${projectdir}/PowerManagement.includes
676 679
  find $chibiosrootdir -type d | grep -E "/os/common/oslib/(include|src)$" >> ${projectdir}/PowerManagement.includes
......
685 688
  find $chibiosrootdir -type d | grep -E "/os/various/(shell|cpp_wrappers)" >> ${projectdir}/PowerManagement.includes
686 689
  find $chibiosrootdir -type d | grep -E "/test/(lib|rt/source/test)$" >> ${projectdir}/PowerManagement.includes
687 690
  find $amirobltrootdir -type d | grep -E "/Target/Source/AMiRo$" >> ${projectdir}/PowerManagement.includes
688
  echo "$(realpath --relative-base=$projectdir ${amirolldrootdir}/..)" >> ${projectdir}/PowerManagement.includes
691
  echo "$(realpath ${amirolldrootdir}/..)" >> ${projectdir}/PowerManagement.includes
689 692
  find $amirolldrootdir -type d | grep -v "/doc" >> ${projectdir}/PowerManagement.includes
690 693
  # generate a file that specifies all files
691 694
  echo -n "" > ${projectdir}/PowerManagement.files
......
693 696
    find $path -maxdepth 1 -type f \( ! -iname ".*" \) |
694 697
      grep -Ev "^.*((/arm-none-eabi/)|(LightRing)|(DiWheelDrive)).*$" |
695 698
      grep -E  "^.*(\.s|\.S|\.h|\.c|\.hpp|\.cpp|\.tpp|\.ld)$" |
696
      grep -Ev "^${amiroosrootdir}/os/hal/ports/((STM32F[^4])|(STM32F4[^0])|(STM32F40[^5])|(STM32F405[^x])|(STM32F405x[^G])).*$" |
697 699
      grep -Ev "^${chibiosrootdir}/os/common/ext/CMSIS/ST/STM32F4xx/((stm32f4[^0x])|(stm32f40[^5])).*$" |
698 700
      grep -Ev "^${chibiosrootdir}/os/common/ext/CMSIS/include/((core_[^c])|(core_c[^m])|(core_cm[^4A-Za-z])|(cmsis_[^g])|(cmsis_g[^c]|(cmsis_gc[^c])))" |
699 701
      grep -Ev "^${chibiosrootdir}/os/common/ports/ARMCMx/chcore_v[^7]m.*$" |
......
794 796
  cd $projectdir
795 797

  
796 798
  # AMiRo-OS, ChibiOS, AMiRo-BLT and AMiRo-LLD relative root directories
797
  local amiroosrootdir=$(realpath --relative-base=$projectdir $(dirname ${BASH_SOURCE[0]})/../../..)
798
  local chibiosrootdir=$(realpath --relative-base=$projectdir ${amiroosrootdir}/kernel/ChibiOS)
799
  local amirobltrootdir=$(realpath --relative-base=$projectdir ${amiroosrootdir}/bootloader/AMiRo-BLT)
800
  local amirolldrootdir=$(realpath --relative-base=$projectdir ${amiroosrootdir}/periphery-lld/AMiRo-LLD)
799
  local amiroosrootdir=$(realpath $(dirname ${BASH_SOURCE[0]})/../../..)
800
  local chibiosrootdir=$(realpath ${amiroosrootdir}/kernel/ChibiOS)
801
  local amirobltrootdir=$(realpath ${amiroosrootdir}/bootloader/AMiRo-BLT)
802
  local amirolldrootdir=$(realpath ${amiroosrootdir}/periphery-lld/AMiRo-LLD)
801 803

  
802 804
  # generate a file that contains all subdirectories as includes (but ignore hidden and documentation directories)
803 805
  find $gccincludedir -type d > ${projectdir}/DiWheelDrive.includes
806
  echo $amiroosrootdir >> ${projectdir}/DiWheelDrive.includes
804 807
  find $amiroosrootdir/modules -type d | grep -v "/doc\|/build\|/.dep\|/LightRing\|/PowerManagement" >> ${projectdir}/DiWheelDrive.includes
805
  find $amiroosrootdir/os -type d | grep -v "/doc\|/build\|/.dep\|/LightRing\|/PowerManagement" >> ${projectdir}/DiWheelDrive.includes
808
  find $amiroosrootdir/core -type d >> ${projectdir}/DiWheelDrive.includes
809
  find $amiroosrootdir/unittests -type d >> ${projectdir}/DiWheelDrive.includes
806 810
  find $chibiosrootdir -type d | grep -E "/os/common/abstractions/cmsis_os$" >> ${projectdir}/DiWheelDrive.includes
807 811
  find $chibiosrootdir -type d | grep -E "/os/common/ext/CMSIS/(include|ST/STM32F1xx)$" >> ${projectdir}/DiWheelDrive.includes
808 812
  find $chibiosrootdir -type d | grep -E "/os/common/oslib/(include|src)$" >> ${projectdir}/DiWheelDrive.includes
......
817 821
  find $chibiosrootdir -type d | grep -E "/os/various/(shell|cpp_wrappers)" >> ${projectdir}/DiWheelDrive.includes
818 822
  find $chibiosrootdir -type d | grep -E "/test/(lib|rt/source/test)$" >> ${projectdir}/DiWheelDrive.includes
819 823
  find $amirobltrootdir -type d | grep -E "/Target/Source/AMiRo$" >> ${projectdir}/DiWheelDrive.includes
820
  echo "$(realpath --relative-base=$projectdir ${amirolldrootdir}/..)" >> ${projectdir}/DiWheelDrive.includes
824
  echo "$(realpath ${amirolldrootdir}/..)" >> ${projectdir}/DiWheelDrive.includes
821 825
  find $amirolldrootdir -type d | grep -v "/doc" >> ${projectdir}/DiWheelDrive.includes
822 826
  # generate a file that specifies all files
823 827
  echo -n "" > ${projectdir}/DiWheelDrive.files
......
825 829
    find $path -maxdepth 1 -type f \( ! -iname ".*" \) |
826 830
      grep -Ev "^.*((/arm-none-eabi/)|(LightRing)|(PowerManagement)).*$" |
827 831
      grep -E  "^.*(\.s|\.S|\.h|\.c|\.hpp|\.cpp|\.tpp|\.ld)$" |
828
      grep -Ev "^${amiroosrootdir}/os/hal/ports/((STM32F[^1])|(STM32F1[^0])|(STM32F10[^3])|(STM32F103[^x])|(STM32F103x[^E])).*$" |
829 832
      grep -Ev "^${chibiosrootdir}/os/common/ext/CMSIS/ST/STM32F1xx/((stm32f1[^0x])|(stm32f10[^3])|(stm32f103[^x])|(stm32f103x[^e])).*$" |
830 833
      grep -Ev "^${chibiosrootdir}/os/common/ext/CMSIS/include/((core_[^c])|(core_c[^m])|(core_cm[^3A-Za-z])|(cmsis_[^g])|(cmsis_g[^c]|(cmsis_gc[^c])))" |
831 834
      grep -Ev "^${chibiosrootdir}/os/common/ports/ARMCMx/chcore_v[^7]m.*$" |

Also available in: Unified diff