Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 50754225844 for <~alpine/devel@lists.alpinelinux.org>; Tue, 28 Jan 2025 09:43:57 +0000 (UTC) Received: by mail-qv1-xf33.google.com with SMTP id 6a1803df08f44-6d92e457230so52641536d6.1 for <~alpine/devel@lists.alpinelinux.org>; Tue, 28 Jan 2025 01:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738057436; x=1738662236; darn=lists.alpinelinux.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=v6rx9QfzrbcnLxyaU12zhkf54SgDNhVNf7L0xrT/E5g=; b=ZbUSsM/Om6dvR+2ZD33psr7ZGSxV6qJTZlD7xwVsdh/b5ocTDleS/gxpMaaJvFJDfT /Uq36M3/ffm9YrNl0U8ib8dLxDcxd2aekMEDSHbKeiVoiY4dM23y5L5HDVtvm1PXj7jR RYFfp+tL7p81PkCQ3eeQHy8hk33bht/8ZhL6RN2OuzKFu4xI8Fe3WxlJuoYG+p4HOcbt 4kQ5MUZZ8owy3OLBhC2TGHBPQtJcfmNUMZK33uTxx6NBhSeQRYHANiRM8GKLAejM/yCH d68yBmQ07YW5nEG4m8bdr36rtDHg5dQxiqaHpaW22NKxwlAb2XjznZveA2lB6g6VLHwt ofWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738057436; x=1738662236; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v6rx9QfzrbcnLxyaU12zhkf54SgDNhVNf7L0xrT/E5g=; b=Z5nbUW06HoWu7s81U/Wt4dTERNupfCupJRoVva5uHfZNxdvK/76G44609w39HfYXX2 xgJnu5PtpzRp8hdnVp9GuyRdwk16N3mpFqlGmDgGP1ayMhakfW0KLr6b/J/ZRJ6s87IJ KGHHak3lEZxvDGpY9uA+5RDFsMUdXGgbmawwuoKR5std0ZvzwGKo3trAS7VjQwTQThYX Byt2trZXFCMYhIF7EYmvUuCkydNt+4m4cUwzWwnEd7fQt4L8nXDlOS9Rs8hOrOYLNR9e tqBrMmN4w93azJSmxq9VhM0YNZyqntQMXMtZiNAGsFSqhOqOxeYnGwcsdn9yv9Ol6tOF NeSw== X-Gm-Message-State: AOJu0YxuvuG3ZC8zjUtF++mqaECKecTrkTD3COG4PzqYzNxiqqpuX3sw WxUFG8rXBifmZ/CcaF0g/p87Gz9Pjx+y3xL5Ai4z1ruJoauY1eyySnnh0WTeMEhyHzkuXcCT80W 0NTXWMKbsU7qgMzKa6oXmkEPWjux8kg== X-Gm-Gg: ASbGncvhbeB148IwFZc9B/G3a/qQDSVoGuGgx3Ny1fvcOil1ZmJbvZToIgS0gNDAun2 jFzS2X87MZVUF3ODPoesDIkTeVjYodymcppK0fqcz4PbeF5HSVurZ8TjDiqVL0gXIzccYPmEKAg == X-Google-Smtp-Source: AGHT+IHUGOY3TPlluWffEY+Oky0G/Yo3mI8Y6ppicGp9rjHhUWmHOtL/wxekPAio8HSZ/3zunibFRBmGKV4ODT7NMQM= X-Received: by 2002:a05:6214:2466:b0:6df:9771:97a6 with SMTP id 6a1803df08f44-6e1b215a59bmr697911286d6.15.1738057436022; Tue, 28 Jan 2025 01:43:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Martin Date: Tue, 28 Jan 2025 10:43:44 +0100 X-Gm-Features: AWEUYZnI66t9ilhK8_84wbflE5duEs-YG2c2nVRlOfYOgWvKGm0MP7XZilKafsg Message-ID: Subject: main/u-boot-rockchip: Add board, which requires TPL blob To: ~alpine/devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Hi, I would like to add support for the Radxa Zero 3E [1] to main/u-boot-rockchip. U-Boot requires an additional TPL (third program loader) for this board. The TPL (and more) can be found at [2], which I would like to package first. For boards requiring such a TPL, one has to set the ROCKCHIP_TPL variable referencing the TPL when building U-Boot. Due to this I would call the package "rockchip-tpl". Anyone could tell me, if that [3] is an MIT license? I tried arch="aarch64" before, as U-Boot requires the TPL to boot aarch64. Imho, they don't make much sense on i. e. "x86-64" other than cross-building U-Boot. Though, they're identified as "data" only and abuild said, that "noarch" would be better. Should I stick to "noarch"? Below you can find the APKBUILD I've screwed up so far. (Copy'n'paste just replaced the tabs.) Cheers, Daniel Martin [1] http://radxa.com/products/zeros/zero3e/ [2] https://github.com/rockchip-linux/rkbin [3] https://github.com/rockchip-linux/rkbin/blob/master/LICENSE -----8< APKBUILD 8<----- pkgname=rockchip-tpl pkgver=20241209 # date of the commit pkgrel=0 pkgdesc="Third Program Loader for RK3308, RK3568 and RK3588" url="https://github.com/rockchip-linux/rkbin" commit="0f8ac860f0479da56a1decae207ddc99e289f2e2" arch="noarch" # XXX license="MIT" # XXX: https://github.com/rockchip-linux/rkbin/blob/master/LICENSE options="!check" # no tests source="rkbin-$commit.tar.gz::https://github.com/rockchip-linux/rkbin/archive/$commit.tar.gz" # TPLs referenced in U-Boot documentation, roughly: # grep -r export.ROCKCHIP_TPL u-boot/doc/board | cut -f2 -d= tpls="bin/rk33/rk3308_ddr_589MHz_uart?_m?_v*.bin bin/rk35/rk3568_ddr_1056MHz_v*.bin bin/rk35/rk3568_ddr_1560MHz_v*.bin bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v*.bin bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_eyescan_v*.bin" package() { mkdir -p "$pkgdir"/usr/share/$pkgname cd "$srcdir"/rkbin-$commit for bin in $tpls; do fname="${bin##*/}" lname="${fname/_v*/.bin}" install $bin "$pkgdir"/usr/share/$pkgname/$fname # link name without version as a more stable reference ln -s $fname "$pkgdir"/usr/share/$pkgname/$lname done } sha512sums=" 4287fb19042e9b090e8eb51287eef289224c6ae95f6bc3e9040eaa4d783a28e377685e4d32a984b8a49ab5bd95b885248e910a644d088d679b4cdd94cd735de9 rkbin-0f8ac860f0479da56a1decae207ddc99e289f2e2.tar.gz " ----->8 APKBUILD >8-----