mirror of
https://github.com/rancher/os-kernel.git
synced 2025-09-12 12:59:14 +00:00
Add support for patched kernels and publish the source that was built
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -11,6 +11,10 @@ fi
|
||||
: ${BUILD:=/usr/src}
|
||||
: ${CONFIG:=$(pwd)/config}
|
||||
: ${DIST:=$(pwd)/dist}
|
||||
: ${PATCHES:=$(pwd)/patches}
|
||||
|
||||
mkdir -p ${DIST}/kernel
|
||||
|
||||
|
||||
list_build_files() {
|
||||
find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl
|
||||
|
@@ -23,3 +23,9 @@ if [ ! -e ${DIR} ]; then
|
||||
fi
|
||||
|
||||
cp ${CONFIG}/kernel-config ${DIR}/.config
|
||||
|
||||
pushd .
|
||||
cd ${DIR}
|
||||
patch -p1 < ${PATCHES}/*
|
||||
popd
|
||||
|
||||
|
@@ -42,8 +42,6 @@ else
|
||||
|
||||
create_firmware_tar $FIRMWARE
|
||||
|
||||
mkdir -p ${DIST}/kernel
|
||||
|
||||
FILE="linux-${KVER}-x86.tar"
|
||||
|
||||
(
|
||||
|
@@ -7,6 +7,7 @@ mv build.log dist/
|
||||
|
||||
echo
|
||||
echo "--- ${KERNEL_VERSION} Kernel prepared for RancherOS"
|
||||
echo " ./dist/kernel/linux-${KERNEL_VERSION}-src.tgz"
|
||||
echo " ./dist/kernel/extra-linux-${KERNEL_VERSION}-x86.tar.gz"
|
||||
echo " ./dist/kernel/build-linux-${KERNEL_VERSION}-x86.tar.gz"
|
||||
echo " ./dist/kernel/linux-${KERNEL_VERSION}-x86.tar.gz"
|
||||
@@ -20,6 +21,7 @@ echo "to publish kernel files and container images, run dist/publish.sh"
|
||||
|
||||
echo "#!/bin/sh"> dist/publish.sh
|
||||
echo "github-release release --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --pre-release" >> dist/publish.sh
|
||||
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/linux-${KERNEL_VERSION}-src.tgz --name linux-${KERNEL_VERSION}-src.tgz" >> dist/publish.sh
|
||||
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/build-linux-${KERNEL_VERSION}-x86.tar.gz --name build-linux-${KERNEL_VERSION}-x86.tar.gz" >> dist/publish.sh
|
||||
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/config --name config" >> dist/publish.sh
|
||||
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/extra-linux-${KERNEL_VERSION}-x86.tar.gz --name extra-linux-${KERNEL_VERSION}-x86.tar.gz" >> dist/publish.sh
|
||||
|
Reference in New Issue
Block a user