forked from sonic-net/sonic-linux-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6,847 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Obtaining the Debian kernel source | ||
apt-get source linux=3.16.7-ckt11-1+deb8u3 | ||
|
||
cd linux-* | ||
# patch debian changelog and update kernel package version | ||
patch -p0 < ../patch/changelog.patch | ||
|
||
# re-generate debian/rules.gen | ||
debian/bin/gencontrol.py | ||
|
||
# generate linux build file for amd64_none_amd64 | ||
fakeroot make -f debian/rules.gen setup_amd64_none_amd64 | ||
|
||
# Applying patches and configuration changes | ||
git init | ||
git add . | ||
git add debian/build/build_amd64_none_amd64/.config -f | ||
git commit -m "unmodified debian source" | ||
stg init | ||
stg import -s ../patch/series | ||
|
||
# Building a custom kernel from Debian kernel source | ||
fakeroot make -f debian/rules.gen binary-arch_amd64_none_amd64 |
Oops, something went wrong.