Просмотр исходного кода

install_kernel_headers: comment out copying of extra directories,
this seem to be not needed

Denis Vlasenko 16 лет назад
Родитель
Сommit
56ecf3ceca
1 измененных файлов с 11 добавлено и 9 удалено
  1. 11 9
      extra/scripts/install_kernel_headers.sh

+ 11 - 9
extra/scripts/install_kernel_headers.sh

@@ -60,15 +60,17 @@ if test "`(cd "$KERNEL_HEADERS"; env pwd)`" != "`(cd "$2"; env pwd)`"; then
 		die_if_not_dir "$2/asm-generic"
 		die_if_not_dir "$2/asm-generic"
 		cp -RHL "$KERNEL_HEADERS/asm-generic"/* "$2/asm-generic" || exit 1
 		cp -RHL "$KERNEL_HEADERS/asm-generic"/* "$2/asm-generic" || exit 1
 	fi
 	fi
-	# For paranoid reasons, we use explicit list of directories
+## vda: looks like I was fooled by two mtd directories existing
-	# which may be here. List last updated for linux-2.6.27:
+## in include/ and include/linux/. This seems to be not needed.
-	for dir in drm mtd rdma sound video; do
+##	# For paranoid reasons, we use explicit list of directories
-		if test -d "$KERNEL_HEADERS/$dir"; then
+##	# which may be here. List last updated for linux-2.6.27:
-			mkdir -p "$2/$dir" 2>/dev/null
+##	for dir in drm mtd rdma sound video; do
-			die_if_not_dir "$2/$dir"
+##		if test -d "$KERNEL_HEADERS/$dir"; then
-			cp -RHL "$KERNEL_HEADERS/$dir"/* "$2/$dir" || exit 1
+##			mkdir -p "$2/$dir" 2>/dev/null
-		fi
+##			die_if_not_dir "$2/$dir"
-	done
+##			cp -RHL "$KERNEL_HEADERS/$dir"/* "$2/$dir" || exit 1
+##		fi
+##	done
 	if ! test -f "$2/linux/version.h"; then
 	if ! test -f "$2/linux/version.h"; then
 		echo "Warning: '$KERNEL_HEADERS/linux/version.h' is not found"
 		echo "Warning: '$KERNEL_HEADERS/linux/version.h' is not found"
 		echo "in kernel headers directory specified in .config."
 		echo "in kernel headers directory specified in .config."