packaging: ivi: Do Not Use profile macro
[profile/ivi/kernel-x86-ivi.git] / packaging / README.update
1 How to bump kernel version
2 ==========================
3
4 Parameters:
5 -----------
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)
8 * kernel version
9
10 Define variables:
11 # linux_branch=linux-3.14.y
12 # linux_tag=v3.14.19
13
14 1. Clone kernel-common
15 ----------------------
16
17 # git clone review.tizen.org:profile/common/kernel-common
18 # cd kernel-common
19
20 2. add kernel.org as new origin and fetch it
21 --------------------------------------------
22
23 # git remote add linux_stable git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
24 # git fetch linux_stable
25
26 3. import on upstream branch until given revision and push to tizen.org
27 -----------------------------------------------------------------------
28
29 # git fetch origin
30 # git checkout upstream
31 # git rebase linux_stable/${linux_branch}
32 # git push origin HEAD:upstream
33 # git push --tags origin HEAD:upstream
34
35 4. rebase tizen branch
36 ----------------------
37
38 # git checkout -B tizen origin/tizen
39 # git rebase -i ${linux_tag}
40
41 5. update kernel config
42 -----------------------
43
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
49
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
55
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
61
62 6. Bump the kernel version in the spec file
63 -------------------------------------------
64
65 # sed -ri "s/^(%define upstream_version).*$/\1 $(make kernelversion)/" packaging/*.spec