Skip to content

Commit 4cb2445

Browse files
author
Danny Milosavljevic
committed
Initial import.
1 parent 5c27523 commit 4cb2445

File tree

9 files changed

+45
-2
lines changed

9 files changed

+45
-2
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "oreboot"]
2+
path = oreboot
3+
url = https://github.com/oreboot/oreboot.git

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 2-Clause License
22

3-
Copyright (c) 2021, Danny
3+
Copyright (c) 2021, Danny Milosavljevic
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
# docker-oreboot
2-
Build oreboot with Docker
2+
3+
Build oreboot with Docker.
4+
5+
# Usage:
6+
7+
Put file `bzImage` containing a Linux kernel (or LinuxBoot) into subdirectory `oreboot`, and then:
8+
9+
./prepare
10+
cd oreboot
11+
PAYLOAD_A=${PWD}/bzImage ../build

build

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
if [ -z "${DTC}" ]
4+
then
5+
DTC=dtc
6+
fi
7+
8+
TARGET_DIR="${PWD}/src/mainboard/amd/romecrb/target/x86_64-unknown-none/release"
9+
mkdir -p "${TARGET_DIR}"
10+
FIXED_DTFS=fixed-dtfs.dtb
11+
12+
"${DTC}" -W no-unit_address_vs_reg src/mainboard/amd/romecrb/fixed-dtfs.dts -O dtb -o "${TARGET_DIR}/${FIXED_DTFS}"
13+
14+
exec ../in-rust-nightly make OBJCOPY=objcopy -C src/mainboard/amd/romecrb "$@"

env

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec "`dirname \"$0\"`"/in-rust-nightly "$@"

in-rust-nightly

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
set -e
3+
4+
p="${PWD}"
5+
exec docker run --rm -e RUST_TARGET_PATH="${RUST_TARGET_PATH}" -e TARGET_DIR="${TARGET_DIR}" -e PAYLOAD_A="${PAYLOAD_A}" -e USER="${USER}" --user "$(id -u)":"$(id -g)" -v "${PWD}:${PWD}" -w "${p}" rust-nightly-extra:latest "$@"

oreboot

Submodule oreboot added at 4229b7f

prepare

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
set -e
4+
cd rust-nightly-extra
5+
docker build -t rust-nightly-extra .

rust-nightly-extra/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM rustlang/rust:nightly AS rust-nightly-with-rust-src
2+
RUN rustup override set nightly-2020-10-25
3+
RUN rustup component add rust-src

0 commit comments

Comments
 (0)