From 3ab7073fc255dcc17d559485ae6a54c888c72766 Mon Sep 17 00:00:00 2001 From: Geoffrey Challen Date: Wed, 17 Feb 2016 07:54:32 -0500 Subject: [PATCH] Linking root and base during kernel installation. --- .gitignore | 1 + mk/os161.kernel.mk | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index c11a4e6..76e1319 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /.settings /.project /.cproject +/.root /kern/compile/ /defs.mk build diff --git a/mk/os161.kernel.mk b/mk/os161.kernel.mk index ebb8003..9825679 100644 --- a/mk/os161.kernel.mk +++ b/mk/os161.kernel.mk @@ -163,6 +163,9 @@ includelinks: clean: rm -f *.o *.a tags $(KERNEL) rm -rf includelinks + @ABSTOP=$$(readlink -f $(TOP)) + unlink $(OSTREE)/.src + unlink $(TOP)/.root distclean cleandir: clean rm -f .depend @@ -188,6 +191,9 @@ install: cp $(KERNEL) $(OSTREE)/$(KERNEL)-$(CONFNAME) -rm -f $(OSTREE)/$(KERNEL) ln -s $(KERNEL)-$(CONFNAME) $(OSTREE)/$(KERNEL) + @ABSTOP=$$(readlink -f $(TOP)) + ln -Tsf $(ABSTOP) $(OSTREE)/.src + ln -Tsf $(OSTREE) $(ABSTOP)/.root # # Run tags on all the sources and header files. This is probably not