packaging: adjusted upgrade procedure (documentation)
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>
Tue, 25 Nov 2014 16:48:07 +0000 (17:48 +0100)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Tue, 25 Nov 2014 16:52:37 +0000 (17:52 +0100)
Change-Id: I938f164f4c046426f5cacc6bb12abaa7ef262109
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
packaging/README.update_kernel-profile
packaging/README.update_linux-stable

index c151518ebe9c7a26a485e8109e0776a299a5853a..9592ea3dd498dffda2d76638f4b697808f6ee921 100644 (file)
@@ -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
+
 
 
index 47e8123d6dfd782d717ee45c25faf3ee0f76218b..9c85735327f86df723506c92fd01655939d6e542 100644 (file)
@@ -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