mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-21 15:50:58 +00:00
First pass at fixing CI errors
Signed-off-by: Ryan O'Leary <ryanoleary@google.com>
This commit is contained in:
parent
14d162880d
commit
7e9957402f
13
mainboards/.github/workflows/ci.yml
vendored
13
mainboards/.github/workflows/ci.yml
vendored
@ -18,6 +18,13 @@ jobs:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Environment variables
|
||||
env:
|
||||
# Setup $GOPATH
|
||||
GOPATH: ${{ github.workspace }}/go
|
||||
# Turn off modules because they are broken.
|
||||
GO111MODULE: off
|
||||
|
||||
# Run the build for each one of these configurations in parallel.
|
||||
strategy:
|
||||
matrix:
|
||||
@ -58,9 +65,13 @@ jobs:
|
||||
# access it.
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependent packages
|
||||
run: sudo apt-get install gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi{,hf} libelf-dev
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Make ${{ matrix.mainboard }} kernel
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE/${{ matrix.mainboard }}
|
||||
PATH=$PATH:$GOPATH/bin
|
||||
cd ${{ matrix.mainboard }}
|
||||
make fetch
|
||||
make flashkernel
|
||||
|
@ -73,7 +73,7 @@ uroot.lzma: uroot
|
||||
uroot:
|
||||
go run github.com/u-root/u-root -o initramfs.linux_amd64.cpio -build=bb -initcmd=cpud -files ~/.ssh/cpu_rsa.pub:key.pub \
|
||||
-defaultsh="" \
|
||||
github.com/u-root/cpu/cmds/cpud
|
||||
github.com/u-root/cpu/cmds/cpud/...
|
||||
|
||||
alluroot:
|
||||
go run github.com/u-root/u-root -o initramfs.linux_amd64.cpio -build=bb -initcmd=cpud -files ~/.ssh/cpu_rsa.pub:key.pub \
|
||||
|
2080
mainboards/aeeon/up/flash.config
Normal file
2080
mainboards/aeeon/up/flash.config
Normal file
File diff suppressed because it is too large
Load Diff
2080
mainboards/aeeon/upxtreme/flash.config
Normal file
2080
mainboards/aeeon/upxtreme/flash.config
Normal file
File diff suppressed because it is too large
Load Diff
2080
mainboards/amd/rome/flash.config
Normal file
2080
mainboards/amd/rome/flash.config
Normal file
File diff suppressed because it is too large
Load Diff
@ -6,9 +6,9 @@ KEYPATH ?= ""
|
||||
default: build
|
||||
|
||||
build:
|
||||
echo fetch, uroot, kernel, or image.bin
|
||||
echo fetch, uroot, flashkernel, or image.bin
|
||||
|
||||
image.bin: kernel
|
||||
image.bin: flashkernel
|
||||
utk \
|
||||
-xzPath /usr/bin/xz \
|
||||
ROM.bin \
|
||||
@ -62,11 +62,11 @@ image.bin: kernel
|
||||
remove LegacyBiosPlatform \
|
||||
remove HpPostCodeWorkerDxe \
|
||||
remove HpPostCodeWorkerSmm \
|
||||
replace_pe32 Shell kernel \
|
||||
replace_pe32 Shell flashkernel \
|
||||
save image.bin
|
||||
|
||||
kernel: uroot injectkeys bzImage
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
flashkernel: uroot injectkeys bzImage
|
||||
cp linux/arch/x86/boot/bzImage flashkernel
|
||||
|
||||
netboot: netbooturoot bzImage
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
@ -143,7 +143,7 @@ getrom:
|
||||
@echo and put it in rom.bin
|
||||
@echo you can get it via wget, flashrom, whatever.
|
||||
@echo If you are not targeting hardware, you can
|
||||
@echo make kernel
|
||||
@echo make flashkernel
|
||||
@echo and run that kernel via qemu
|
||||
|
||||
geturoot:
|
||||
|
@ -6,7 +6,7 @@ default: build
|
||||
build:
|
||||
echo fetch, uroot, kernel, or image.bin
|
||||
|
||||
image.bin: kernel
|
||||
image.bin: flashkernel
|
||||
utk \
|
||||
-xzPath /usr/bin/xz \
|
||||
ROM.bin \
|
||||
@ -32,7 +32,7 @@ image.bin: kernel
|
||||
remove .*Pxe.* \
|
||||
remove Ata.* \
|
||||
remove AMITSE \
|
||||
replace_pe32 FullShell kernel \
|
||||
replace_pe32 FullShell flashkernel \
|
||||
save image.bin
|
||||
|
||||
cpukernel: cpu.cpio.lzma cpu.config
|
||||
@ -48,8 +48,8 @@ cpu.cpio.lzma: Makefile
|
||||
github.com/u-root/cpu/cmds/cpud
|
||||
lzma -f -k cpu.cpio
|
||||
|
||||
kernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
flashkernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage flashkernel
|
||||
|
||||
netboot: netbooturoot bzImage
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
@ -95,7 +95,7 @@ getrom:
|
||||
@echo and put it in rom.bin
|
||||
@echo you can get it via wget, flashrom, whatever.
|
||||
@echo If you are not targeting hardware, you can
|
||||
@echo make kernel
|
||||
@echo make flashkernel
|
||||
@echo and run that kernel via qemu
|
||||
|
||||
geturoot:
|
||||
|
@ -1,9 +1,9 @@
|
||||
default: build
|
||||
|
||||
build:
|
||||
echo fetch, uroot, kernel, or image.bin
|
||||
echo fetch, uroot, flashkernel, or image.bin
|
||||
|
||||
image.bin: kernel
|
||||
image.bin: flashkernel
|
||||
utk \
|
||||
-xzPath /usr/bin/xz \
|
||||
sr630.bin \
|
||||
@ -29,11 +29,11 @@ image.bin: kernel
|
||||
remove .*Pxe.* \
|
||||
remove Ata.* \
|
||||
remove AMITSE \
|
||||
replace_pe32 FullShell kernel \
|
||||
replace_pe32 FullShell flashkernel \
|
||||
save image.bin
|
||||
|
||||
kernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
flashkernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage flashkernel
|
||||
|
||||
readrom:
|
||||
echo note: for this to work you need to plug in power
|
||||
|
@ -1,9 +1,9 @@
|
||||
default: build
|
||||
|
||||
build:
|
||||
echo fetch, uroot, kernel, or image.bin
|
||||
echo fetch, uroot, flashkernel, or image.bin
|
||||
|
||||
image.bin: kernel
|
||||
image.bin: flashkernel
|
||||
utk \
|
||||
-xzPath /usr/bin/xz \
|
||||
sr630.bin \
|
||||
@ -29,11 +29,11 @@ image.bin: kernel
|
||||
remove .*Pxe.* \
|
||||
remove Ata.* \
|
||||
remove AMITSE \
|
||||
replace_pe32 FullShell kernel \
|
||||
replace_pe32 FullShell flashkernel \
|
||||
save image.bin
|
||||
|
||||
kernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
flashkernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage flashkernel
|
||||
|
||||
readrom:
|
||||
echo note: for this to work you need to plug in power
|
||||
|
@ -1,18 +1,18 @@
|
||||
default: build
|
||||
|
||||
build:
|
||||
echo fetch, uroot, kernel, or image.bin
|
||||
echo fetch, uroot, flashkernel, or image.bin
|
||||
|
||||
image.bin: kernel coreboot.bin
|
||||
image.bin: flashkernel coreboot.bin
|
||||
cp coreboot.bin image.bin
|
||||
chmod +w image.bin
|
||||
cbfstool image.bin print
|
||||
cbfstool image.bin remove -n img/nerf
|
||||
cbfstool image.bin remove -n genroms/pxe.rom
|
||||
cbfstool image.bin add-payload -n img/nerf -f kernel
|
||||
cbfstool image.bin add-payload -n img/nerf -f flashkernel
|
||||
cbfstool image.bin print
|
||||
qemu: kernel
|
||||
sudo /usr/bin/qemu-system-x86_64 -kernel kernel \
|
||||
qemu: flashkernel
|
||||
sudo /usr/bin/qemu-system-x86_64 -kernel flashkernel \
|
||||
-cpu max \
|
||||
-s \
|
||||
-m 1024m \
|
||||
@ -30,8 +30,8 @@ qemu: kernel
|
||||
-object filter-dump,id=f1,netdev=n1,file=/tmp/vm0.pcap \
|
||||
|
||||
|
||||
kernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
flashkernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage flashkernel
|
||||
|
||||
netbootkernel: netbooturoot bzImage
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
@ -69,7 +69,7 @@ getkernel:
|
||||
xzcat kernel.xz | tar x
|
||||
mv linux-4.14.111 linux
|
||||
getrom:
|
||||
echo you create the kernel
|
||||
echo you create the flashkernel
|
||||
echo on the APU2: flashrom -r coreboot.bin -p internal
|
||||
echo copy that file here and for safety:
|
||||
echo chmod a-w coreboot.bin
|
||||
|
@ -56,5 +56,5 @@ getrom:
|
||||
echo chmod a-w apu.bin
|
||||
geturoot:
|
||||
go get -u github.com/u-root/u-root
|
||||
go get -u github.com/u-root/cpu
|
||||
go get -u github.com/u-root/cpu/...
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
default: build
|
||||
|
||||
build:
|
||||
echo fetch, kernel, or qemu
|
||||
echo fetch, flashkernel, or qemu
|
||||
|
||||
qemu: kernel
|
||||
qemu-system-x86_64 -kernel kernel -serial stdio -monitor /dev/null
|
||||
qemu: flashkernel
|
||||
qemu-system-x86_64 -kernel flashkernel -serial stdio -monitor /dev/null
|
||||
|
||||
kernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
flashkernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage flashkernel
|
||||
|
||||
uroot:
|
||||
go run github.com/u-root/u-root -build=bb all
|
||||
|
@ -40,7 +40,7 @@ flash: tiny.bin
|
||||
flashtest: testflashkernel
|
||||
|
||||
usefultargets:
|
||||
echo fetch, uroot, kernel, or image.bin
|
||||
echo fetch, uroot, flashkernel, or image.bin
|
||||
|
||||
flashinitramfs.cpio.lzma: flashinitramfs.cpio
|
||||
lzma -f -k $<
|
||||
|
@ -3,10 +3,10 @@ GOPATH ?= $(HOME)/go
|
||||
default: build
|
||||
|
||||
build:
|
||||
echo fetch, uroot, kernel, or image.bin
|
||||
echo fetch, uroot, flashkernel, or image.bin
|
||||
|
||||
image.bin: kernel
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
image.bin: flashkernel
|
||||
cp linux/arch/x86/boot/bzImage flashkernel
|
||||
$(GOPATH)/bin/utk tyan7106.bin \
|
||||
remove Ip.* \
|
||||
remove Tcp.* \
|
||||
@ -30,11 +30,11 @@ image.bin: kernel
|
||||
remove .*Pxe.* \
|
||||
remove Ata.* \
|
||||
remove AMITSE \
|
||||
replace_pe32 FullShell kernel \
|
||||
replace_pe32 FullShell flashkernel \
|
||||
save image.bin
|
||||
|
||||
kernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage kernel
|
||||
flashkernel: uroot bzImage
|
||||
cp linux/arch/x86/boot/bzImage flashkernel
|
||||
|
||||
uroot:
|
||||
u-root -files key.pub:key.pub -files key.pub:authorized_keys -files ssh_host_rsa_key:id_rsa github.com/u-root/u-root/cmds/core/* github.com/u-root/cpu/cmds/cpu
|
||||
|
@ -121,4 +121,6 @@ getrom:
|
||||
echo chmod a-w coreboot.bin
|
||||
geturoot:
|
||||
go get -u github.com/u-root/u-root
|
||||
|
||||
getfiano:
|
||||
go get -u github.com/linuxboot/fiano/cmds/utk
|
||||
go install github.com/linuxboot/fiano/cmds/utk
|
||||
|
Loading…
Reference in New Issue
Block a user