Automatically fetch original Ubuntu config
This commit is contained in:
parent
0d11503852
commit
eb7e66c10d
42
.github/workflows/release.yml
vendored
42
.github/workflows/release.yml
vendored
|
@ -97,18 +97,45 @@ jobs:
|
|||
run: |
|
||||
cd pkg/debian
|
||||
|
||||
# download sources
|
||||
# get ubuntu build patches (for config)
|
||||
SOURCE_URL="https://kernel.ubuntu.com/~kernel-ppa/mainline/v$KERNEL_VERSION"
|
||||
SOURCE_LIST="$SOURCE_URL/SOURCES"
|
||||
|
||||
mkdir -p "ubuntu"
|
||||
wget "$SOURCE_LIST" -O "ubuntu/SOURCES"
|
||||
SOURCE_FILES="$(tail -n +2 "ubuntu/SOURCES")"
|
||||
|
||||
for f in $SOURCE_FILES; do
|
||||
wget "$SOURCE_URL/$f" -O "ubuntu/$f"
|
||||
done
|
||||
|
||||
# download kernel sources
|
||||
wget https://cdn.kernel.org/pub/linux/kernel/v${KERNEL_VERSION%%.*}.x/linux-$KERNEL_VERSION.tar.xz
|
||||
tar xf linux-$KERNEL_VERSION.tar.xz
|
||||
|
||||
mv linux-$KERNEL_VERSION linux && cd linux
|
||||
|
||||
# apply build patches
|
||||
# apply ubuntu build patches
|
||||
for PATCH in ../ubuntu/*.patch; do patch -p1 < ${PATCH}; done
|
||||
|
||||
# apply surface build patches
|
||||
for PATCH in ../*.patch; do patch -p1 < ${PATCH}; done
|
||||
|
||||
# apply surface patches
|
||||
for PATCH in ../../../patches/${KERNEL_VERSION%.*}/*.patch; do patch -p1 < ${PATCH}; done
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
cd pkg/debian/linux
|
||||
|
||||
# merge configs
|
||||
./scripts/kconfig/merge_config.sh \
|
||||
debian.master/config/config.common.ubuntu \
|
||||
debian.master/config/amd64/config.common.amd64 \
|
||||
debian.master/config/amd64/config.flavour.generic \
|
||||
../ubuntu.config \
|
||||
../surface.config
|
||||
|
||||
- name: Setup secureboot certificate
|
||||
env:
|
||||
SB_KEY: ${{ secrets.SURFACE_SB_KEY }}
|
||||
|
@ -121,17 +148,6 @@ jobs:
|
|||
echo "$SB_KEY" | base64 -d > debian/linux/keys/MOK.key
|
||||
cp keys/surface.crt debian/linux/keys/MOK.crt
|
||||
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
cd pkg/debian/linux
|
||||
|
||||
# copy config
|
||||
cp ../debian.config .config
|
||||
|
||||
# update config
|
||||
make olddefconfig
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cd pkg/debian/linux
|
||||
|
|
10449
pkg/debian/debian.config
10449
pkg/debian/debian.config
File diff suppressed because it is too large
Load diff
1
pkg/debian/surface.config
Symbolic link
1
pkg/debian/surface.config
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../surface.config
|
4
pkg/debian/ubuntu.config
Normal file
4
pkg/debian/ubuntu.config
Normal file
|
@ -0,0 +1,4 @@
|
|||
##
|
||||
## Disable debug info
|
||||
##
|
||||
# CONFIG_DEBUG_INFO is not set
|
Loading…
Reference in a new issue