| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [PATCH 37/40] arm64: add the makefile
 Hi Shijie, On 03/11/17 03:12, Huang Shijie wrote: This is really ugly and clearly show the lack of cohesion between arm64 and arm32. You would not need that if the directory arm where containing only common code. +src-$(CONFIG_BALLOON) += ../balloon.c + +ARCH_OBJS := $(patsubst %.c,$(OBJ_DIR)/%.o,$(src-y)) +ARCH_OBJS += $(OBJ_DIR)/hypercalls64.o +endif + +all: $(OBJ_DIR)/$(ARCH_LIB) + +# $(HEAD_ARCH_OBJ) is only built here, needed on linking +# in ../../Makefile. +$(OBJ_DIR)/$(ARCH_LIB): $(ARCH_OBJS) $(OBJ_DIR)/$(HEAD_ARCH_OBJ) + $(AR) rv $(OBJ_DIR)/$(ARCH_LIB) $(ARCH_OBJS) + +clean: + rm -f $(OBJ_DIR)/$(ARCH_LIB) $(ARCH_OBJS) $(OBJ_DIR)/$(HEAD_ARCH_OBJ) diff --git a/arch/arm/arm64/arch.mk b/arch/arm/arm64/arch.mk new file mode 100644 index 0000000..28e1d9c --- /dev/null +++ b/arch/arm/arm64/arch.mk @@ -0,0 +1,7 @@ +ifeq ($(MINIOS_TARGET_ARCH),arm64) +ARCH_CFLAGS := -D__aarch64__ -DXEN_HAVE_PV_GUEST_ENTRY -mgeneral-regs-only -fno-PIE Why do you need to define __aarch64__? The compiler should to it for you.Why do you define XEN_HAVE_PV_GUEST_ENTRY? Arm does not have any start_info page. Lastly, why -fno-PIE? +ARCH_LDFLAGS := +ARCH_ASFLAGS := +EXTRA_INC += $(TARGET_ARCH_FAM)/$(MINIOS_TARGET_ARCH) +EXTRA_SRC += arch/$(EXTRA_INC) +endif Cheers, -- Julien Grall _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |