From b7205692f24e9dc6ac708464a6f79eee4db9af8f Mon Sep 17 00:00:00 2001 From: Matias Fonzo Date: Sat, 16 Dec 2017 19:48:40 -0300 Subject: [PATCH] recipes: kernel: handle source directory for split the packages, correctly --- recipes/kernel/buildtree-generic/recipe | 7 +++++-- recipes/kernel/generic/recipe | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/recipes/kernel/buildtree-generic/recipe b/recipes/kernel/buildtree-generic/recipe index c6e38e9d..137f5e90 100644 --- a/recipes/kernel/buildtree-generic/recipe +++ b/recipes/kernel/buildtree-generic/recipe @@ -29,8 +29,8 @@ This package includes the kernel sources from the build tree generated for the 'generic' kernel. Note: - The package does not provide the documentation -for the Linux kernel due to its huge size. + This package does not provide the Documentation +directory of the Linux kernel due to its huge size. *Check the original sources* " @@ -49,5 +49,8 @@ build() # Too much in terms of size for the kernel documentation rm -rf "${destdir}/usr/src/${srcdir}/Documentation" + + # Tell Qi to eliminate 'srcdir' (unless you want to preserve it using -k) + unset keepsrcdir } diff --git a/recipes/kernel/generic/recipe b/recipes/kernel/generic/recipe index c9327447..6afcfbe7 100644 --- a/recipes/kernel/generic/recipe +++ b/recipes/kernel/generic/recipe @@ -18,6 +18,8 @@ program=linux version=4.9.46 release=1 +# Recipe flags +keepsrcdir=keepsrcdir pkgname=kernel-generic tarname=${program}-libre-${version}-gnu.tar.lz -- 2.11.4.GIT