mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 14:00:19 +00:00 
			
		
		
		
	CI: Switch to using coreboot from our image
Instead of downloading coreboot binaries from a Google drive location, use the ones we have built ourselves. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
		
							parent
							
								
									f382050896
								
							
						
					
					
						commit
						3a79c91f43
					
				@ -236,10 +236,9 @@ stages:
 | 
				
			|||||||
              cp images/spi-nor.img \${UBOOT_TRAVIS_BUILD_DIR}/;
 | 
					              cp images/spi-nor.img \${UBOOT_TRAVIS_BUILD_DIR}/;
 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
          if [[ "\${TEST_PY_BD}" == "coreboot" ]]; then
 | 
					          if [[ "\${TEST_PY_BD}" == "coreboot" ]]; then
 | 
				
			||||||
              wget -O - "https://drive.google.com/uc?id=1uJ2VkUQ8czWFZmhJQ90Tp8V_zrJ6BrBH&export=download" |xz -dc >\${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom;
 | 
					              cp /opt/coreboot/coreboot.rom \${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom;
 | 
				
			||||||
              wget -O - "https://drive.google.com/uc?id=149Cz-5SZXHNKpi9xg6R_5XITWohu348y&export=download" >cbfstool;
 | 
					              /opt/coreboot/cbfstool \${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom remove -n fallback/payload;
 | 
				
			||||||
              chmod a+x cbfstool;
 | 
					              /opt/coreboot/cbfstool \${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom add-flat-binary -f \${UBOOT_TRAVIS_BUILD_DIR}/u-boot.bin -n fallback/payload -c LZMA -l 0x1110000 -e 0x1110000;
 | 
				
			||||||
              ./cbfstool \${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom add-flat-binary -f \${UBOOT_TRAVIS_BUILD_DIR}/u-boot.bin -n fallback/payload -c LZMA -l 0x1110000 -e 0x1110000;
 | 
					 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
          virtualenv -p /usr/bin/python3 /tmp/venv
 | 
					          virtualenv -p /usr/bin/python3 /tmp/venv
 | 
				
			||||||
          . /tmp/venv/bin/activate
 | 
					          . /tmp/venv/bin/activate
 | 
				
			||||||
 | 
				
			|||||||
@ -70,14 +70,9 @@ stages:
 | 
				
			|||||||
        cp images/spi-nor.img ${UBOOT_TRAVIS_BUILD_DIR}/;
 | 
					        cp images/spi-nor.img ${UBOOT_TRAVIS_BUILD_DIR}/;
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
    - if [[ "${TEST_PY_BD}" == "coreboot" ]]; then
 | 
					    - if [[ "${TEST_PY_BD}" == "coreboot" ]]; then
 | 
				
			||||||
        wget -O -
 | 
					        cp /opt/coreboot/coreboot.rom ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom;
 | 
				
			||||||
          "https://drive.google.com/uc?id=1uJ2VkUQ8czWFZmhJQ90Tp8V_zrJ6BrBH&export=download" |
 | 
					        /opt/coreboot/cbfstool ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom remove -n fallback/payload;
 | 
				
			||||||
          xz -dc >${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom;
 | 
					        /opt/coreboot/cbfstool ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom add-flat-binary -f ${UBOOT_TRAVIS_BUILD_DIR}/u-boot.bin -n fallback/payload -c LZMA -l 0x1110000 -e 0x1110000;
 | 
				
			||||||
        wget -O -
 | 
					 | 
				
			||||||
          "https://drive.google.com/uc?id=149Cz-5SZXHNKpi9xg6R_5XITWohu348y&export=download" >
 | 
					 | 
				
			||||||
          cbfstool;
 | 
					 | 
				
			||||||
        chmod a+x cbfstool;
 | 
					 | 
				
			||||||
        ./cbfstool ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom add-flat-binary -f ${UBOOT_TRAVIS_BUILD_DIR}/u-boot.bin -n fallback/payload -c LZMA -l 0x1110000 -e 0x1110000;
 | 
					 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
    - virtualenv -p /usr/bin/python3 /tmp/venv
 | 
					    - virtualenv -p /usr/bin/python3 /tmp/venv
 | 
				
			||||||
    - . /tmp/venv/bin/activate
 | 
					    - . /tmp/venv/bin/activate
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user