commit 0d91d0664e1dbd62d351385ad6aec3455c63d442
parent 17ec45ef857ca04f5d9d86e5933aad75d794cdf0
Author: Roberto Vargas <roberto.vargas@arm.com>
Date: Fri, 29 Mar 2019 10:42:50 +0000
Generate example.a
This file is needed for the hosted version and it is
only an example to help while developing the
file system abstractions.
Change-Id: I9e24ecb7a52950529d5c3ca169ababee6f76f09c
Diffstat:
5 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,5 +1,4 @@
*.o
-*.a
*.d
*.bin
*.elf
diff --git a/drivers/Makefile b/drivers/Makefile
@@ -2,9 +2,12 @@
PROJECTDIR=..
include $(PROJECTDIR)/scripts/rules.mk
-all clean: devs.mk blobs.mk
+all clean: devs.mk blobs.mk example.a
$(MAKE) -f Makefile.drv $@
+example.a: dev.c blobs.h devar.c pl011.c
+ $(AR) -qv $@ dev.c blobs.h devar.c pl011.c
+
devs.mk: $(TARGETDIR)/rcode
mkdev $(TARGETDIR)/rcode
diff --git a/drivers/dev.h b/include/rcode/dev.h
diff --git a/target/hosted/rcode b/target/hosted/rcode
@@ -6,6 +6,6 @@ dev
ar
blob
bios 0x100,0x400
- ../target/hosted/example.ar
+ example.a
../target/hosted/rom.c
end
diff --git a/target/hosted/rom.c b/target/hosted/rom.c
@@ -55,9 +55,11 @@ namespace(void)
{
if (bind("#t0", "/dev/uart") < 0)
goto error;
+ if (bind("#t0", "/dev/cons") < 0)
+ goto error;
if (bind("#r", "/arfs") < 0)
goto error;
- if (arnew("/blobs/example.ar") < 0)
+ if (arnew("/blobs/example.a") < 0)
goto error;
return;