Home | History | Annotate | Download | only in core
      1 LOCAL_MODULE_CLASS := EXECUTABLES
      2 LOCAL_MODULE_SUFFIX := 
      3 LOCAL_FORCE_STATIC_EXECUTABLE := true
      4 
      5 include $(BUILD_SYSTEM)/binary.mk
      6 
      7 $(LOCAL_BUILT_MODULE) : PRIVATE_ELF_FILE := $(intermediates)/$(PRIVATE_MODULE).elf
      8 $(LOCAL_BUILT_MODULE) : PRIVATE_LIBS := `$(TARGET_CC) -mthumb-interwork -print-libgcc-file-name`
      9 
     10 $(all_objects) : PRIVATE_TARGET_PROJECT_INCLUDES :=
     11 $(all_objects) : PRIVATE_TARGET_C_INCLUDES :=
     12 $(all_objects) : PRIVATE_TARGET_GLOBAL_CFLAGS :=
     13 $(all_objects) : PRIVATE_TARGET_GLOBAL_CPPFLAGS :=
     14 
     15 $(LOCAL_BUILT_MODULE): $(all_objects) $(all_libraries)
     16 	@$(mkdir -p $(dir $@)
     17 	@echo "target Linking: $(PRIVATE_MODULE)"
     18 	$(hide) $(TARGET_LD) \
     19 		$(addprefix --script ,$(PRIVATE_LINK_SCRIPT)) \
     20 		$(PRIVATE_RAW_EXECUTABLE_LDFLAGS) \
     21 		-o $(PRIVATE_ELF_FILE) \
     22 		$(PRIVATE_ALL_OBJECTS) \
     23 		--start-group $(PRIVATE_ALL_STATIC_LIBRARIES) --end-group \
     24 		$(PRIVATE_LIBS)
     25 	$(hide) $(TARGET_OBJCOPY) -O binary $(PRIVATE_ELF_FILE) $@
     26