summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2002-10-08 22:21:28 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2002-10-08 22:21:28 +0000
commit79a790a53f60ff71cf5b77d7afe4ff3d7731edde (patch)
tree2971974be5dfa598beb355fc6b44061849f5d407 /Makefile
parent29d00ff0330e6ba6b1caf79410877a453d7fe8d1 (diff)
Implemented 'romfs' target so that uClibc works with building uClinux.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ed4bd3d11..4087c2a0c 100644
--- a/Makefile
+++ b/Makefile
@@ -64,9 +64,20 @@ finished: shared
@echo
#
-# dummy target for uClinux distro
+# Target for uClinux distro
#
romfs:
+ifeq ($(strip $(HAVE_SHARED)),true)
+ install -d $(ROMFSDIR)/lib
+ install -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
+ $(ROMFSDIR)/lib
+ cp -a lib/*.so.* $(ROMFSDIR)/lib
+ @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
+ set -x -e; \
+ install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
+ $(ROMFSDIR)/lib; \
+ fi;
+endif
headers: dummy
rm -f include/asm;