1 How to bump kernel version
2 ==========================
6 * branch to upgrade to (example: linux-3.14.y as defined on git.kernel.org)
7 * tag to upgrade to (example: v3.14.20)
11 # linux_branch=linux-3.14.y
15 1. Clone linux-stable from tizen.org
16 ------------------------------------
18 # git clone review.tizen.org:platform/kernel/linux-stable
22 2. add kernel.org as new origin and fetch it
23 --------------------------------------------
25 # git remote add kernel_org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
26 # git fetch kernel_org
29 3. import on upstream branch until given revision and push to tizen.org
30 -----------------------------------------------------------------------
32 # git checkout upstream
33 # git rebase kernel_org/${linux_branch}
34 # git push --tags origin HEAD:upstream
37 4. rebase tizen branch
38 ----------------------
40 # git checkout -B tizen origin/tizen
41 # git rebase -i ${linux_tag}
44 5. Bump the kernel version in the spec file
45 -------------------------------------------
47 # sed -ri "s/^(%define upstream_version).*$/\1 $(make kernelversion)/" packaging/*.spec
48 # git commit -sam "packaging: bump to $(make kernelversion)"
51 6. Push the tizen branch
52 ------------------------
54 # git push origin HEAD:tizen
57 7. Updating kernel configurations (optional)
58 --------------------------------------------
60 # function adjustconfig() {
64 make ARCH=$arch ${platform}_defconfig || return $?
65 make menuconfig || return $?
66 make ARCH=$arch savedefconfig || return $?
67 mv -v defconfig arch/$arch/configs/${platform}_defconfig
70 # adjustconfig x86 i386
71 # adjustconfig x86 x86_64
72 # adjustconfig arm vexpress