travisci: Add support for ARC
Finally adding support for ARC boards in TravisCI. To build for ARC boards we need to install Synopsys prebuilt toolchain which we do here. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
		
							parent
							
								
									6cc96bc75a
								
							
						
					
					
						commit
						80e4bbfcd9
					
				| 
						 | 
					@ -40,6 +40,7 @@ install:
 | 
				
			||||||
 - echo -e "[toolchain]\nroot = /usr" > ~/.buildman
 | 
					 - echo -e "[toolchain]\nroot = /usr" > ~/.buildman
 | 
				
			||||||
 - echo -e "aarch64 = /tmp/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu" >> ~/.buildman
 | 
					 - echo -e "aarch64 = /tmp/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu" >> ~/.buildman
 | 
				
			||||||
 - echo -e "arm = /tmp/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf" >> ~/.buildman
 | 
					 - echo -e "arm = /tmp/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf" >> ~/.buildman
 | 
				
			||||||
 | 
					 - echo -e "arc = /tmp/arc_gnu_2016.09_prebuilt_uclibc_le_archs_linux_install" >> ~/.buildman
 | 
				
			||||||
 - echo -e "\n[toolchain-alias]\nsh = sh4\nopenrisc = or32" >> ~/.buildman
 | 
					 - echo -e "\n[toolchain-alias]\nsh = sh4\nopenrisc = or32" >> ~/.buildman
 | 
				
			||||||
 - cat ~/.buildman
 | 
					 - cat ~/.buildman
 | 
				
			||||||
 - virtualenv /tmp/venv
 | 
					 - virtualenv /tmp/venv
 | 
				
			||||||
| 
						 | 
					@ -69,6 +70,10 @@ before_script:
 | 
				
			||||||
      ./tools/buildman/buildman --fetch-arch x86_64;
 | 
					      ./tools/buildman/buildman --fetch-arch x86_64;
 | 
				
			||||||
      echo -e "\n[toolchain-prefix]\nx86 = ${HOME}/.buildman-toolchains/gcc-4.9.0-nolibc/x86_64-linux/bin/x86_64-linux-" >> ~/.buildman;
 | 
					      echo -e "\n[toolchain-prefix]\nx86 = ${HOME}/.buildman-toolchains/gcc-4.9.0-nolibc/x86_64-linux/bin/x86_64-linux-" >> ~/.buildman;
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					  - if [[ "${TOOLCHAIN}" == arc ]]; then
 | 
				
			||||||
 | 
					       wget https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/download/arc-2016.09-release/arc_gnu_2016.09_prebuilt_uclibc_le_archs_linux_install.tar.gz &&
 | 
				
			||||||
 | 
					       tar -C /tmp -xf arc_gnu_2016.09_prebuilt_uclibc_le_archs_linux_install.tar.gz;
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
  - if [[ "${TOOLCHAIN}" == *xtensa* ]]; then ./tools/buildman/buildman --fetch-arch xtensa ; fi
 | 
					  - if [[ "${TOOLCHAIN}" == *xtensa* ]]; then ./tools/buildman/buildman --fetch-arch xtensa ; fi
 | 
				
			||||||
  # If TOOLCHAIN is unset, we're on some flavour of ARM.
 | 
					  # If TOOLCHAIN is unset, we're on some flavour of ARM.
 | 
				
			||||||
  - if [[ "${TOOLCHAIN}" == "" ]]; then
 | 
					  - if [[ "${TOOLCHAIN}" == "" ]]; then
 | 
				
			||||||
| 
						 | 
					@ -118,6 +123,9 @@ matrix:
 | 
				
			||||||
  include:
 | 
					  include:
 | 
				
			||||||
  # we need to build by vendor due to 50min time limit for builds
 | 
					  # we need to build by vendor due to 50min time limit for builds
 | 
				
			||||||
  # each env setting here is a dedicated build
 | 
					  # each env setting here is a dedicated build
 | 
				
			||||||
 | 
					    - env:
 | 
				
			||||||
 | 
					        - BUILDMAN="arc"
 | 
				
			||||||
 | 
					          TOOLCHAIN="arc"
 | 
				
			||||||
    - env:
 | 
					    - env:
 | 
				
			||||||
        - BUILDMAN="arm11"
 | 
					        - BUILDMAN="arm11"
 | 
				
			||||||
    - env:
 | 
					    - env:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue