2018-02-16 17:28:55 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-11-23 12:26:05 +01:00
|
|
|
LINUX_BRANCH=rpi-6.6.y
|
2018-02-16 17:28:55 +01:00
|
|
|
|
|
|
|
# this is a huge hunk of stuff, so reuse the local repo if possible
|
|
|
|
if [ -d linux/.git ]; then
|
Accepting request 707760 from home:Guillaume_G:branches:hardware:boot
- Switch branch to 'rpi-5.1.y' to match the kernel version
- Update to f1d85e3870 (2019-06-03):
* remove 3dlab-nano-player, upstream-aux-interrupt (deprecated
and no more needed)
* add draws, i-sabre-q2m, ilitek251x, iqaudio-codec, max98357a,
piglow, udrc
- Handle properly the branch switch in get-from-git.sh script
- Switch branch to 'rpi-5.0.y' to match the kernel version
- Remove upstreamed patch:
* upstream-rpi-ft5406-overlay.patch
- Update to 00794df91 (2019-03-06):
* remove adv7282m, adv728x-m, ov5647, tc358743 and tc358743-audio
* update balena-fin
- Include README file for overlays as it contains useful information
OBS-URL: https://build.opensuse.org/request/show/707760
OBS-URL: https://build.opensuse.org/package/show/hardware:boot/raspberrypi-firmware-dt?expand=0&rev=20
2019-06-12 14:30:14 +02:00
|
|
|
set -e
|
2018-02-16 17:28:55 +01:00
|
|
|
cd linux
|
|
|
|
git remote update
|
Accepting request 707760 from home:Guillaume_G:branches:hardware:boot
- Switch branch to 'rpi-5.1.y' to match the kernel version
- Update to f1d85e3870 (2019-06-03):
* remove 3dlab-nano-player, upstream-aux-interrupt (deprecated
and no more needed)
* add draws, i-sabre-q2m, ilitek251x, iqaudio-codec, max98357a,
piglow, udrc
- Handle properly the branch switch in get-from-git.sh script
- Switch branch to 'rpi-5.0.y' to match the kernel version
- Remove upstreamed patch:
* upstream-rpi-ft5406-overlay.patch
- Update to 00794df91 (2019-03-06):
* remove adv7282m, adv728x-m, ov5647, tc358743 and tc358743-audio
* update balena-fin
- Include README file for overlays as it contains useful information
OBS-URL: https://build.opensuse.org/request/show/707760
OBS-URL: https://build.opensuse.org/package/show/hardware:boot/raspberrypi-firmware-dt?expand=0&rev=20
2019-06-12 14:30:14 +02:00
|
|
|
# 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) )
|
2018-02-16 17:28:55 +01:00
|
|
|
cd ..
|
Accepting request 707760 from home:Guillaume_G:branches:hardware:boot
- Switch branch to 'rpi-5.1.y' to match the kernel version
- Update to f1d85e3870 (2019-06-03):
* remove 3dlab-nano-player, upstream-aux-interrupt (deprecated
and no more needed)
* add draws, i-sabre-q2m, ilitek251x, iqaudio-codec, max98357a,
piglow, udrc
- Handle properly the branch switch in get-from-git.sh script
- Switch branch to 'rpi-5.0.y' to match the kernel version
- Remove upstreamed patch:
* upstream-rpi-ft5406-overlay.patch
- Update to 00794df91 (2019-03-06):
* remove adv7282m, adv728x-m, ov5647, tc358743 and tc358743-audio
* update balena-fin
- Include README file for overlays as it contains useful information
OBS-URL: https://build.opensuse.org/request/show/707760
OBS-URL: https://build.opensuse.org/package/show/hardware:boot/raspberrypi-firmware-dt?expand=0&rev=20
2019-06-12 14:30:14 +02:00
|
|
|
set +e
|
2018-02-16 17:28:55 +01:00
|
|
|
else
|
|
|
|
set -e
|
Accepting request 707760 from home:Guillaume_G:branches:hardware:boot
- Switch branch to 'rpi-5.1.y' to match the kernel version
- Update to f1d85e3870 (2019-06-03):
* remove 3dlab-nano-player, upstream-aux-interrupt (deprecated
and no more needed)
* add draws, i-sabre-q2m, ilitek251x, iqaudio-codec, max98357a,
piglow, udrc
- Handle properly the branch switch in get-from-git.sh script
- Switch branch to 'rpi-5.0.y' to match the kernel version
- Remove upstreamed patch:
* upstream-rpi-ft5406-overlay.patch
- Update to 00794df91 (2019-03-06):
* remove adv7282m, adv728x-m, ov5647, tc358743 and tc358743-audio
* update balena-fin
- Include README file for overlays as it contains useful information
OBS-URL: https://build.opensuse.org/request/show/707760
OBS-URL: https://build.opensuse.org/package/show/hardware:boot/raspberrypi-firmware-dt?expand=0&rev=20
2019-06-12 14:30:14 +02:00
|
|
|
git clone -b $LINUX_BRANCH --depth 1 --no-single-branch https://github.com/raspberrypi/linux.git
|
2018-02-16 17:28:55 +01:00
|
|
|
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
|
2022-05-02 14:02:50 +02:00
|
|
|
LINE=$(git log --format=format:"%h %ci" -- ${SOURCES}|head -n 1)
|
2018-02-16 17:28:55 +01:00
|
|
|
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
|