Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

2022-03-07

Compiling OVMF on Debian

How to compile OvmfPkg of TianoCore's EDK II on Debian:

  1. sudo apt install build-essential gcc git iasl nasm uuid-dev
  2. mkdir ~/src; cd ~/src
  3. git clone https://github.com/tianocore/edk2; cd edk2 (compilation issues concerning brotli have been fixed with pull #2514)
  4. git submodule update --init
  5. make -C BaseTools
  6. . edksetup.sh
  7. Edit ./Conf/target.txt:
    ACTIVE_PLATFORM = OvmfPkg/OvmfPkgX64.dsc
    TARGET = RELEASE
    TARGET_ARCH = X64
    TOOL_CHAIN_TAG = GCC5
  8. build (to compile with Secure Boot enabled, append -D SECURE_BOOT_ENABLE - though it doesn't seem to work without manually adding keys to OVMF_VARS.fd)
  9. FD located in ./Build/OvmfPkg/RELEASE_GCC5/FV
(This is more of a reference for myself than anything else.)

2020-08-24

`zmv` Is Awesome

    BEHOLD! I have awaken from my year-long slumber to grace ye feeble peasants with glorious and other such wondrous things.

    Today, I'd like to shed light on a rather interesting little program: `zmv`. Included with the Z shell, or "zsh", `zmv` allows the user to move files and folders neatly about by following simple-to-use patterns. For example, let's say I've just downloaded an album off of LimeWire with its files in the format of "Artist name - Album title - Track # Track name.flac". It would be rather time-consuming to individually rename each and every file to the desired format of "Artist/Album/# Track.flac", no?

    With `zmv`, I simply need to run `zmv '(*) - (*) - (*)' '$1/$2/$3'`, and shabam-a-lama! My files have moved to perfectly organized directories and subdirectories. How wonderful! How superb!

    And with that, I'm off again. See you all in 2021, I suppose.