diff options
author | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2014-11-25 17:48:07 +0100 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2015-02-04 11:23:31 +0100 |
commit | 5b5b4e544cbcf6730b3c205628244142742da721 (patch) | |
tree | db037632e161cd5cefb63505e7a7a55f19f79272 | |
parent | 06425b3a6abb0da5af969129d39568edacda18ba (diff) | |
download | kernel-common-5b5b4e544cbcf6730b3c205628244142742da721.tar.gz kernel-common-5b5b4e544cbcf6730b3c205628244142742da721.tar.bz2 kernel-common-5b5b4e544cbcf6730b3c205628244142742da721.zip |
packaging: adjusted upgrade procedure (documentation)
Change-Id: I938f164f4c046426f5cacc6bb12abaa7ef262109
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
-rw-r--r-- | packaging/README.update_kernel-profile | 46 | ||||
-rw-r--r-- | packaging/README.update_linux-stable | 43 |
2 files changed, 66 insertions, 23 deletions
diff --git a/packaging/README.update_kernel-profile b/packaging/README.update_kernel-profile index c151518ebe9c..9592ea3dd498 100644 --- a/packaging/README.update_kernel-profile +++ b/packaging/README.update_kernel-profile @@ -29,7 +29,7 @@ or # git checkout -B upstream linux_stable/upstream # git push --tags origin HEAD:upstream # git checkout -B tizen linux_stable/tizen -# git push --tags origin HEAD:tizen +# git push --tags origin +HEAD:tizen 4. rebase tizen_<profile> branch -------------------------------- @@ -42,18 +42,40 @@ or -------------------------------------------- # function adjustconfig() { - arch=$1 - platform=$2 - - rm -f .config* - make ARCH=$arch ${platform}_defconfig || return $? - make ARCH=$arch menuconfig || return $? - make ARCH=$arch savedefconfig || return $? - mv -v defconfig arch/$arch/configs/${platform}_defconfig + arch=$1 + + case $arch in + i386|i486|i586|i686|x86) + cfgpath=arch/x86/configs + arch=i386 + platform=i386 + ;; + x86_64) + cfgpath=arch/x86/configs + arch=x86_64 + platform=x86_64 + ;; + arm|vexpress) + cfgpath=arch/arm/configs + arch=arm + platform=vexpress + ;; + *) + echo "Unknown arch" + return 1 + ;; + esac + + rm -f .config + make ARCH=$arch ${platform}_defconfig || return $? + make ARCH=$arch menuconfig || return $? + make ARCH=$arch savedefconfig || return $? + mv -v defconfig $cfgpath/${platform}_defconfig } -# adjustconfig x86 i386 -# adjustconfig x86 x86_64 -# adjustconfig arm vexpress +# adjustconfig x86 +# adjustconfig x86_64 +# adjustconfig arm + diff --git a/packaging/README.update_linux-stable b/packaging/README.update_linux-stable index 47e8123d6dfd..9c85735327f8 100644 --- a/packaging/README.update_linux-stable +++ b/packaging/README.update_linux-stable @@ -58,18 +58,39 @@ Define variables: -------------------------------------------- # function adjustconfig() { - arch=$1 - platform=$2 - - rm -f .config - make ARCH=$arch ${platform}_defconfig || return $? - make ARCH=$arch menuconfig || return $? - make ARCH=$arch savedefconfig || return $? - mv -v defconfig arch/$arch/configs/${platform}_defconfig + arch=$1 + + case $arch in + i386|i486|i586|i686|x86) + cfgpath=arch/x86/configs + arch=i386 + platform=i386 + ;; + x86_64) + cfgpath=arch/x86/configs + arch=x86_64 + platform=x86_64 + ;; + arm|vexpress) + cfgpath=arch/arm/configs + arch=arm + platform=vexpress + ;; + *) + echo "Unknown arch" + return 1 + ;; + esac + + rm -f .config + make ARCH=$arch ${platform}_defconfig || return $? + make ARCH=$arch menuconfig || return $? + make ARCH=$arch savedefconfig || return $? + mv -v defconfig $cfgpath/${platform}_defconfig } -# adjustconfig x86 i386 -# adjustconfig x86 x86_64 -# adjustconfig arm vexpress +# adjustconfig x86 +# adjustconfig x86_64 +# adjustconfig arm |