raspberrypi-firmware-dt/get-from-git.sh

40 lines
1.2 KiB
Bash
Raw Permalink Normal View History

#!/bin/bash
LINUX_BRANCH=rpi-6.6.y
# this is a huge hunk of stuff, so reuse the local repo if possible
if [ -d linux/.git ]; then
set -e
cd linux
git remote update
# Check we are on the right branch, otherwise clone the right one
git checkout origin/$LINUX_BRANCH || (cd .. && (echo "ERROR: Please remove the linux folder as we cannot switch to $LINUX_BRANCH branch"; exit 1) )
cd ..
set +e
else
set -e
git clone -b $LINUX_BRANCH --depth 1 --no-single-branch https://github.com/raspberrypi/linux.git
set +e
fi
TOPDIR=$(pwd)
# Copy device tree files
SOURCES="COPYING arch/arm/boot/dts arch/arm64/boot/dts/broadcom/*bcm27* scripts/dtc/include-prefixes/ include"
cd linux
Accepting request 973591 from home:iivanov:branches:hardware:boot - Use last patch commit date instead patch creation date when creating device tree archive and package version. Patch creation date could be much earlier than patch commit date, which could mislead which patches are included inside the package. For example: commit 7e72dd813a175ea7bf166655217ce60fbd7d4a21 Author: Dom Cobley <popcornmix@gmail.com> AuthorDate: Tue Oct 19 14:15:45 2021 +0100 Commit: Dom Cobley <popcornmix@gmail.com> CommitDate: Mon Nov 29 16:26:09 2021 +0000 dt: Move VEC clock to clk-raspberrypi Package which contain this commit was named 2021.11.19 while obviously it has changes from 2021.11.29. - Update to da91801ca1 (2022-04-24) * overlays: Fix pitft28/35-resistive rotate params * ARM: dts: Add i2c0mux node to Model B rev 1 * overlays: Add "drm" parameter to pitft28-resistive * overlays: mipi-dbi-spi: width-mm and height-mm are mandatory * Add support for the AudioInjector.net bare i2s sound card * dtoverlays: Add overlay for Sony IMX258 image sensor * ARM: dts: Enable PMU on Cortex-A72 in AArch32 state * overlays/rpi-display: Add support for DRM driver * Revert "update rpi-display-overlay.dts pins for 5.10+" * overlays: Add overlay for MIPI DBI displays * dtoverlays: Connect the backlight to the pitft35 display * overlays: iqs550: Enable interrupt pull-down * CM1&3 cam1_reg and cam1_reg_gpio fix * dtoverlay: Add VCM option to ov5647 overlay * dtoverlays: Add VCM option to imx219 * ARM: dts: bcm2711-rpi-ds: Disable the BCM2835 STC OBS-URL: https://build.opensuse.org/request/show/973591 OBS-URL: https://build.opensuse.org/package/show/hardware:boot/raspberrypi-firmware-dt?expand=0&rev=89
2022-05-02 14:02:50 +02:00
LINE=$(git log --format=format:"%h %ci" -- ${SOURCES}|head -n 1)
set -- $LINE
REV=$1
DATE=$2
VER=${DATE//-/.}
set -e
git archive --prefix=raspberrypi-firmware-dt-$VER/ -o $TOPDIR/raspberrypi-firmware-dt-${VER}.tar HEAD -- ${SOURCES}
cd ..
osc rm -f raspberrypi-firmware-dt-*.tar.xz || true
xz --force raspberrypi-firmware-dt-${VER}.tar
osc add raspberrypi-firmware-dt-${VER}.tar.xz
sed -i "s/^Version:.*/Version: $VER/" raspberrypi-firmware-dt.spec
osc vc raspberrypi-firmware-dt -m "Update to $REV ($DATE)"
sh pre_checkin.sh