-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add Linux defconfig and update build instructions TEST: Added Github Workflow CI that uses the new instructions - Add Github Workflows to build u-root and Linux TEST: Confirmed the build binary boots u-root on RPI4 Signed-off-by: Patrick Rudolph <[email protected]>
- Loading branch information
1 parent
9382ba1
commit 5c15e9d
Showing
4 changed files
with
113 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Firmware build action | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
jobs: | ||
uroot_build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/9elements/firmware-action/linux_6.1.45:f2d1f92 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
token: ${{ secrets.MY_REPO_PAT || github.token }} | ||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: stable | ||
|
||
- name: Build u-root | ||
shell: bash | ||
working-directory: ./u-root | ||
env: | ||
GOARCH: arm64 | ||
run: | | ||
go build . | ||
./u-root -defaultsh gosh -o initramfs.cpio boot coreboot-app ./cmds/core/* ./cmds/boot/* | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: uroot-binary | ||
path: | | ||
./u-root/initramfs.cpio | ||
linux_build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/9elements/firmware-action/linux_6.1.45:f2d1f92 | ||
needs: uroot_build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
token: ${{ secrets.MY_REPO_PAT || github.token }} | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: uroot-binary | ||
path: ./u-root/ | ||
|
||
- name: Build kernel | ||
shell: bash | ||
working-directory: ./linux | ||
env: | ||
ARCH: arm64 | ||
CROSS_COMPILE: aarch64-linux-gnu- | ||
run: | | ||
make bcm2711_defconfig | ||
./scripts/kconfig/merge_config.sh .config ../acpi.conf ../uroot_initramfs.conf | ||
make Image -j$(nproc) | ||
make dtbs -j$(nproc) | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: linux-binary | ||
path: | | ||
./linux/arch/arm64/boot/Image | ||
./linux/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dtb | ||
./linux/.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CONFIG_ACPI=y | ||
CONFIG_ACPI_DEBUGGER=y | ||
CONFIG_ACPI_DEBUGGER_USER=y | ||
CONFIG_ACPI_EC_DEBUGFS=y | ||
CONFIG_ACPI_DOCK=y | ||
CONFIG_ACPI_PCI_SLOT=y | ||
CONFIG_ACPI_CONTAINER=y | ||
CONFIG_ACPI_CUSTOM_METHOD=y | ||
CONFIG_ACPI_BGRT=y | ||
CONFIG_ACPI_APEI=y | ||
CONFIG_ACPI_APEI_GHES=y | ||
CONFIG_ACPI_APEI_EINJ=y | ||
CONFIG_ACPI_APEI_ERST_DEBUG=y | ||
CONFIG_ACPI_CONFIGFS=y | ||
CONFIG_ARM64_ACPI_PARKING_PROTOCOL=y | ||
CONFIG_CMDLINE_FORCE=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_INITRAMFS_SOURCE="../u-root/initramfs.cpio" |