[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [PATCH v3 39/43] mini-os: create the image for arm



Signed-off-by: Huang Shijie <shijie.huang@xxxxxxx>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 1e5686a..a505563 100644
--- a/Makefile
+++ b/Makefile
@@ -179,7 +179,11 @@ $(OBJ_DIR)/$(TARGET): $(OBJS) $(APP_O) arch_lib 
$(LINK_FILE)
        $(LD) -r $(LDFLAGS) $(HEAD_OBJ) $(APP_O) $(OBJS) $(LDARCHLIB) $(LDLIBS) 
-o $@.o
        $(OBJCOPY) -w -G $(GLOBAL_PREFIX)* -G _start $@.o $@.o
        $(LD) $(LDFLAGS) $(LDFLAGS_FINAL) $@.o $(EXTRA_OBJS) -o $@
+ifeq ($(TARGET_ARCH_FAM),arm)
+       $(OBJCOPY) -O binary $@ $@.img
+else
        gzip -n -f -9 -c $@ >$@.gz
+endif
 
 .PHONY: config
 CONFIG_FILE ?= $(CURDIR)/minios-config.mk
-- 
2.7.4


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.