Skip to content

Instantly share code, notes, and snippets.

@cgmb
Created September 18, 2022 20:39
Show Gist options
  • Save cgmb/770297f0662dcb29fcdbb8aee8aee233 to your computer and use it in GitHub Desktop.
Save cgmb/770297f0662dcb29fcdbb8aee8aee233 to your computer and use it in GitHub Desktop.
Working with Debian
#!/bin/sh
apt-get update -y
apt-get upgrade -y
apt-get install -y build-essential devscripts packaging-dev git vim
useradd -G sudo,video --shell /bin/bash --create-home cgmb
echo 'cgmb ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers
gbp clone https://salsa.debian.org/rocm-team/rocm-hipamd.git
cd rocm-hipamd
gbp export-orig
dch --nmu
mk-build-deps --install --root-cmd sudo --remove
git clean -dfx
gbp buildpackage --git-ignore-new
# patch:
gbp pq import
git add -u
git commit -m 'wip'
gbp pq export --commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment