diff --git a/scripts/create-sysroot.sh b/scripts/create-sysroot.sh index 05b2fc0..1e9f022 100755 --- a/scripts/create-sysroot.sh +++ b/scripts/create-sysroot.sh @@ -11,11 +11,11 @@ mkdir -p $build_dir/sysroot/usr/include/{sys,machine} cp $source_dir/photon/libc/include/*.h $build_dir/sysroot/usr/include platform_headers=$(find $source_dir/photon/libc/sys/$platform \ - -maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \)) + -maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \) 2>/dev/null) platform_sys_headers=$(find $source_dir/photon/libc/sys/$platform/sys \ - -maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \)) + -maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \) 2>/dev/null) platform_sys_arch_headers=$(find $source_dir/photon/libc/sys/$platform/machine/$machine \ - -maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \)) + -maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \) 2>/dev/null) if [ ! -z "$platform_headers" ]; then cp -t $build_dir/sysroot/usr/include $platform_headers @@ -30,9 +30,9 @@ if [ ! -z "$platform_sys_arch_headers" ]; then fi machine_arch_headers=$(find $source_dir/photon/libc/machine/$machine/ \ - -type f \( -iname "*.h" ! -iname "__*" \)) + -type f \( -iname "*.h" ! -iname "__*" \) 2>/dev/null) machine_generic_headers=$(find $source_dir/photon/libc/include/machine/ \ - -type f \( -iname "*.h" ! -iname "__*" \)) + -type f \( -iname "*.h" ! -iname "__*" \) 2>/dev/null) if [ ! -z "$machine_generic_headers" ]; then cp -t $build_dir/sysroot/usr/include/machine $machine_generic_headers