Sysroot headers can now be built without the build system
This commit is contained in:
@@ -59,6 +59,8 @@ add_custom_target(crt ALL
|
||||
DEPENDS ${crt_bin}
|
||||
COMMENT "Generating CRT files")
|
||||
|
||||
set(photon_libc_crt_bin ${crt_bin} PARENT_SCOPE)
|
||||
|
||||
file(GLOB platform_sources
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/photon/libc/sys/${platform}/*.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/photon/libc/sys/${platform}/machine/${machine}/*.c
|
||||
|
||||
@@ -34,7 +34,9 @@ def mkdir_p(path):
|
||||
source_dir = sys.argv[1]
|
||||
bin_dir = sys.argv[2]
|
||||
sysroot_dir = sys.argv[3]
|
||||
(machine, platform) = get_platform(bin_dir)
|
||||
# (machine, platform) = get_platform(bin_dir)
|
||||
machine = sys.argv[4]
|
||||
platform = sys.argv[5]
|
||||
|
||||
base_headers_path = '{}/photon/libc/include'.format(source_dir)
|
||||
platform_headers_path = '{}/photon/libc/sys/{}'.format(source_dir, platform)
|
||||
|
||||
Reference in New Issue
Block a user