add scrupts for arch other then armv5

This commit is contained in:
Mario Fetka 2012-12-14 09:40:25 +01:00
parent a16961ec70
commit 33f0e9185e
14 changed files with 197 additions and 8 deletions

19
armv5tel-do-kernel-build.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
if [ -z "$1" ]; then
echo armv5tel-do-kernel-build.sh KVERSION
exit
fi
VER=$1
BASEDIR=$(dirname $0)
source $BASEDIR/armv5tel-kernels
EMERGE="virtual/linux-sources"
for package in ${PACKAGES}; do
EMERGE="$EMERGE =${package}-${VER}"
done
emerge $EMERGE
eit add $EMERGE

45
armv5tel-do-kernel-bump.sh Executable file
View File

@ -0,0 +1,45 @@
#!/bin/sh
if [ -z "$4" ]; then
echo armv5tel-do-kernel-bump.sh OLDVER NEWVER NAS_PATCHES_VER NAS_CONFIGS_VER
exit
fi
OLD=$1
NEW=$2
VER=$3
CNF=$4
BASEDIR=$(dirname $0)
source $BASEDIR/armv5tel-kernels
sourcenames="sys-kernel/go-sources"
echo "Bump armv5tel kernels"
for package in ${PACKAGES}; do
name=$(echo ${package} | cut -d/ -f2)
sourcename=$(echo ${package} | grep sources)
echo "source pkg ${sourcename}"
sourcenames="${sourcenames} ${sourcename}"
cp ${package}/${name}-${OLD}.ebuild ${package}/${name}-${OLD}.ebuild.old
sed -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
git add ${package}/${name}-${NEW}.ebuild
ebuild ${package}/${name}-${NEW}.ebuild manifest
done
echo "but still add the armv6j source packages to the virtual"
source $BASEDIR/armv6j-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
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

19
armv5tel-do-kernel-remove.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
if [ -z "$1" ]; then
echo armv5tel-do-kernel-remove.sh KVERSION
exit
fi
VER=$1
BASEDIR=$(dirname $0)
source $BASEDIR/armv5tel-kernels
EMERGE=""
for package in ${PACKAGES}; do
EMERGE="$EMERGE =${package}-${VER}"
done
emerge -c $EMERGE
eit remove $EMERGE

View File

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/sh
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo do-kernel-build.sh KVERSION echo armv6j-do-kernel-build.sh KVERSION
exit exit
fi fi
VER=$1 VER=$1
BASEDIR=$(dirname $0) BASEDIR=$(dirname $0)
source $BASEDIR/kernel source $BASEDIR/armv6j-kernels
EMERGE="virtual/linux-sources" EMERGE="virtual/linux-sources"

45
armv6j-do-kernel-bump.sh Executable file
View File

@ -0,0 +1,45 @@
#!/bin/sh
if [ -z "$4" ]; then
echo armv6j-do-kernel-bump.sh OLDVER NEWVER NAS_PATCHES_VER NAS_CONFIGS_VER
exit
fi
OLD=$1
NEW=$2
VER=$3
CNF=$4
BASEDIR=$(dirname $0)
source $BASEDIR/armv6j-kernels
sourcenames="sys-kernel/go-sources"
echo "Bump armv5tel kernels"
for package in ${PACKAGES}; do
name=$(echo ${package} | cut -d/ -f2)
sourcename=$(echo ${package} | grep sources)
echo "source pkg ${sourcename}"
sourcenames="${sourcenames} ${sourcename}"
cp ${package}/${name}-${OLD}.ebuild ${package}/${name}-${OLD}.ebuild.old
sed -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
git add ${package}/${name}-${NEW}.ebuild
ebuild ${package}/${name}-${NEW}.ebuild manifest
done
echo "but still add the armv5tel source packages to the virtual"
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
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

View File

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/sh
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo do-kernel-remove.sh KVERSION echo armv6j-do-kernel-remove.sh KVERSION
exit exit
fi fi
VER=$1 VER=$1
BASEDIR=$(dirname $0) BASEDIR=$(dirname $0)
source $BASEDIR/kernel source $BASEDIR/armv6j-kernels
EMERGE="" EMERGE=""

3
armv6j-kernels Normal file
View File

@ -0,0 +1,3 @@
PACKAGES="
sys-kernel/linux-medion_stg212 sys-kernel/medion_stg212-sources \
"

19
armv7a-do-kernel-build.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
if [ -z "$1" ]; then
echo armv7a-do-kernel-build.sh KVERSION
exit
fi
VER=$1
BASEDIR=$(dirname $0)
source $BASEDIR/armv7a-kernels
EMERGE="virtual/linux-sources"
for package in ${PACKAGES}; do
EMERGE="$EMERGE =${package}-${VER}"
done
emerge $EMERGE
eit add $EMERGE

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
if [ -z "$4" ]; then if [ -z "$4" ]; then
echo do-kernel-bump.sh OLDVER NEWVER NAS_PATCHES_VER NAS_CONFIGS_VER echo armv7a-do-kernel-bump.sh OLDVER NEWVER NAS_PATCHES_VER NAS_CONFIGS_VER
exit exit
fi fi
@ -9,9 +9,10 @@ NEW=$2
VER=$3 VER=$3
CNF=$4 CNF=$4
BASEDIR=$(dirname $0) BASEDIR=$(dirname $0)
source $BASEDIR/kernel source $BASEDIR/armv7a-kernels
sourcenames="sys-kernel/go-sources" sourcenames="sys-kernel/go-sources"
echo "Bump armv7a kernels"
for package in ${PACKAGES}; do for package in ${PACKAGES}; do
name=$(echo ${package} | cut -d/ -f2) name=$(echo ${package} | cut -d/ -f2)
sourcename=$(echo ${package} | grep sources) sourcename=$(echo ${package} | grep sources)
@ -24,5 +25,21 @@ for package in ${PACKAGES}; do
ebuild ${package}/${name}-${NEW}.ebuild manifest ebuild ${package}/${name}-${NEW}.ebuild manifest
done done
echo "but still add the armv6j source packages to the virtual"
source $BASEDIR/armv6j-kernels
for package in ${PACKAGES}; do
sourcename=$(echo ${package} | grep sources)
echo "source pkg ${sourcename}"
sourcenames="${sourcenames} ${sourcename}"
done
echo "but still add the armv5tel source packages to the virtual"
source $BASEDIR/armv5tel-kernels
for package in ${PACKAGES}; do
sourcename=$(echo ${package} | grep sources)
echo "source pkg ${sourcename}"
sourcenames="${sourcenames} ${sourcename}"
done
sed -e "s:^SABLINK_SOURCES=.*:SABLINK_SOURCES=\"${sourcenames}\":" -i virtual/linux-sources/linux-sources-0.ebuild 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 ebuild virtual/linux-sources/linux-sources-0.ebuild manifest

19
armv7a-do-kernel-remove.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
if [ -z "$1" ]; then
echo armv7a-do-kernel-remove.sh KVERSION
exit
fi
VER=$1
BASEDIR=$(dirname $0)
source $BASEDIR/armv7a-kernels
EMERGE=""
for package in ${PACKAGES}; do
EMERGE="$EMERGE =${package}-${VER}"
done
emerge -c $EMERGE
eit remove $EMERGE

3
armv7a-kernels Normal file
View File

@ -0,0 +1,3 @@
PACKAGES="
sys-kernel/linux-freescale_mx53_loco sys-kernel/freescale_mx53_loco-sources \
"

View File

@ -1,2 +1,2 @@
EBUILD linux-sources-0.ebuild 1345 SHA256 1c60263d64d372e916ddbe6ea28b41897f5e93ef06f55b90f348dcb907116a24 SHA512 fe3f93074c070aebf0ab6b956e753547b9a304a58d5f62ca3324384fe83793cffb6b6ae9e3fc9f254ba9cfdf7b17b63786c4916747673b9d8f6d9de2eb80ab19 WHIRLPOOL 3d95d4d1de983481b440e682fb0318453973c2cc83f2f727094da672bc675bb6754ef89aba5da4df85f24f33f3ee33a883bbd9ebe2e7e559b314872c35e2d406 EBUILD linux-sources-0.ebuild 1419 SHA256 2546c4757ff97945f2f53d9362359c568f80ee9a8af548412e63d475f2f233c0 SHA512 fe532e0b09493b2a823c3d08c627096e204cf4a7f9888bf55c9a7aa2b73925c473c6100f77591880f194d1ea3cfe3c9a82d0ece04c49fccd84a6f87f8062fe3c WHIRLPOOL 2963a29b3b2e530cd42eb491e875e470a0f285cc534040640c0087e44c155f16f101811ca0c9bad2c816fd060860f6bec3c90d52594dd7c3d2a6caedaa20ca88
MISC metadata.xml 223 SHA256 81397b5eb31af3dbcf2105207a21628be9a62fd03a105cc672ae99663b191a8c SHA512 5fefb6cbf52338b205b57f7ce80f03c7c1d3a6457b48a730996deb84b9c3e7c325cb032f8c8711d5382d6c898733e1fff38ac02e74927f5b2d6fe11dc0be6844 WHIRLPOOL 6f22b281394bf4ff8e98f3ecb0e87f7c7c06b9b106284f7c6aac2fa9f363c5fcbbe58a84b1c8181353d8bd0aeb36b4d760a4f439aaa5cd97e02627cb7bab3331 MISC metadata.xml 223 SHA256 81397b5eb31af3dbcf2105207a21628be9a62fd03a105cc672ae99663b191a8c SHA512 5fefb6cbf52338b205b57f7ce80f03c7c1d3a6457b48a730996deb84b9c3e7c325cb032f8c8711d5382d6c898733e1fff38ac02e74927f5b2d6fe11dc0be6844 WHIRLPOOL 6f22b281394bf4ff8e98f3ecb0e87f7c7c06b9b106284f7c6aac2fa9f363c5fcbbe58a84b1c8181353d8bd0aeb36b4d760a4f439aaa5cd97e02627cb7bab3331

View File

@ -13,7 +13,7 @@ SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="" IUSE=""
SABLINK_SOURCES="sys-kernel/go-sources sys-kernel/buffalo_ls_chl-sources sys-kernel/buffalo_ls_chl2-sources sys-kernel/buffalo_ls_hgl-sources sys-kernel/buffalo_ls_mini-sources sys-kernel/buffalo_ls_pro_live-sources sys-kernel/buffalo_kb_pro-sources sys-kernel/buffalo_ls_pro_duo_rev1-sources sys-kernel/buffalo_ls_pro_duo_rev2-sources sys-kernel/buffalo_ls_ql-sources sys-kernel/buffalo_ls_vl-sources sys-kernel/buffalo_ls_wvl-sources sys-kernel/buffalo_ls_xhl-sources" SABLINK_SOURCES="sys-kernel/go-sources sys-kernel/buffalo_ls_chl-sources sys-kernel/buffalo_ls_chl2-sources sys-kernel/buffalo_ls_hgl-sources sys-kernel/buffalo_ls_mini-sources sys-kernel/buffalo_ls_pro_live-sources sys-kernel/buffalo_kb_pro-sources sys-kernel/buffalo_ls_pro_duo_rev1-sources sys-kernel/buffalo_ls_pro_duo_rev2-sources sys-kernel/buffalo_ls_ql-sources sys-kernel/buffalo_ls_vl-sources sys-kernel/buffalo_ls_wvl-sources sys-kernel/buffalo_ls_xhl-sources sys-kernel/medion_stg212-sources sys-kernel/freescale_mx53_loco-sources"
DEPEND="" DEPEND=""
RDEPEND="|| ( RDEPEND="|| (