Small changes to Magenta sys files
This commit is contained in:
@@ -16,12 +16,28 @@ platform_sys_headers=$(find $source_dir/photon/libc/sys/$platform/sys \
|
||||
-maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \))
|
||||
platform_sys_arch_headers=$(find $source_dir/photon/libc/sys/$platform/machine/$machine \
|
||||
-maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \))
|
||||
cp -t $build_dir/sysroot/usr/include $platform_headers
|
||||
cp -t $build_dir/sysroot/usr/include/sys $platform_sys_headers
|
||||
cp -t $build_dir/sysroot/usr/include/sys $platform_sys_arch_headers
|
||||
|
||||
if [ ! -z "$platform_headers" ]; then
|
||||
cp -t $build_dir/sysroot/usr/include $platform_headers
|
||||
fi
|
||||
|
||||
if [ ! -z "$platform_sys_headers" ]; then
|
||||
cp -t $build_dir/sysroot/usr/include/sys $platform_sys_headers
|
||||
fi
|
||||
|
||||
if [ ! -z "$platform_sys_arch_headers" ]; then
|
||||
cp -t $build_dir/sysroot/usr/include/sys $platform_sys_arch_headers
|
||||
fi
|
||||
|
||||
machine_arch_headers=$(find $source_dir/photon/libc/machine/$machine/ \
|
||||
-type f \( -iname "*.h" ! -iname "__*" \))
|
||||
machine_generic_headers=$(find $source_dir/photon/libc/include/machine/ \
|
||||
-type f \( -iname "*.h" ! -iname "__*" \))
|
||||
cp -t $build_dir/sysroot/usr/include/machine $machine_generic_headers $machine_arch_headers
|
||||
|
||||
if [ ! -z "$machine_generic_headers" ]; then
|
||||
cp -t $build_dir/sysroot/usr/include/machine $machine_generic_headers
|
||||
fi
|
||||
|
||||
if [ ! -z "$machine_arch_headers" ]; then
|
||||
cp -t $build_dir/sysroot/usr/include/machine $machine_arch_headers
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user