aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@posteo.net>2023-12-27 20:39:10 +0100
committerMilan P. Stanić <mps@arvanta.net>2024-01-02 19:10:30 +0000
commit9cd3b1bec419c1ec69eedddc68c3a3f834687370 (patch)
tree66faa32b7954117ecc5bf5365c0f3931472f1c0a
parentb1e4d523a4d8cb802c466dee22587c6197798b50 (diff)
community/avr-libc: update I/O headers from vendor toolchain
Both the avr-libc in the latest release and in the current HEAD in the repo the vendor header files are pretty outdated. They are missing I/O descriptions for more recently released MCUs as well as headers with missing types and defines for e.g. ATXmega1281U. Updating them fixes the issue.
-rw-r--r--community/avr-libc/APKBUILD18
1 files changed, 16 insertions, 2 deletions
diff --git a/community/avr-libc/APKBUILD b/community/avr-libc/APKBUILD
index 23f5b384c3d..b68b9831ef3 100644
--- a/community/avr-libc/APKBUILD
+++ b/community/avr-libc/APKBUILD
@@ -2,7 +2,8 @@
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=avr-libc
pkgver=2.1.0
-pkgrel=3
+_atmelver=3.7.0.1796
+pkgrel=4
pkgdesc="The C runtime library for the AVR family of microcontrollers"
url="https://github.com/avrdudes/avr-libc"
depends="gcc-avr"
@@ -11,7 +12,19 @@ arch="x86_64 ppc64le aarch64 x86"
license="BSD-3-Clause"
subpackages="$pkgname-doc"
builddir="$srcdir/$pkgname-$pkgname-${pkgver//./_}-release"
-source="avr-libc-$pkgver.tar.gz::https://github.com/avrdudes/avr-libc/archive/refs/tags/avr-libc-${pkgver//./_}-release.tar.gz"
+source="
+ avr-libc-$pkgver.tar.gz::https://github.com/avrdudes/avr-libc/archive/refs/tags/avr-libc-${pkgver//./_}-release.tar.gz
+ https://ww1.microchip.com/downloads/aemDocuments/documents/DEV/ProductDocuments/SoftwareTools/avr8-gnu-toolchain-$_atmelver-linux.any.x86_64.tar.gz
+ "
+
+prepare() {
+ default_prepare
+
+ # Updating I/O header files from Atmel toolchain
+ find ../avr8-gnu-toolchain-linux_x86_64/avr/include/avr \
+ -name 'io*.h' \
+ -exec cp {} include/avr/ \;
+}
build() {
./bootstrap
@@ -32,4 +45,5 @@ package() {
sha512sums="
b9b5702e3770fb76a9b6b405a744120c2b127032424caff6e002b4d21a04a293607da2bb36cb797cbcdf0209e851e858a192d9b2c812e6c6bf8e54ec18ae1beb avr-libc-2.1.0.tar.gz
+25739df6277f644cac00460f5ac42707f43a841902f23fb7632c9c7aeec89302340b3cc7c4e90a994e400a1d6f6f37804fee0c5cd95320e9d725a24de8127a1f avr8-gnu-toolchain-3.7.0.1796-linux.any.x86_64.tar.gz
"