Skip to content
Snippets Groups Projects
Commit abafe13e authored by tim's avatar tim
Browse files

radxa-zero: new device

parent 217643fe
No related branches found
No related tags found
No related merge requests found
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Timothy Valldeperas <tvall43@gmail.com>
pkgname=device-radxa-zero
pkgver=1
pkgrel=0
pkgdesc="Radxa Zero"
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-radxa-zero mesa-dri-gallium"
makedepends="devicepkg-dev"
source="deviceinfo
extlinux.conf
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -D -m644 "$srcdir"/extlinux.conf \
"$pkgdir"/boot/extlinux/extlinux.conf
}
sha512sums="
34a34286823b40f546c33912f5710a3027e7d9c9f485b543b422235ea5ba319f89feb4053733cc6dacb53abe5a2af64fb9f5858ad0c54006747245be500618f8 deviceinfo
883da28a9181b3d5799d31f69b16aca6f2811cfe3911ab4ab04f34f6b1867446a7e698d68c0588851e285baca4792a83f51b68947eb0f192badd44aa0b3d77b9 extlinux.conf
"
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="Radxa Zero"
deviceinfo_manufacturer="Radxa"
deviceinfo_codename="radxa-zero"
deviceinfo_year="2021"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_gpu_accelerated="true"
deviceinfo_chassis="embedded"
deviceinfo_keyboard="true"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1920"
deviceinfo_screen_height="1080"
# Bootloader related
deviceinfo_flash_method="none"
timeout 10
default POSTMARKETOS
menu title boot prev kernel
label POSTMARKETOS
kernel /vmlinuz
fdt /dtbs/amlogic/meson-g12a-radxa-zero.dtb
initrd /initramfs
append console=tty0 console=ttyAML0,115200n8 panic=10 coherent_pool=2M loglevel=5
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/g12a_defconfig)
pkgname=linux-radxa-zero
pkgver=5.17.8
pkgrel=0
pkgdesc="radxa zero kernel"
arch="aarch64"
_carch="arm64"
_flavor="radxa-zero"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
bash
bc
bison
devicepkg-dev
findutils
flex
installkernel
openssl-dev
perl
rsync
gzip
xz
gmp-dev
mpc1-dev
mpfr-dev
"
# Source
_config="config-$_flavor.$arch"
case $pkgver in
*.*.*) _kernver=${pkgver%.0};;
*.*) _kernver=$pkgver;;
esac
source="
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
$_config
"
builddir="$srcdir/linux-$_kernver"
prepare() {
default_prepare
REPLACE_GCCH=0 . downstreamkernel_prepare
}
build() {
unset LDFLAGS
make ARCH="$_carch" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
make -j1 modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_MOD_STRIP=1 \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs/"
gzip -v "$pkgdir"/boot/vmlinuz
mv "$pkgdir"/boot/vmlinuz.gz "$pkgdir"/boot/vmlinuz
}
sha512sums="
032feea7138d0b9b016a50769e6f10889e0ec8cb532569b1aaecac957211e60cc9207aa6ac2bb379c967c8322f8ccb19d2834bf1f88c03d0774b087e08a9a22a linux-5.17.8.tar.xz
26cc27b6e55e05abd049cfcac08ff24fee2b81c680aa0c317d0818348ee507a93e1c3547235fd73831c2cc548544439afb94ae0e89e4db3abc84a3915aa82c64 config-radxa-zero.aarch64
"
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment