From b915fa43ec96dd1c44846afd4345e9775f95fba6 Mon Sep 17 00:00:00 2001 From: Leon Woestenberg Date: Tue, 31 Jul 2012 00:03:27 +0200 Subject: kernel.bbclass: Copy bounds.h only if it exists, needed for 2.6.x. Linux 2.6.x kernels did not (all) have the bounds.h file, so copy only iff exists. (From OE-Core rev: 02ac0d1b65389e1779d5f95047f761d7a82ef7a4) Signed-off-by: Leon Woestenberg Signed-off-by: Richard Purdie --- meta/classes/kernel.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/classes') diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index ab984e3e88..1d8dff9ada 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -188,7 +188,9 @@ kernel_do_install() { fi # Necessary for building modules like compat-wireless. - cp include/generated/bounds.h $kerneldir/include/generated/bounds.h + if [ -f include/generated/bounds.h ]; then + cp include/generated/bounds.h $kerneldir/include/generated/bounds.h + fi # Remove the following binaries which cause strip or arch QA errors # during do_package for cross-compiled platforms -- cgit v1.2.3-54-g00ecf