-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
coreboot-utils: init at 4.10 #67836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
coreboot-utils: init at 4.10 #67836
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,104 @@ | ||
| { stdenv, fetchurl, zlib, pciutils, coreutils, acpica-tools, iasl, makeWrapper, gnugrep, gnused, file, buildEnv }: | ||
|
|
||
| let | ||
| version = "4.10"; | ||
|
|
||
| meta = with stdenv.lib; { | ||
| description = "Various coreboot-related tools"; | ||
| homepage = "https://www.coreboot.org"; | ||
| license = licenses.gpl2; | ||
| maintainers = [ maintainers.petabyteboy ]; | ||
| platforms = platforms.linux; | ||
| }; | ||
|
|
||
| generic = { pname, path ? "util/${pname}", ... }@args: stdenv.mkDerivation (rec { | ||
| inherit pname version meta; | ||
|
|
||
| src = fetchurl { | ||
| url = "https://coreboot.org/releases/coreboot-${version}.tar.xz"; | ||
| sha256 = "1jsiz17afi2lqg1jv6lsl8s05w7vr7iwgg86y2qp369hcz6kcwfa"; | ||
| }; | ||
|
|
||
| enableParallelBuilding = true; | ||
|
|
||
| postPatch = '' | ||
| cd ${path} | ||
| ''; | ||
|
|
||
| makeFlags = [ | ||
| "INSTALL=install" | ||
| "PREFIX=${placeholder "out"}" | ||
| ]; | ||
| } // args); | ||
|
|
||
| utils = { | ||
| msrtool = generic { | ||
| pname = "msrtool"; | ||
| meta.description = "Dump chipset-specific MSR registers"; | ||
| buildInputs = [ pciutils zlib ]; | ||
| preConfigure = "export INSTALL=install"; | ||
| }; | ||
| cbmem = generic { | ||
| pname = "cbmem"; | ||
| meta.description = "Coreboot console log reader"; | ||
| }; | ||
| ifdtool = generic { | ||
| pname = "ifdtool"; | ||
| meta.description = "Extract and dump Intel Firmware Descriptor information"; | ||
| }; | ||
| intelmetool = generic { | ||
| pname = "intelmetool"; | ||
| meta.description = "Dump interesting things about Management Engine"; | ||
| buildInputs = [ pciutils zlib ]; | ||
| }; | ||
| cbfstool = generic { | ||
| pname = "cbfstool"; | ||
| meta.description = "Management utility for CBFS formatted ROM images"; | ||
| }; | ||
| nvramtool = generic { | ||
| pname = "nvramtool"; | ||
| meta.description = "Read and write coreboot parameters and display information from the coreboot table in CMOS/NVRAM"; | ||
| }; | ||
| superiotool = generic { | ||
| pname = "superiotool"; | ||
| meta.description = "User-space utility to detect Super I/O of a mainboard and provide detailed information about the register contents of the Super I/O"; | ||
| buildInputs = [ pciutils zlib ]; | ||
| }; | ||
| ectool = generic { | ||
| pname = "ectool"; | ||
| meta.description = "Dump the RAM of a laptop's Embedded/Environmental Controller (EC)"; | ||
| meta.platforms = [ "x86_64-linux" "i686-linux" ]; | ||
| preInstall = "mkdir -p $out/sbin"; | ||
| }; | ||
| inteltool = generic { | ||
| pname = "inteltool"; | ||
| meta.description = "Provides information about Intel CPU/chipset hardware configuration (register contents, MSRs, etc)"; | ||
| buildInputs = [ pciutils zlib ]; | ||
| }; | ||
| amdfwtool = generic { | ||
| pname = "amdfwtool"; | ||
| meta.description = "Create AMD firmware combination"; | ||
| installPhase = "install -Dm755 amdfwtool $out/bin/amdfwtool"; | ||
| }; | ||
| acpidump-all = generic { | ||
| pname = "acpidump-all"; | ||
| path = "util/acpi"; | ||
| meta.description = "Walk through all ACPI tables with their addresses"; | ||
| nativeBuildInputs = [ makeWrapper ]; | ||
| dontBuild = true; | ||
| installPhase = "install -Dm755 acpidump-all $out/bin/acpidump-all"; | ||
| postFixup = let | ||
| binPath = [ coreutils acpica-tools iasl gnugrep gnused file ]; | ||
| in "wrapProgram $out/bin/acpidump-all --set PATH ${stdenv.lib.makeBinPath binPath}"; | ||
| }; | ||
| }; | ||
|
|
||
| in utils // { | ||
| coreboot-utils = (buildEnv { | ||
| name = "coreboot-utils-${version}"; | ||
| paths = stdenv.lib.attrValues utils; | ||
| postBuild = "rm -rf $out/sbin"; | ||
| }) // { | ||
| inherit meta version; | ||
| }; | ||
| } | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.