Skip to content

Instantly share code, notes, and snippets.

@amachronic
Created June 27, 2021 21:37
Show Gist options
  • Save amachronic/4aa28e42a244f82f1f9d7a21874fb023 to your computer and use it in GitHub Desktop.
Save amachronic/4aa28e42a244f82f1f9d7a21874fb023 to your computer and use it in GitHub Desktop.
x1000 reggen script
#!/bin/bash
r="$HOME/projects/rockbox"
s="$r/utils/reggen-ng"
d="$r/firmware/target/mips/ingenic_x1000/x1000"
xml="/tmp/regs.xml"
"$s"/reggen-ng.py < "$s"/x1000.reggen > "$xml"
[ $? -eq 0 ] || exit 1
rm -rf "$d"
"$r"/utils/regtools/headergen_v2 -o "$d" -g jz "$xml"
# NOTE: you need to run "make" in utils/regtools to build headergen_v2 before running this script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment