From 0bd807ff313c448ece58e02e5e580924810c08f1 Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Thu, 13 Oct 2022 20:59:10 +0800 Subject: [PATCH] dist: tk4: make a full copy of arch code in include path Upstream: no TK4 have this odd behaviour, just try to be compatible. Signed-off-by: Kairui Song --- dist/templates/kernel.template.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/templates/kernel.template.spec b/dist/templates/kernel.template.spec index a904518b8..42dc9cb50 100644 --- a/dist/templates/kernel.template.spec +++ b/dist/templates/kernel.template.spec @@ -863,8 +863,8 @@ InstKernelDevel() { cp -a $_KernBuild/arch/$Arch/kernel/module.lds arch/$Arch/kernel/ fi - # Symlink include/asm-$Arch for better compatibility with some old system - ln -sfr arch/$Arch include/asm-$Arch + # Copy include/asm-$Arch for better compatibility with some old system + cp -a $_KernSrc/arch/$Arch include/asm-$Arch # Delete obj files find include -iname "*.o" -o -iname "*.cmd" -delete