File tree 9 files changed +45
-2
lines changed
9 files changed +45
-2
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "oreboot "]
2
+ path = oreboot
3
+ url = https://github.com/oreboot/oreboot.git
Original file line number Diff line number Diff line change 1
1
BSD 2-Clause License
2
2
3
- Copyright (c) 2021, Danny
3
+ Copyright (c) 2021, Danny Milosavljevic
4
4
All rights reserved.
5
5
6
6
Redistribution and use in source and binary forms, with or without
Original file line number Diff line number Diff line change 1
1
# 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
Original file line number Diff line number Diff line change
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 " $@ "
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ exec " ` dirname \" $0 \" ` " /in-rust-nightly " $@ "
Original file line number Diff line number Diff line change
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 " $@ "
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -e
4
+ cd rust-nightly-extra
5
+ docker build -t rust-nightly-extra .
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments