Small changes to Magenta sys files

This commit is contained in:
Max Wash
2020-05-01 20:39:22 +01:00
parent 7acf66de3e
commit f7fc9ef510
5 changed files with 31 additions and 16 deletions

View File

@@ -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