Obsolete
/
recipes
Archived
3
0
Fork 0
This repository has been archived on 2022-01-17. You can view files and clone it, but cannot push or open issues/pull-requests.
recipes/linux/recipe.spec

29 lines
628 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

name: linux
version: 5.2.9
sources: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-%{version}.tar.xz
@build
cd 'linux-%{version}'
# FIXME: Well need to provide configuration at some point.
make alldefconfig
make
@install
cd 'linux-%{version}'
mkdir -p '%{pkg}/usr' '%{pkg}/boot' '%{pkg}/usr/src'
cp arch/x86/boot/bzImage '%{pkg}/boot/bzImage-%{version}'
make headers_install ARCH=x86_64 INSTALL_HDR_PATH='%{pkg}/usr'
# Installing sources for linux-src.
make distclean
cd ..
# FIXME: Maybe a new extraction would be better?
mv 'linux-%{version}' '%{pkg}/usr/src'
%split linux-src
files:
- /usr/src