d1849aaf8c4450e5e3ce398cfaa3765b00cb9abe
[platform/kernel/linux-stable.git] / packaging / README.update_kernel-profile
1 How to bump kernel for a profile
2 ================================
3
4 1. define your profile
5 ----------------------
6
7 # profile=common
8 or
9 # profile=ivi
10 ..
11
12
13 1. Clone kernel-$profile
14 ------------------------
15
16 # git clone review.tizen.org:profile/$profile/kernel-$profile
17 # cd kernel-$profile
18
19 2. add platform/upstream/linux-stable as a new remote and fetch
20 ---------------------------------------------------------------
21
22 # git remote add linux_stable review.tizen.org:platform/kernel/linux-stable.git
23 # git fetch linux_stable
24
25 3. import upstream and tizen branches and push to tizen.org
26 -----------------------------------------------------------
27
28 # git fetch origin
29 # git checkout -B upstream linux_stable/upstream
30 # git push --tags origin HEAD:upstream
31 # git checkout -B tizen linux_stable/tizen
32 # git push --tags origin HEAD:tizen
33
34 4. rebase tizen_<profile> branch
35 --------------------------------
36
37 # git checkout tizen_${profile}
38 # git rebase origin/tizen
39 # git push origin HEAD:tizen_${profile}
40
41 5. Updating kernel configurations (optional)
42 --------------------------------------------
43
44 # function adjustconfig() {
45   arch=$1
46   platform=$2
47
48   make ARCH=$arch ${platform}_defconfig || return $?
49   make menuconfig || return $?
50   make ARCH=$arch savedefconfig || return $?
51   mv -v defconfig arch/$arch/configs/${platform}_defconfig
52 }
53
54 # adjustconfig x86 i386
55 # adjustconfig x86 x86_64
56 # adjustconfig arm vexpress
57
58