blob: 2f248367bad037933c6a104d449a5dd434fc2e93 [file] [log] [blame]
# How to update dump-capture-kernel
Find the dump-capture-kernel commit you want to use for the tarball at
https://cos.googlesource.com/third_party/dump-capture-kernel.
Download the dump-capture-kernel tarball and upload it to chromeos-localmirror
using the following commands:
```
# Better do this outside the chroot otherwise gsutil will complain
# For example: Consider the kernel commit to be 28935c5.
$ wget https://cos.googlesource.com/third_party/dump-capture-kernel/+archive/28935c5.tar.gz
$ gsutil cp -n -a public-read 28935c5.tar.gz \
gs://chromeos-localmirror/distfiles/cos-dump-capture-kernel-28935c5.tar.gz
$ rm 28935c5.tar.gz
```
Update the `EGIT_COMMIT` variable in the ebuild file with the new commit.
1. If you have just changed the dump-capture-kernel commit in the same kernel
version, use the following command:
```
# Outside chroot
$ git mv dump-capture-kernel-<kernel_version>-r<revision>.ebuild dump-capture-kernel-<kernel_version>-r<revision+1>.ebuild
```
```
# Inside chroot
$ equery-lakitu w dump-capture-kernel
$ ebuild-lakitu </path/to/ebuild>.ebuild manifest
$ emerge-lakitu dump-capture-kernel
```
2. If you have changed the kernel version for dump-capture-kernel, use the following
commands:
```
# Outside chroot
$ git mv dump-capture-kernel-<old_kernel_version>-r<revision>.ebuild dump-capture-kernel-<new_kernel_version>-r1.ebuild
```
```
# Inside chroot
$ equery-lakitu w dump-capture-kernel
$ ebuild-lakitu </path/to/ebuild>.ebuild manifest
$ emerge-lakitu dump-capture-kernel
```