From fd74cef996e7b1b62b1bb635fd64d9be6cabaaab Mon Sep 17 00:00:00 2001 From: Joshua Riek Date: Mon, 2 Dec 2024 13:12:12 -0500 Subject: [PATCH] add readme --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..074a453 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# ubuntu-rockchip-meta + +This package depends on all of the packages in the Ubuntu Server and Desktop system for Rockchip devices. It's also used to help ensure proper upgrades, so it's recommended to not be removed. + +## Building + +First, you need to set up pbuilder, a tool that creates a clean, minimal environment for the build. This ensures that the build will work everywhere and that it's not dependent on something unusual in your own environment. + +Install the following packages on your host system to setup pbuilder: + +```bash +# Update package list +sudo apt-get update + +# Upgrade packages +sudo apt-get upgrade -y + +# Install build dependencies +sudo apt-get install -y pbuilder binfmt-support qemu-user-static qemu-system-arm +``` + +Building the package is quite easy. Change your working directory to the root of the source tree and type the following commands: + +```bash +# Create source package +dpkg-source -b . + +# Create base tarball +sudo pbuilder create --architecture arm64 --mirror http://ports.ubuntu.com/ubuntu-ports --distribution "$(dpkg-parsechangelog -S Distribution)" + +# Build using the base tarball and source package +sudo pbuilder build --architecture arm64 --mirror http://ports.ubuntu.com/ubuntu-ports --distribution "$(dpkg-parsechangelog -S Distribution)" ../*.dsc +```