From 33f0e9185ecd3450139c64f99003e1c33a67a09d Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Fri, 14 Dec 2012 09:40:25 +0100 Subject: [PATCH] add scrupts for arch other then armv5 --- armv5tel-do-kernel-build.sh | 19 ++++++++ armv5tel-do-kernel-bump.sh | 45 +++++++++++++++++++ armv5tel-do-kernel-remove.sh | 19 ++++++++ kernel => armv5tel-kernels | 0 ...rnel-build.sh => armv6j-do-kernel-build.sh | 4 +- armv6j-do-kernel-bump.sh | 45 +++++++++++++++++++ ...el-remove.sh => armv6j-do-kernel-remove.sh | 4 +- armv6j-kernels | 3 ++ armv7a-do-kernel-build.sh | 19 ++++++++ do-kernel-bump.sh => armv7a-do-kernel-bump.sh | 21 ++++++++- armv7a-do-kernel-remove.sh | 19 ++++++++ armv7a-kernels | 3 ++ virtual/linux-sources/Manifest | 2 +- virtual/linux-sources/linux-sources-0.ebuild | 2 +- 14 files changed, 197 insertions(+), 8 deletions(-) create mode 100755 armv5tel-do-kernel-build.sh create mode 100755 armv5tel-do-kernel-bump.sh create mode 100755 armv5tel-do-kernel-remove.sh rename kernel => armv5tel-kernels (100%) rename do-kernel-build.sh => armv6j-do-kernel-build.sh (69%) create mode 100755 armv6j-do-kernel-bump.sh rename do-kernel-remove.sh => armv6j-do-kernel-remove.sh (72%) create mode 100644 armv6j-kernels create mode 100755 armv7a-do-kernel-build.sh rename do-kernel-bump.sh => armv7a-do-kernel-bump.sh (58%) create mode 100755 armv7a-do-kernel-remove.sh create mode 100644 armv7a-kernels diff --git a/armv5tel-do-kernel-build.sh b/armv5tel-do-kernel-build.sh new file mode 100755 index 0000000..1e75724 --- /dev/null +++ b/armv5tel-do-kernel-build.sh @@ -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 \ No newline at end of file diff --git a/armv5tel-do-kernel-bump.sh b/armv5tel-do-kernel-bump.sh new file mode 100755 index 0000000..b617b83 --- /dev/null +++ b/armv5tel-do-kernel-bump.sh @@ -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 diff --git a/armv5tel-do-kernel-remove.sh b/armv5tel-do-kernel-remove.sh new file mode 100755 index 0000000..ae4fa0f --- /dev/null +++ b/armv5tel-do-kernel-remove.sh @@ -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 diff --git a/kernel b/armv5tel-kernels similarity index 100% rename from kernel rename to armv5tel-kernels diff --git a/do-kernel-build.sh b/armv6j-do-kernel-build.sh similarity index 69% rename from do-kernel-build.sh rename to armv6j-do-kernel-build.sh index e29adfe..05459ab 100755 --- a/do-kernel-build.sh +++ b/armv6j-do-kernel-build.sh @@ -1,13 +1,13 @@ #!/bin/sh if [ -z "$1" ]; then - echo do-kernel-build.sh KVERSION + echo armv6j-do-kernel-build.sh KVERSION exit fi VER=$1 BASEDIR=$(dirname $0) -source $BASEDIR/kernel +source $BASEDIR/armv6j-kernels EMERGE="virtual/linux-sources" diff --git a/armv6j-do-kernel-bump.sh b/armv6j-do-kernel-bump.sh new file mode 100755 index 0000000..7f184a5 --- /dev/null +++ b/armv6j-do-kernel-bump.sh @@ -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 diff --git a/do-kernel-remove.sh b/armv6j-do-kernel-remove.sh similarity index 72% rename from do-kernel-remove.sh rename to armv6j-do-kernel-remove.sh index 9c2a6e3..661d463 100755 --- a/do-kernel-remove.sh +++ b/armv6j-do-kernel-remove.sh @@ -1,13 +1,13 @@ #!/bin/sh if [ -z "$1" ]; then - echo do-kernel-remove.sh KVERSION + echo armv6j-do-kernel-remove.sh KVERSION exit fi VER=$1 BASEDIR=$(dirname $0) -source $BASEDIR/kernel +source $BASEDIR/armv6j-kernels EMERGE="" diff --git a/armv6j-kernels b/armv6j-kernels new file mode 100644 index 0000000..f0fa17a --- /dev/null +++ b/armv6j-kernels @@ -0,0 +1,3 @@ +PACKAGES=" + sys-kernel/linux-medion_stg212 sys-kernel/medion_stg212-sources \ +" \ No newline at end of file diff --git a/armv7a-do-kernel-build.sh b/armv7a-do-kernel-build.sh new file mode 100755 index 0000000..30070ad --- /dev/null +++ b/armv7a-do-kernel-build.sh @@ -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 \ No newline at end of file diff --git a/do-kernel-bump.sh b/armv7a-do-kernel-bump.sh similarity index 58% rename from do-kernel-bump.sh rename to armv7a-do-kernel-bump.sh index b75de78..13f7a48 100755 --- a/do-kernel-bump.sh +++ b/armv7a-do-kernel-bump.sh @@ -1,6 +1,6 @@ #!/bin/sh 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 fi @@ -9,9 +9,10 @@ NEW=$2 VER=$3 CNF=$4 BASEDIR=$(dirname $0) -source $BASEDIR/kernel +source $BASEDIR/armv7a-kernels sourcenames="sys-kernel/go-sources" +echo "Bump armv7a kernels" for package in ${PACKAGES}; do name=$(echo ${package} | cut -d/ -f2) sourcename=$(echo ${package} | grep sources) @@ -24,5 +25,21 @@ for package in ${PACKAGES}; do 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 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 ebuild virtual/linux-sources/linux-sources-0.ebuild manifest diff --git a/armv7a-do-kernel-remove.sh b/armv7a-do-kernel-remove.sh new file mode 100755 index 0000000..3cfb459 --- /dev/null +++ b/armv7a-do-kernel-remove.sh @@ -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 diff --git a/armv7a-kernels b/armv7a-kernels new file mode 100644 index 0000000..edf073e --- /dev/null +++ b/armv7a-kernels @@ -0,0 +1,3 @@ +PACKAGES=" + sys-kernel/linux-freescale_mx53_loco sys-kernel/freescale_mx53_loco-sources \ +" \ No newline at end of file diff --git a/virtual/linux-sources/Manifest b/virtual/linux-sources/Manifest index d8d7ef3..baa63b2 100644 --- a/virtual/linux-sources/Manifest +++ b/virtual/linux-sources/Manifest @@ -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 diff --git a/virtual/linux-sources/linux-sources-0.ebuild b/virtual/linux-sources/linux-sources-0.ebuild index 80240f7..81974de 100644 --- a/virtual/linux-sources/linux-sources-0.ebuild +++ b/virtual/linux-sources/linux-sources-0.ebuild @@ -13,7 +13,7 @@ SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" 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="" RDEPEND="|| (