[MINIOS] Allows the use of a C library without modifying Mini-OS source files.

From: John Ramsdell
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-05-26 13:23:18 +01:00
1 parent 1fa74a12d2
commit 165bf6f0bd
3 files changed
+12 -5

No files matched your search

+5 -4
View File
@@ -13,6 +13,7 @@ CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline
override CPPFLAGS := -Iinclude $(CPPFLAGS)
ASFLAGS = -D__ASSEMBLY__
LDLIBS = -L. -lminios
LDFLAGS := -N -T minios-$(TARGET_ARCH).lds
ifeq ($(TARGET_ARCH),x86_32)
@@ -55,11 +56,11 @@ default: $(TARGET)
links:
[ -e include/xen ] || ln -sf ../../../xen/include/public include/xen
libminios.a: $(OBJS) $(HEAD)
ar r libminios.a $(HEAD) $(OBJS)
libminios.a: links $(OBJS) $(HEAD)
$(AR) r libminios.a $(HEAD) $(OBJS)
$(TARGET): links libminios.a $(HEAD)
$(LD) $(LDFLAGS) $(HEAD) -L. -lminios -o $@.elf
$(TARGET): libminios.a $(HEAD)
$(LD) $(LDFLAGS) $(HEAD) $(LDLIBS) -o $@.elf
gzip -f -9 -c $@.elf >$@.gz
.PHONY: clean
+3 -1
View File
@@ -54,6 +54,8 @@
* $FreeBSD: src/sys/libkern/divdi3.c,v 1.6 1999/08/28 00:46:31 peter Exp $
*/
#if !defined HAVE_LIBC
#include <os.h>
#include <types.h>
#include <hypervisor.h>
@@ -789,4 +791,4 @@ int sscanf(const char * buf, const char * fmt, ...)
return i;
}
#endif
+4
View File
@@ -18,6 +18,8 @@
****************************************************************************
*/
#if !defined HAVE_LIBC
#include <os.h>
#include <types.h>
#include <lib.h>
@@ -153,3 +155,5 @@ char * strstr(const char * s1,const char * s2)
}
return NULL;
}
#endif
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.