Skip to content

Commit

Permalink
[Kernel] use stg to manage changelog patches (#53)
Browse files Browse the repository at this point in the history
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
  • Loading branch information
yxieca authored and lguohan committed Aug 10, 2018
1 parent 61923df commit 63698ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
git add -f *
git commit -m "check in all loose files and diffs"

# patch debian changelog and update kernel package version
git am ../patch/changelog.patch
# patching anything that could affect following configuration generation.
stg init
stg import -s ../patch/preconfig/series

# re-generate debian/rules.gen, requires kernel-wedge
debian/bin/gencontrol.py
Expand All @@ -79,7 +80,9 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
# Applying patches and configuration changes
git add debian/build/build_amd64_none_amd64/.config -f
git commit -m "unmodified debian source"
stg init

# Learning new git repo head (above commit) by calling stg repair.
stg repair
stg import -s ../patch/series

# Building a custom kernel from Debian kernel source
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions patch/preconfig/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
changelog.patch

0 comments on commit 63698ea

Please sign in to comment.