Suppressed error messages in create-sysroot.sh
This commit is contained in:
@@ -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
|
cp $source_dir/photon/libc/include/*.h $build_dir/sysroot/usr/include
|
||||||
|
|
||||||
platform_headers=$(find $source_dir/photon/libc/sys/$platform \
|
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 \
|
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 \
|
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
|
if [ ! -z "$platform_headers" ]; then
|
||||||
cp -t $build_dir/sysroot/usr/include $platform_headers
|
cp -t $build_dir/sysroot/usr/include $platform_headers
|
||||||
@@ -30,9 +30,9 @@ if [ ! -z "$platform_sys_arch_headers" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
machine_arch_headers=$(find $source_dir/photon/libc/machine/$machine/ \
|
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/ \
|
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
|
if [ ! -z "$machine_generic_headers" ]; then
|
||||||
cp -t $build_dir/sysroot/usr/include/machine $machine_generic_headers
|
cp -t $build_dir/sysroot/usr/include/machine $machine_generic_headers
|
||||||
|
|||||||
Reference in New Issue
Block a user