Created
June 27, 2021 21:37
-
-
Save amachronic/4aa28e42a244f82f1f9d7a21874fb023 to your computer and use it in GitHub Desktop.
x1000 reggen script
This file contains 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
#!/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