BuildSystem: using sysroot doesn't need root privileges anymore!
Sysroot is now created with fakeroot. This allows root access to be only needed for disk image creation, since it uses loopback devices.
This commit is contained in:
@@ -11,7 +11,6 @@ target_compile_options(Shell PUBLIC -O2 -g)
|
||||
target_link_libraries(Shell PUBLIC libc ban)
|
||||
|
||||
add_custom_target(Shell-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/Shell ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/Shell ${BANAN_BIN}/
|
||||
DEPENDS Shell
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(cat-mmap PUBLIC -O2 -g)
|
||||
target_link_libraries(cat-mmap PUBLIC libc)
|
||||
|
||||
add_custom_target(cat-mmap-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/cat-mmap ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/cat-mmap ${BANAN_BIN}/
|
||||
DEPENDS cat-mmap
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(cat PUBLIC -O2 -g)
|
||||
target_link_libraries(cat PUBLIC libc)
|
||||
|
||||
add_custom_target(cat-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/cat ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/cat ${BANAN_BIN}/
|
||||
DEPENDS cat
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(chmod PUBLIC -O2 -g)
|
||||
target_link_libraries(chmod PUBLIC libc)
|
||||
|
||||
add_custom_target(chmod-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/chmod ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/chmod ${BANAN_BIN}/
|
||||
DEPENDS chmod
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(cp PUBLIC -O2 -g)
|
||||
target_link_libraries(cp PUBLIC libc ban)
|
||||
|
||||
add_custom_target(cp-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/cp ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/cp ${BANAN_BIN}/
|
||||
DEPENDS cp
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -20,9 +20,8 @@ target_compile_options($PROGRAM_NAME PUBLIC -O2 -g)
|
||||
target_link_libraries($PROGRAM_NAME PUBLIC libc)
|
||||
|
||||
add_custom_target($PROGRAM_NAME-install
|
||||
COMMAND sudo cp \${CMAKE_CURRENT_BINARY_DIR}/$PROGRAM_NAME \${BANAN_BIN}/
|
||||
COMMAND \${CMAKE_COMMAND} -E copy \${CMAKE_CURRENT_BINARY_DIR}/$PROGRAM_NAME \${BANAN_BIN}/
|
||||
DEPENDS $PROGRAM_NAME
|
||||
USES_TERMINAL
|
||||
)
|
||||
EOF
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(dd PUBLIC -O2 -g)
|
||||
target_link_libraries(dd PUBLIC libc)
|
||||
|
||||
add_custom_target(dd-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/dd ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/dd ${BANAN_BIN}/
|
||||
DEPENDS dd
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(echo PUBLIC -O2 -g)
|
||||
target_link_libraries(echo PUBLIC libc)
|
||||
|
||||
add_custom_target(echo-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/echo ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/echo ${BANAN_BIN}/
|
||||
DEPENDS echo
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(id PUBLIC -O2 -g)
|
||||
target_link_libraries(id PUBLIC libc ban)
|
||||
|
||||
add_custom_target(id-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/id ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/id ${BANAN_BIN}/
|
||||
DEPENDS id
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(init PUBLIC -O2 -g)
|
||||
target_link_libraries(init PUBLIC libc ban)
|
||||
|
||||
add_custom_target(init-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/init ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/init ${BANAN_BIN}/
|
||||
DEPENDS init
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(ls PUBLIC -O2 -g)
|
||||
target_link_libraries(ls PUBLIC libc)
|
||||
|
||||
add_custom_target(ls-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/ls ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/ls ${BANAN_BIN}/
|
||||
DEPENDS ls
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(meminfo PUBLIC -O2 -g)
|
||||
target_link_libraries(meminfo PUBLIC libc)
|
||||
|
||||
add_custom_target(meminfo-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/meminfo ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/meminfo ${BANAN_BIN}/
|
||||
DEPENDS meminfo
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(mkdir PUBLIC -O2 -g)
|
||||
target_link_libraries(mkdir PUBLIC libc)
|
||||
|
||||
add_custom_target(mkdir-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/mkdir ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/mkdir ${BANAN_BIN}/
|
||||
DEPENDS mkdir
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(mmap-shared-test PUBLIC -O2 -g)
|
||||
target_link_libraries(mmap-shared-test PUBLIC libc)
|
||||
|
||||
add_custom_target(mmap-shared-test-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/mmap-shared-test ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/mmap-shared-test ${BANAN_BIN}/
|
||||
DEPENDS mmap-shared-test
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(poweroff PUBLIC -O2 -g)
|
||||
target_link_libraries(poweroff PUBLIC libc)
|
||||
|
||||
add_custom_target(poweroff-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/poweroff ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/poweroff ${BANAN_BIN}/
|
||||
DEPENDS poweroff
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(rm PUBLIC -O2 -g)
|
||||
target_link_libraries(rm PUBLIC libc ban)
|
||||
|
||||
add_custom_target(rm-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/rm ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/rm ${BANAN_BIN}/
|
||||
DEPENDS rm
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(snake PUBLIC -O2 -g)
|
||||
target_link_libraries(snake PUBLIC libc)
|
||||
|
||||
add_custom_target(snake-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/snake ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/snake ${BANAN_BIN}/
|
||||
DEPENDS snake
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(stat PUBLIC -O2 -g)
|
||||
target_link_libraries(stat PUBLIC libc ban)
|
||||
|
||||
add_custom_target(stat-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/stat ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/stat ${BANAN_BIN}/
|
||||
DEPENDS stat
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(sync PUBLIC -O2 -g)
|
||||
target_link_libraries(sync PUBLIC libc)
|
||||
|
||||
add_custom_target(sync-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/sync ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/sync ${BANAN_BIN}/
|
||||
DEPENDS sync
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(tee PUBLIC -O2 -g)
|
||||
target_link_libraries(tee PUBLIC libc)
|
||||
|
||||
add_custom_target(tee-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/tee ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/tee ${BANAN_BIN}/
|
||||
DEPENDS tee
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(test-globals PUBLIC -O2 -g)
|
||||
target_link_libraries(test-globals PUBLIC libc)
|
||||
|
||||
add_custom_target(test-globals-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/test-globals ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/test-globals ${BANAN_BIN}/
|
||||
DEPENDS test-globals
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(test PUBLIC -O2 -g)
|
||||
target_link_libraries(test PUBLIC libc)
|
||||
|
||||
add_custom_target(test-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/test ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/test ${BANAN_BIN}/
|
||||
DEPENDS test
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(touch PUBLIC -O2 -g)
|
||||
target_link_libraries(touch PUBLIC libc)
|
||||
|
||||
add_custom_target(touch-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/touch ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/touch ${BANAN_BIN}/
|
||||
DEPENDS touch
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(u8sum PUBLIC -O2 -g)
|
||||
target_link_libraries(u8sum PUBLIC libc)
|
||||
|
||||
add_custom_target(u8sum-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/u8sum ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/u8sum ${BANAN_BIN}/
|
||||
DEPENDS u8sum
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(whoami PUBLIC -O2 -g)
|
||||
target_link_libraries(whoami PUBLIC libc ban)
|
||||
|
||||
add_custom_target(whoami-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/whoami ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/whoami ${BANAN_BIN}/
|
||||
DEPENDS whoami
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ target_compile_options(yes PUBLIC -O2 -g)
|
||||
target_link_libraries(yes PUBLIC libc)
|
||||
|
||||
add_custom_target(yes-install
|
||||
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/yes ${BANAN_BIN}/
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/yes ${BANAN_BIN}/
|
||||
DEPENDS yes
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user