summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-02-03 13:59:46 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-02-03 13:59:46 +0000
commita8f79b8d50115af4c36c07f83ec7dd9bc4475710 (patch)
treef30a0668ae41f06be86a037d6d4ef8e265ff4582 /Makefile
parentb0c2b7e56e62aeb2bca8b4d2ab396f3d83a48def (diff)
downloadlh-bootstrap-a8f79b8d50115af4c36c07f83ec7dd9bc4475710.tar.xz
Add strace and an optional mechanism
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6cbbfe5..ba127fc 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,12 @@ rwfs: $(OUTPUT)/tmp/.lh_rwfs_installed
userfs: $(OUTPUT)/tmp/.lh_userfs_installed
images: $(OUTPUT)/tmp/.lh_diskimages_done
+ifeq ($(LH_DEV),true)
+include sub/strace/Makefile
+LH_DEV_TARGETS := $(OUTPUT)/build-host/.lh_strace_installed
+else
+LH_DEV_TARGETS :=
+endif
# clean everything
distclean:
@@ -57,7 +63,8 @@ $(OUTPUT)/build-build/.lh_done: $(OUTPUT)/build-build/.lh_skarnet_installed $(OU
# The filesystems
-$(OUTPUT)/tmp/.lh_rootfs_installed: $(OUTPUT)/tmp/.lh_layout_installed $(OUTPUT)/build-host/.lh_skarnet_installed $(OUTPUT)/build-host/.lh_socklog_installed $(OUTPUT)/build-host/.lh_bb_installed $(OUTPUT)/build-host/.lh_dropbear_installed
+$(OUTPUT)/tmp/.lh_rootfs_installed: $(OUTPUT)/tmp/.lh_layout_installed $(OUTPUT)/build-host/.lh_skarnet_installed $(OUTPUT)/build-host/.lh_socklog_installed $(OUTPUT)/build-host/.lh_bb_installed $(OUTPUT)/build-host/.lh_dropbear_installed $(LH_DEV_TARGETS)
+
exec setuidgid $(NORMALUSER) touch $@
$(OUTPUT)/tmp/.lh_rwfs_installed: $(OUTPUT)/tmp/.lh_layout_installed