krata: rewrite all repo infrastructure

This commit is contained in:
Alex Zenla
2024-03-07 09:04:05 +00:00
parent baefe0dceb
commit 670e140682
39 changed files with 419 additions and 181 deletions

3
kernel/.gitignore vendored
View File

@ -1,2 +1 @@
linux-*
target/
/linux-*

View File

@ -1,22 +0,0 @@
#!/bin/sh
set -e
cd "$(dirname "${0}")"
# shellcheck source=config.sh
. "${PWD}/config.sh"
if [ ! -f "${SRC_DIR_NAME}/Makefile" ]
then
rm -rf "${SRC_DIR_NAME}"
curl -L -o "${SRC_DIR_NAME}.txz" "${KERNEL_SRC_URL}"
tar xf "${SRC_DIR_NAME}.txz"
rm "${SRC_DIR_NAME}.txz"
fi
mkdir -p "${OUTPUT_DIR_NAME}"
cp krata.config "${SRC_DIR_NAME}/.config"
make -C "${SRC_DIR_NAME}" "${@}" olddefconfig
make -C "${SRC_DIR_NAME}" "${@}" bzImage
cp "${SRC_DIR_NAME}/arch/x86/boot/bzImage" "${OUTPUT_DIR_NAME}/kernel"

View File

@ -1,5 +1,3 @@
#!/bin/sh
KERNEL_VERSION="6.7.8"
KERNEL_SRC_URL="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${KERNEL_VERSION}.tar.xz"
SRC_DIR_NAME="linux-${KERNEL_VERSION}"
OUTPUT_DIR_NAME="target"