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.14)
11 # linux_branch=linux-3.14.y
14 1. Clone kernel-common
15 ----------------------
17 # git clone review.tizen.org:profile/common/kernel-common
20 2. add kernel.org as new origin and fetch it
21 --------------------------------------------
23 # git remote add linux_stable git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
24 # git fetch linux_stable
26 3. import on upstream branch until given revision and push to tizen.org
27 -----------------------------------------------------------------------
30 # git checkout upstream
31 # git rebase linux_stable/${linux_branch}
32 # git push origin HEAD:upstream
33 # git push --tags origin HEAD:upstream
35 4. rebase tizen branch
36 ----------------------
38 # git checkout -B tizen origin/tizen
39 # git rebase -i ${linux_tag}
41 5. update kernel config
42 -----------------------
44 # make ARCH=i386 common_x86_defconfig
45 # make ARCH=i386 menuconfig
46 # ... change config ...
47 # make ARCH=i386 savedefconfig
48 # mv defconfig arch/x86/configs/common_x86_defconfig
50 # make ARCH=x86_64 common_x86_64_defconfig
51 # make ARCH=x86_64 menuconfig
52 # ... change config ...
53 # make ARCH=x86_64 savedefconfig
54 # mv defconfig arch/x86/configs/common_x86_64_defconfig
56 # make ARCH=arm tizen_defconfig
57 # make ARCH=arm menuconfig
58 # ... change config ...
59 # make ARCH=arm savedefconfig
60 # mv defconfig arch/arm/configs/tizen_defconfig
62 6. Bump the kernel version in the spec file
63 -------------------------------------------
65 # sed -ri "s/^(%define upstream_version).*$/\1 $(make kernelversion)/" packaging/*.spec