diff --git a/pkgs/os-specific/linux/kernel/builder.sh b/pkgs/os-specific/linux/kernel/builder.sh index a8af9107b83..696b2f2fbe4 100644 --- a/pkgs/os-specific/linux/kernel/builder.sh +++ b/pkgs/os-specific/linux/kernel/builder.sh @@ -126,7 +126,7 @@ installPhase() { # copy include files includeDir=$out/lib/modules/$version/build/include mkdir -p $includeDir - (cd include && cp -a */ $includeDir) + (cd include && cp -a * $includeDir) (cd arch/$archDir/include && cp -a * $includeDir || true) (cd arch/$archDir/include && cp -a asm/* $includeDir/asm/ || true) (cd arch/$archDir/include/asm/mach-generic && cp -a * $includeDir/ || true)