File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
src/trusted/service_runtime Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,14 @@ cmake_minimum_required(VERSION 3.28)
33project (native_client C CXX ASM)
44
55list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
6+
67include (DaemonPlatform/Platform)
78include (NaClFlags)
89
10+ if (NOT PYTHON)
11+ set (PYTHON "python3" )
12+ endif ()
13+
914include_directories ("include-hax" )
1015
1116if (ARCH STREQUAL "i686" )
Original file line number Diff line number Diff line change @@ -482,6 +482,20 @@ if (LINUX AND NOT BUILD_ELSEWHERE)
482482 set_target_properties (nacl_bootstrap PROPERTIES COMPILE_FLAGS "${BOOTSTRAP_FLAGS_STRING} " )
483483 set_target_properties (nacl_bootstrap PROPERTIES COMPILE_DEFINITIONS "${BOOTSTRAP_DEFINITIONS_STRING} " )
484484
485+ add_custom_target (nacl_bootstrap_raw
486+ COMMAND env CXX="${CMAKE_CXX_COMPILER} " "${PYTHON} "
487+ "${CMAKE_CURRENT_LIST_DIR} /linux/ld_bfd.py" "${COMPILER_OVERRIDE} "
488+ -m "${LD_EMUL} "
489+ --build -id
490+ -static
491+ -z "max-page-size=0x1000"
492+ --defsym RESERVE_TOP="${RESERVE_TOP} "
493+ --script "${CMAKE_CURRENT_LIST_DIR} /linux/nacl_bootstrap.x"
494+ -o "${CMAKE_BINARY_DIR} /src/trusted/service_runtime/nacl_bootstrap_raw"
495+ "${CMAKE_CURRENT_BINARY_DIR} /CMakeFiles/nacl_bootstrap.dir/linux/nacl_bootstrap.c.o"
496+ DEPENDS nacl_bootstrap
497+ )
498+
485499#TODO: bootstrap_raw = bootstrap_env.Command(
486500#TODO: 'nacl_bootstrap_raw',
487501#TODO: [bootstrap_obj],
You can’t perform that action at this time.
0 commit comments