From f1e680424a1cdb54b84e545e8de923dd6f0a6095 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Thu, 22 Aug 2019 19:17:57 +0200 Subject: [PATCH] linux recipe updated. --- linux/recipe.spec | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/linux/recipe.spec b/linux/recipe.spec index 347eb04..2df98cf 100644 --- a/linux/recipe.spec +++ b/linux/recipe.spec @@ -1,11 +1,28 @@ name: linux -version: 5.2.4 -release: 1 +version: 5.2.9 sources: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-%{version}.tar.xz + @build - true + cd 'linux-%{version}' + + # FIXME: We’ll need to provide configuration at some point. + make alldefconfig + make @install - mkdir -p '%{pkg}/usr' - cd 'linux-%{version}' && make headers_%{name} ARCH=x86_64 INSTALL_HDR_PATH='%{pkg}/usr' + 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