linux recipe updated.
This commit is contained in:
parent
80d1b5996f
commit
f1e680424a
@ -1,11 +1,28 @@
|
|||||||
name: linux
|
name: linux
|
||||||
version: 5.2.4
|
version: 5.2.9
|
||||||
release: 1
|
|
||||||
sources: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-%{version}.tar.xz
|
sources: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-%{version}.tar.xz
|
||||||
|
|
||||||
@build
|
@build
|
||||||
true
|
cd 'linux-%{version}'
|
||||||
|
|
||||||
|
# FIXME: We’ll need to provide configuration at some point.
|
||||||
|
make alldefconfig
|
||||||
|
make
|
||||||
|
|
||||||
@install
|
@install
|
||||||
mkdir -p '%{pkg}/usr'
|
cd 'linux-%{version}'
|
||||||
cd 'linux-%{version}' && make headers_%{name} ARCH=x86_64 INSTALL_HDR_PATH='%{pkg}/usr'
|
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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user