overlay/armv6j-do-kernel-bump.sh

47 lines
1.7 KiB
Bash
Raw Normal View History

2012-01-01 21:52:10 +01:00
#!/bin/sh
2013-10-29 18:26:14 +01:00
if [ -z "$5" ]; then
echo armv5tel-do-kernel-bump.sh OLDVER NEWVER GEN_PATCHES_VER NAS_PATCHES_VER NAS_CONFIGS_VER
2012-01-01 21:52:10 +01:00
exit
fi
OLD=$1
NEW=$2
2013-10-29 18:26:14 +01:00
GEN=$3
VER=$4
CNF=$5
BASEDIR=$(dirname $0)
2012-12-14 09:40:25 +01:00
source $BASEDIR/armv6j-kernels
sourcenames="sys-kernel/go-sources"
2012-01-01 21:52:10 +01:00
2012-12-14 09:40:25 +01:00
echo "Bump armv5tel kernels"
2012-01-01 21:52:10 +01:00
for package in ${PACKAGES}; do
name=$(echo ${package} | cut -d/ -f2)
2012-11-23 07:05:05 +01:00
sourcename=$(echo ${package} | grep sources)
echo "source pkg ${sourcename}"
sourcenames="${sourcenames} ${sourcename}"
cp ${package}/${name}-${OLD}.ebuild ${package}/${name}-${OLD}.ebuild.old
2013-10-29 18:26:14 +01:00
sed -e "s:^K_WANT_GENPATCHES=.*:K_WANT_GENPATCHES=\"base extras\":" -e "s:^K_GENPATCHES_VER=.*:K_GENPATCHES_VER=\"${GEN}\":" -e "s:^K_NASPATCHES_VER=.*:K_NASPATCHES_VER=\"${VER}\":" -e "s:^K_NASCONFIGS_VER=.*:K_NASCONFIGS_VER=\"${CNF}\":" ${package}/${name}-${OLD}.ebuild.old > ${package}/${name}-${NEW}.ebuild
rm -f ${package}/${name}-${OLD}.ebuild.old
2012-01-01 21:52:10 +01:00
git add ${package}/${name}-${NEW}.ebuild
ebuild ${package}/${name}-${NEW}.ebuild manifest
done
2012-11-23 07:05:05 +01:00
2013-10-29 18:26:14 +01:00
echo "but still add the armv6j source packages to the virtual"
2012-12-14 09:40:25 +01:00
source $BASEDIR/armv5tel-kernels
for package in ${PACKAGES}; do
sourcename=$(echo ${package} | grep sources)
echo "source pkg ${sourcename}"
sourcenames="${sourcenames} ${sourcename}"
done
echo "but still add the armv7a source packages to the virtual"
source $BASEDIR/armv7a-kernels
for package in ${PACKAGES}; do
sourcename=$(echo ${package} | grep sources)
echo "source pkg ${sourcename}"
sourcenames="${sourcenames} ${sourcename}"
done
2012-11-23 07:05:05 +01:00
sed -e "s:^SABLINK_SOURCES=.*:SABLINK_SOURCES=\"${sourcenames}\":" -i virtual/linux-sources/linux-sources-0.ebuild
ebuild virtual/linux-sources/linux-sources-0.ebuild manifest