LLVM Minix changes

- import libcxx
 - reduce targets to the one when compiled as a tools

Change-Id: Iabb8427f80ff8e89463559a28bcb8b4f2bdbc496
This commit is contained in:
2014-07-28 17:05:59 +02:00
parent fe5a129a88
commit 4684ddb6aa
5408 changed files with 694541 additions and 5722 deletions
+3 -2
View File
@@ -52,11 +52,12 @@ static ssize_t hello_read(devminor_t UNUSED(minor), u64_t position,
u64_t dev_size;
char *ptr;
int ret;
char *buf = HELLO_MESSAGE;
printf("hello_read()\n");
/* This is the total size of our device. */
dev_size = (u64_t) strlen(HELLO_MESSAGE);
dev_size = (u64_t) strlen(buf);
/* Check for EOF, and possibly limit the read size. */
if (position >= dev_size) return 0; /* EOF */
@@ -64,7 +65,7 @@ static ssize_t hello_read(devminor_t UNUSED(minor), u64_t position,
size = (size_t)(dev_size - position); /* limit size */
/* Copy the requested part to the caller. */
ptr = HELLO_MESSAGE + (size_t)position;
ptr = buf + (size_t)position;
if ((ret = sys_safecopyto(endpt, grant, 0, (vir_bytes) ptr, size)) != OK)
return ret;
+2 -2
View File
@@ -10,8 +10,8 @@ OBJS= ${SRCS:N*.h:R:S/$/.o/g}
MKBUILDEXT2RD?= no
RAMDISK_PATH= ${NETBSDSRCDIR}/drivers/ramdisk
DPADD+= ${LIBBLOCKDRIVER} ${LIBCHARDRIVER} ${LIBSYS}
LDADD+= -lblockdriver -lchardriver -lsys
DPADD+= ${LIBBLOCKDRIVER} ${LIBCHARDRIVER}
LDADD+= -lblockdriver -lchardriver
MAN=