Improve readmes
This commit is contained in:
17
README.md
17
README.md
@ -3,11 +3,12 @@
|
|||||||
System76 Open Source Firmware
|
System76 Open Source Firmware
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
- [Applications](./apps/)
|
|
||||||
- [coreboot README](./coreboot/)
|
- [apps](./apps) - Applications
|
||||||
- [edk2](./edk2/)
|
- [coreboot](https://github.com/system76/coreboot.git) - coreboot README
|
||||||
- [edk2-platforms](./edk2-platforms/)
|
- [edk2](https://github.com/system76/edk2.git) - EDK II Project
|
||||||
- [Libraries](./libs/)
|
- [edk2-platforms](https://github.com/system76/edk2-platforms.git) - **EDK II Minimum Platform Firmware for Intel(R) Platforms**
|
||||||
- [Models](./models/)
|
- [libs](./libs) - Libraries
|
||||||
- [scripts](./scripts/)
|
- [models](./models) - Models
|
||||||
- [Tools](./tools/)
|
- [scripts](./scripts)
|
||||||
|
- [tools](./tools) - Tools
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# Applications
|
# Applications
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
- [System76 Firmware Setup](./firmware-setup/)
|
|
||||||
- [System76 Firmware Update](./firmware-update/)
|
- [firmware-setup](https://github.com/system76/firmware-setup.git) - System76 Firmware Setup
|
||||||
|
- [firmware-update](https://github.com/system76/firmware-update.git) - System76 Firmware Update
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Libraries
|
# Libraries
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
- [coreboot-table](./coreboot-table/)
|
|
||||||
- [ecflash](./ecflash/)
|
- [coreboot-table](https://gitlab.redox-os.org/redox-os/coreboot-table.git) - coreboot-table
|
||||||
- [intelflash](./intelflash/)
|
- [ecflash](https://github.com/system76/ecflash.git) - ecflash
|
||||||
- [intel-spi](./intel-spi/)
|
- [intelflash](https://gitlab.redox-os.org/redox-os/intelflash.git) - intelflash
|
||||||
- [uefi](./uefi/)
|
- [intel-spi](https://github.com/system76/intel-spi.git) - intel-spi
|
||||||
- [uefi_alloc](./uefi_alloc/)
|
- [uefi](https://gitlab.redox-os.org/redox-os/uefi.git)
|
||||||
- [uefi_std](./uefi_std/)
|
- [uefi_alloc](https://gitlab.redox-os.org/redox-os/uefi_alloc.git)
|
||||||
|
- [uefi_std](https://gitlab.redox-os.org/redox-os/uefi_std.git) - uefi_std
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
# Models
|
# Models
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
- [System76 Darter Pro (darp5)](./darp5/)
|
|
||||||
- [System76 Galago Pro (galp2)](./galp2/)
|
- [darp5](./darp5) - System76 Darter Pro (darp5)
|
||||||
- [System76 Galago Pro (galp3)](./galp3/)
|
- [galp2](./galp2) - System76 Galago Pro (galp2)
|
||||||
- [System76 Galago Pro (galp3-b)](./galp3-b/)
|
- [galp3](./galp3) - System76 Galago Pro (galp3)
|
||||||
- [System76 Galago Pro (galp3-c)](./galp3-c/)
|
- [galp3-b](./galp3-b) - System76 Galago Pro (galp3-b)
|
||||||
|
- [galp3-c](./galp3-c) - System76 Galago Pro (galp3-c)
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
https://system76.com/guides/darp5
|
https://system76.com/guides/darp5
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
- [EC](./ec.rom)
|
- [EC](./ec.rom)
|
||||||
- Size: 128 KB
|
- Size: 128 KB
|
||||||
- Model: N150ZU
|
- Model: N150ZU
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
https://system76.com/guides/galp2
|
https://system76.com/guides/galp2
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
- [EC](./ec.rom)
|
- [EC](./ec.rom)
|
||||||
- Size: 128 KB
|
- Size: 128 KB
|
||||||
- Model: N130BU
|
- Model: N130BU
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
https://system76.com/guides/galp3
|
https://system76.com/guides/galp3
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
- [EC](./ec.rom)
|
- [EC](./ec.rom)
|
||||||
- Size: 128 KB
|
- Size: 128 KB
|
||||||
- Model: N140WU
|
- Model: N140WU
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
https://system76.com/guides/galp3
|
https://system76.com/guides/galp3
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
- [EC](./ec.rom)
|
- [EC](./ec.rom)
|
||||||
- Size: 128 KB
|
- Size: 128 KB
|
||||||
- Model: N130ZU
|
- Model: N130ZU
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
https://system76.com/guides/galp3
|
https://system76.com/guides/galp3
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
- [EC](./ec.rom)
|
- [EC](./ec.rom)
|
||||||
- Size: 128 KB
|
- Size: 128 KB
|
||||||
- Model: N130WU
|
- Model: N130WU
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
cargo build --manifest-path "scripts/modeltool/Cargo.toml" --release
|
|
||||||
|
|
||||||
MODELTOOL="$(realpath "scripts/modeltool/target/release/modeltool")"
|
|
||||||
|
|
||||||
for dir in models/*/
|
|
||||||
do
|
|
||||||
pushd "$dir" > /dev/null
|
|
||||||
model="$(basename "$dir")"
|
|
||||||
echo -e "\x1B[1m$model\x1B[0m"
|
|
||||||
cp README.md.in README.md
|
|
||||||
echo "## Firmware Versions" >> README.md
|
|
||||||
"$MODELTOOL" . | tee -a README.md
|
|
||||||
popd > /dev/null
|
|
||||||
done
|
|
@ -22,6 +22,7 @@ function readme_model {
|
|||||||
|
|
||||||
echo >> README.md
|
echo >> README.md
|
||||||
echo "## Contents" >> README.md
|
echo "## Contents" >> README.md
|
||||||
|
echo >> README.md
|
||||||
"$MODELTOOL" . >> README.md
|
"$MODELTOOL" . >> README.md
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
}
|
}
|
||||||
@ -34,24 +35,25 @@ done
|
|||||||
function readme_line {
|
function readme_line {
|
||||||
echo -e " \x1B[1m$1\x1B[0m" >&2
|
echo -e " \x1B[1m$1\x1B[0m" >&2
|
||||||
|
|
||||||
if [ -f "$1/README.md" ]
|
name="$(basename "$1")"
|
||||||
|
description=""
|
||||||
|
|
||||||
|
readme="$(find "$1" -maxdepth 1 -iname README.md)"
|
||||||
|
if [ -n "$readme" ]
|
||||||
then
|
then
|
||||||
# Get first line, removing the trailing pounds and spaces
|
# Get first line, removing the trailing pounds and spaces
|
||||||
description="$(head -n 1 "$1/README.md" | sed -e 's/^[#[:space:]]*//')"
|
description=" - $(head -n 1 "$readme" | sed -e 's/^[#[:space:]]*//')"
|
||||||
else
|
|
||||||
# Use the directory name as the description
|
|
||||||
description="$(basename "$1")"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
submodule="$(git submodule status "$1" 2> /dev/null | cut -d ' ' -f 3 || true)"
|
submodule="$(git submodule status "$1" 2> /dev/null | cut -d ' ' -f 3 || true)"
|
||||||
if [ "$submodule" == "$dir" ]
|
if [ "$submodule" == "$1" ]
|
||||||
then
|
then
|
||||||
# Link to submodule URL
|
# Link to submodule URL
|
||||||
origin="$(git -C "$dir" remote get-url origin)"
|
origin="$(git -C "$1" remote get-url origin)"
|
||||||
echo "- [$description]($origin)"
|
echo "- [$name]($origin)$description"
|
||||||
else
|
else
|
||||||
# Link to directory
|
# Link to directory
|
||||||
echo "- [$description](./$dir)"
|
echo "- [$name](./$1)$description"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,6 +65,7 @@ function readme_dir {
|
|||||||
|
|
||||||
echo >> README.md
|
echo >> README.md
|
||||||
echo "## Contents" >> README.md
|
echo "## Contents" >> README.md
|
||||||
|
echo >> README.md
|
||||||
for dir in */
|
for dir in */
|
||||||
do
|
do
|
||||||
readme_line "${dir%/}" >> README.md
|
readme_line "${dir%/}" >> README.md
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
# Tools
|
# Tools
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
- [coreboot-collector](./coreboot-collector/)
|
|
||||||
- [ME Analyzer](./MEAnalyzer/)
|
- [coreboot-collector](https://github.com/system76/coreboot-collector.git) - coreboot-collector
|
||||||
- [UEFITool](./UEFITool/)
|
- [MEAnalyzer](https://github.com/platomav/MEAnalyzer.git) - ME Analyzer
|
||||||
- [Intel ME 11.x Firmware Images Unpacker](./unME11/)
|
- [UEFITool](https://github.com/LongSoft/UEFITool.git) - UEFITool
|
||||||
- [Intel ME 12.x Firmware Images Unpacker](./unME12/)
|
- [unME11](https://github.com/ptresearch/unME11.git) - Intel ME 11.x Firmware Images Unpacker
|
||||||
|
- [unME12](https://github.com/ptresearch/unME12.git) - Intel ME 12.x Firmware Images Unpacker
|
||||||
|
Reference in New Issue
Block a user