diff --git a/device/testing/device-inet-a33/APKBUILD b/device/testing/device-inet-a33/APKBUILD new file mode 100644 index 000000000..ed9f11646 --- /dev/null +++ b/device/testing/device-inet-a33/APKBUILD @@ -0,0 +1,24 @@ +# Reference: +pkgname=device-inet-a33 +pkgdesc="iNet Tek D70 A33" +pkgver=0.1.0 +pkgrel=0 +url="https://postmarketos.org" +license="GPL-3.0-or-later" +arch="armv7" +options="!check !archcheck" +depends=" + linux-postmarketos-allwinner + postmarketos-base + u-boot-q8-a33-tablet + " +makedepends="devicepkg-dev" +source="deviceinfo" + +package() { + devicepkg_package $startdir $pkgname +} + +sha512sums=" +193989891fc9eb720006685281051fa36270e6043387317527d4a82630cb623eb43d4355bfb2ac3b9fb13a18a09ac38f6fe60cc5cb8ca7b0bf4ce4cec85dfe31 deviceinfo +" diff --git a/device/testing/device-inet-a33/deviceinfo b/device/testing/device-inet-a33/deviceinfo new file mode 100644 index 000000000..f1ee06694 --- /dev/null +++ b/device/testing/device-inet-a33/deviceinfo @@ -0,0 +1,26 @@ +# Reference: +# Please use double quotes only. You can source this file in shell +# scripts. + +deviceinfo_format_version="0" +deviceinfo_manufacturer="iNet Tek" +deviceinfo_name="iNet Tek D70 A33" +deviceinfo_codename="inet-a33" +deviceinfo_year="2014" +deviceinfo_dtb="sun8i-a33-q8-tablet" +deviceinfo_arch="armv7" + +# Device related +deviceinfo_gpu_accelerated="true" +deviceinfo_chassis="tablet" +deviceinfo_keyboard="false" +deviceinfo_external_storage="true" +deviceinfo_screen_width="1024" +deviceinfo_screen_height="600" +deviceinfo_getty="ttyS0;115200" + +# Bootloader related +deviceinfo_flash_method="none" +deviceinfo_generate_extlinux_config="true" +deviceinfo_kernel_cmdline="console=null" +deviceinfo_sd_embed_firmware="u-boot/q8-a33/u-boot-sunxi-with-spl.bin:8" diff --git a/main/u-boot-q8-a33-tablet/APKBUILD b/main/u-boot-q8-a33-tablet/APKBUILD new file mode 100644 index 000000000..f17db4657 --- /dev/null +++ b/main/u-boot-q8-a33-tablet/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: +# Maintainer: +pkgname=u-boot-q8-a33-tablet +pkgver=2023.01 +pkgrel=0 +pkgdesc="U-Boot bootloader for the Q8 A33 Tablet" +url="https://source.denx.de/u-boot" +arch="armv7" +license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs + ISC LGPL-2.0-only LGPL-2.1-only X11" +depends="linux-postmarketos-allwinner>=5.12" +makedepends="$depends_dev + bc + bison + dtc + flex + openssl-dev + py3-setuptools + python3-dev + swig + " +options="!check" +source="https://source.denx.de/u-boot/u-boot/-/archive/v$pkgver/u-boot-v$pkgver.tar.gz" +builddir="$srcdir/u-boot-v$pkgver" + +build() { + touch include/config.h + LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h + LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h + export BUILD_DIR="$builddir"/build + + make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm q8_a33_tablet_1024x600_defconfig + make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm all + sha512sum -b "$BUILD_DIR/u-boot-sunxi-with-spl.bin" > "$BUILD_DIR/u-boot-sunxi-with-spl.bin.sha512" +} + +package() { + install -D -m644 "build/u-boot-sunxi-with-spl.bin" \ + "$pkgdir/usr/share/u-boot/q8-a33/u-boot-sunxi-with-spl.bin" + install -D -m644 "build/u-boot-sunxi-with-spl.bin.sha512" \ + "$pkgdir/usr/share/u-boot/q8-a33/u-boot-sunxi-with-spl.bin.sha512" +} +sha512sums=" +c25aae1b0d2f677d295587c6d318f23d52bc3a79e968bed9093645943a9840c56b1f6f44e5649d236e76e3dc85f0473c1da4a5205c02dcf437bca820acaf6fb8 u-boot-v2023.01.tar.gz +"