Implemented printf and friends

This commit is contained in:
Max Wash
2020-04-03 19:21:22 +01:00
parent 4e7c3c20b1
commit ea2651bd55
17 changed files with 1033 additions and 5 deletions

View File

@@ -10,10 +10,15 @@ 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 "__*" \))
platform_sys_headers=$(find $source_dir/photon/libc/sys/$platform/sys -maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \))
platform_headers=$(find $source_dir/photon/libc/sys/$platform \
-maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \))
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
machine_arch_headers=$(find $source_dir/photon/libc/machine/$machine/ \
-type f \( -iname "*.h" ! -iname "__*" \))