You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/11/23 18:39:13 UTC
[1/6] incubator-mynewt-core git commit: Nordic SDK - Remove unused
unlicensed files.
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop e9be34dd4 -> 5c42d5037
Nordic SDK - Remove unused unlicensed files.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/d08f8d3b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/d08f8d3b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/d08f8d3b
Branch: refs/heads/develop
Commit: d08f8d3b5ff213ddf68c98c58ed8ecfee7e3e4a5
Parents: 5977366
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Nov 22 12:21:14 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Nov 22 12:25:25 2016 -0800
----------------------------------------------------------------------
.../components/toolchain/gcc/Makefile.common | 156 ------------------
.../components/toolchain/gcc/Makefile.posix | 4 -
.../components/toolchain/gcc/Makefile.windows | 10 --
.../toolchain/gcc/gcc_nrf51_common.ld | 164 -------------------
.../components/toolchain/gcc/nrf51_common.ld | 160 ------------------
.../components/toolchain/gcc/nrf51_xxaa.ld | 13 --
.../components/toolchain/gcc/nrf51_xxab.ld | 13 --
.../components/toolchain/gcc/nrf51_xxac.ld | 13 --
.../components/toolchain/gcc/nrf52_common.ld | 160 ------------------
.../components/toolchain/gcc/nrf52_xxaa.ld | 13 --
.../components/toolchain/gcc/nrf5x_common.ld | 160 ------------------
.../toolchain/iar/iar_nrf51_blank_xxaa.icf | 31 ----
.../toolchain/iar/iar_nrf51_blank_xxac.icf | 31 ----
13 files changed, 928 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.common
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.common b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.common
deleted file mode 100644
index 14e2c7e..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.common
+++ /dev/null
@@ -1,156 +0,0 @@
-DEVICE := NRF51
-DEVICESERIES := nrf51
-
-SDK_INCLUDE_PATH = $(SDK_PATH)/Include/
-SDK_SOURCE_PATH = $(SDK_PATH)/Source/
-TEMPLATE_PATH += $(SDK_SOURCE_PATH)/templates/gcc/
-OUTPUT_BINARY_DIRECTORY := _build
-
-ifeq ($(OS),Windows_NT)
-include $(TEMPLATE_PATH)Makefile.windows
-else
-include $(TEMPLATE_PATH)Makefile.posix
-endif
-
-ifeq ($(LINKER_SCRIPT),)
- ifeq ($(USE_SOFTDEVICE), S110)
- LINKER_SCRIPT = gcc_$(DEVICESERIES)_s110_$(DEVICE_VARIANT).ld
- OUTPUT_FILENAME := $(OUTPUT_FILENAME)_s110_$(DEVICE_VARIANT)
- else
- ifeq ($(USE_SOFTDEVICE), S210)
- LINKER_SCRIPT = gcc_$(DEVICESERIES)_s210_$(DEVICE_VARIANT).ld
- OUTPUT_FILENAME := $(OUTPUT_FILENAME)_s210_$(DEVICE_VARIANT)
- else
- LINKER_SCRIPT = gcc_$(DEVICESERIES)_blank_$(DEVICE_VARIANT).ld
- OUTPUT_FILENAME := $(OUTPUT_FILENAME)_$(DEVICE_VARIANT)
- endif
- endif
-else
-# Use externally defined settings
-endif
-
-CPU := cortex-m0
-
-# Toolchain commands
-CC := "$(GNU_INSTALL_ROOT)/bin/$(GNU_PREFIX)-gcc"
-AS := "$(GNU_INSTALL_ROOT)/bin/$(GNU_PREFIX)-as"
-AR := "$(GNU_INSTALL_ROOT)/bin/$(GNU_PREFIX)-ar" -r
-LD := "$(GNU_INSTALL_ROOT)/bin/$(GNU_PREFIX)-ld"
-NM := "$(GNU_INSTALL_ROOT)/bin/$(GNU_PREFIX)-nm"
-OBJDUMP := "$(GNU_INSTALL_ROOT)/bin/$(GNU_PREFIX)-objdump"
-OBJCOPY := "$(GNU_INSTALL_ROOT)/bin/$(GNU_PREFIX)-objcopy"
-
-MK := mkdir
-RM := rm -rf
-
-OBJECT_DIRECTORY := _build
-LISTING_DIRECTORY := _build
-
-C_SOURCE_FILES += system_$(DEVICESERIES).c
-ASSEMBLER_SOURCE_FILES += gcc_startup_$(DEVICESERIES).s
-
-# Linker flags
-#LDFLAGS += -L"$(GNU_INSTALL_ROOT)/arm-none-eabi/lib/armv6-m"
-#LDFLAGS += -L"$(GNU_INSTALL_ROOT)/lib/gcc/arm-none-eabi/$(GNU_VERSION)/armv6-m"
-LDFLAGS += -Xlinker -Map=$(LISTING_DIRECTORY)/$(OUTPUT_FILENAME).map
-LDFLAGS += -mcpu=$(CPU) -mthumb -mabi=aapcs -L $(TEMPLATE_PATH) -T$(LINKER_SCRIPT)
-
-# Compiler flags
-CFLAGS += -mcpu=$(CPU) -mthumb -mabi=aapcs -D$(DEVICE) -D$(BOARD) -D$(TARGET_CHIP) --std=gnu99
-CFLAGS += -Wall -Werror
-CFLAGS += -mfloat-abi=soft
-
-# Assembler flags
-ASMFLAGS += -x assembler-with-cpp
-
-INCLUDEPATHS += -I"../"
-INCLUDEPATHS += -I"$(SDK_PATH)Include"
-INCLUDEPATHS += -I"$(SDK_PATH)Include/gcc"
-INCLUDEPATHS += -I"$(SDK_PATH)Include/ext_sensors"
-
-# Sorting removes duplicates
-BUILD_DIRECTORIES := $(sort $(OBJECT_DIRECTORY) $(OUTPUT_BINARY_DIRECTORY) $(LISTING_DIRECTORY) )
-
-####################################################################
-# Rules #
-####################################################################
-
-C_SOURCE_FILENAMES = $(notdir $(C_SOURCE_FILES) )
-ASSEMBLER_SOURCE_FILENAMES = $(notdir $(ASSEMBLER_SOURCE_FILES) )
-
-# Make a list of source paths
-C_SOURCE_PATHS += ../ $(SDK_SOURCE_PATH) $(TEMPLATE_PATH) $(wildcard $(SDK_SOURCE_PATH)*/) $(wildcard $(SDK_SOURCE_PATH)ext_sensors/*/) $(wildcard $(SDK_SOURCE_PATH)ble/*/)
-ASSEMBLER_SOURCE_PATHS = ../ $(SDK_SOURCE_PATH) $(TEMPLATE_PATH) $(wildcard $(SDK_SOURCE_PATH)*/)
-
-C_OBJECTS = $(addprefix $(OBJECT_DIRECTORY)/, $(C_SOURCE_FILENAMES:.c=.o) )
-ASSEMBLER_OBJECTS = $(addprefix $(OBJECT_DIRECTORY)/, $(ASSEMBLER_SOURCE_FILENAMES:.s=.o) )
-
-# Set source lookup paths
-vpath %.c $(C_SOURCE_PATHS)
-vpath %.s $(ASSEMBLER_SOURCE_PATHS)
-
-# Include automatically previously generated dependencies
--include $(addprefix $(OBJECT_DIRECTORY)/, $(COBJS:.o=.d))
-
-### Targets
-debug: CFLAGS += -DDEBUG -g3 -O0
-debug: ASMFLAGS += -DDEBUG -g3 -O0
-debug: $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).bin $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex
-
-.PHONY: release
-release: clean
-release: CFLAGS += -DNDEBUG -O3
-release: ASMFLAGS += -DNDEBUG -O3
-release: $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).bin $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex
-
-echostuff:
- @echo C_OBJECTS: [$(C_OBJECTS)]
- @echo C_SOURCE_FILES: [$(C_SOURCE_FILES)]
- @echo C_SOURCE_PATHS: [$(C_SOURCE_PATHS)]
-
-## Create build directories
-$(BUILD_DIRECTORIES):
- $(MK) $@
-
-## Create objects from C source files
-$(OBJECT_DIRECTORY)/%.o: %.c
-# Build header dependencies
- $(CC) $(CFLAGS) $(INCLUDEPATHS) -M $< -MF "$(@:.o=.d)" -MT $@
-# Do the actual compilation
- $(CC) $(CFLAGS) $(INCLUDEPATHS) -c -o $@ $<
-
-## Assemble .s files
-$(OBJECT_DIRECTORY)/%.o: %.s
- $(CC) $(ASMFLAGS) $(INCLUDEPATHS) -c -o $@ $<
-
-## Link C and assembler objects to an .out file
-$(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).out: $(BUILD_DIRECTORIES) $(C_OBJECTS) $(ASSEMBLER_OBJECTS) $(LIBRARIES)
- $(CC) $(LDFLAGS) $(C_OBJECTS) $(ASSEMBLER_OBJECTS) $(LIBRARIES) -o $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).out
-
-## Create binary .bin file from the .out file
-$(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).bin: $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).out
- $(OBJCOPY) -O binary $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).out $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).bin
-
-## Create binary .hex file from the .out file
-$(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex: $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).out
- $(OBJCOPY) -O ihex $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).out $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex
-
-## Default build target
-.PHONY: all
-all: clean release
-
-clean:
- $(RM) $(OUTPUT_BINARY_DIRECTORY)
-
-## Program device
-.PHONY: flash
-flash: $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex
- nrfjprog --reset --program $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex
-
-.PHONY: reset
-reset:
- nrfjprog --reset
-
-.PHONY: erase
-erase:
- nrfjprog --erase
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.posix
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.posix b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.posix
deleted file mode 100644
index 5158324..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.posix
+++ /dev/null
@@ -1,4 +0,0 @@
-GNU_INSTALL_ROOT := /usr/local/gcc-arm-none-eabi-4_9-2015q1
-GNU_VERSION := 4.9.3
-GNU_PREFIX := arm-none-eabi
-
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.windows
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.windows b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.windows
deleted file mode 100644
index d205cbc..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/Makefile.windows
+++ /dev/null
@@ -1,10 +0,0 @@
-ifeq ($(findstring 86, $(ProgramFiles)), )
- PROGFILES := C:/Program Files
-else
- PROGFILES := C:/Program Files (x86)
-endif
-
-GNU_INSTALL_ROOT := $(PROGFILES)/GNU Tools ARM Embedded/4.9 2015q1
-GNU_VERSION := 4.9.3
-GNU_PREFIX := arm-none-eabi
-
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/gcc_nrf51_common.ld
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/gcc_nrf51_common.ld b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/gcc_nrf51_common.ld
deleted file mode 100644
index 088af63..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/gcc_nrf51_common.ld
+++ /dev/null
@@ -1,164 +0,0 @@
-/* Linker script for Nordic Semiconductor nRF5 devices
- *
- * Version: Sourcery G++ 4.5-1
- * Support: https://support.codesourcery.com/GNUToolchain/
- *
- * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
- *
- * The authors hereby grant permission to use, copy, modify, distribute,
- * and license this software and its documentation for any purpose, provided
- * that existing copyright notices are retained in all copies and that this
- * notice is included verbatim in any distributions. No written agreement,
- * license, or royalty fee is required for any of the authorized uses.
- * Modifications to this software may be copyrighted by their authors
- * and need not follow the licensing terms described here, provided that
- * the new terms are clearly indicated on the first page of each file where
- * they apply.
- */
-OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
-
-/* Linker script to place sections and symbol values. Should be used together
- * with other linker script that defines memory regions FLASH and RAM.
- * It references following symbols, which must be defined in code:
- * Reset_Handler : Entry of reset handler
- *
- * It defines following symbols, which code can use without definition:
- * __exidx_start
- * __exidx_end
- * __etext
- * __data_start__
- * __preinit_array_start
- * __preinit_array_end
- * __init_array_start
- * __init_array_end
- * __fini_array_start
- * __fini_array_end
- * __data_end__
- * __bss_start__
- * __bss_end__
- * __end__
- * end
- * __HeapLimit
- * __StackLimit
- * __StackTop
- * __stack
- */
-ENTRY(Reset_Handler)
-
-SECTIONS
-{
- .text :
- {
- KEEP(*(.Vectors))
- *(.text*)
-
- KEEP(*(.init))
- KEEP(*(.fini))
-
- /* .ctors */
- *crtbegin.o(.ctors)
- *crtbegin?.o(.ctors)
- *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
- *(SORT(.ctors.*))
- *(.ctors)
-
- /* .dtors */
- *crtbegin.o(.dtors)
- *crtbegin?.o(.dtors)
- *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
- *(SORT(.dtors.*))
- *(.dtors)
-
- *(.rodata*)
-
- *(.eh_frame*)
- . = ALIGN(4);
- } > FLASH
-
-
- .ARM.extab :
- {
- *(.ARM.extab* .gnu.linkonce.armextab.*)
- . = ALIGN(4);
- } > FLASH
-
- __exidx_start = .;
- .ARM.exidx :
- {
- *(.ARM.exidx* .gnu.linkonce.armexidx.*)
- . = ALIGN(4);
- } > FLASH
- __exidx_end = .;
-
- __etext = .;
-
- .data : AT (__etext)
- {
- __data_start__ = .;
- *(vtable)
- *(.data*)
-
- . = ALIGN(4);
- /* preinit data */
- PROVIDE_HIDDEN (__preinit_array_start = .);
- *(.preinit_array)
- PROVIDE_HIDDEN (__preinit_array_end = .);
-
- . = ALIGN(4);
- /* init data */
- PROVIDE_HIDDEN (__init_array_start = .);
- *(SORT(.init_array.*))
- *(.init_array)
- PROVIDE_HIDDEN (__init_array_end = .);
-
-
- . = ALIGN(4);
- /* finit data */
- PROVIDE_HIDDEN (__fini_array_start = .);
- *(SORT(.fini_array.*))
- *(.fini_array)
- PROVIDE_HIDDEN (__fini_array_end = .);
-
- *(.jcr)
- . = ALIGN(4);
- /* All data end */
- __data_end__ = .;
-
- } > RAM
-
- .bss :
- {
- . = ALIGN(4);
- __bss_start__ = .;
- *(.bss*)
- *(COMMON)
- . = ALIGN(4);
- __bss_end__ = .;
- } > RAM
-
- .heap (COPY):
- {
- __end__ = .;
- end = __end__;
- *(.heap*)
- __HeapLimit = .;
- } > RAM
-
- /* .stack_dummy section doesn't contains any symbols. It is only
- * used for linker to calculate size of stack sections, and assign
- * values to stack symbols later */
- .stack_dummy (COPY):
- {
- *(.stack*)
- } > RAM
-
- /* Set stack top to end of RAM, and stack limit move down by
- * size of stack_dummy section */
- __StackTop = ORIGIN(RAM) + LENGTH(RAM);
- __StackLimit = __StackTop - SIZEOF(.stack_dummy);
- PROVIDE(__stack = __StackTop);
-
- /* Check if data + heap + stack exceeds RAM limit */
- ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_common.ld
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_common.ld b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_common.ld
deleted file mode 100644
index 69c98f8..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_common.ld
+++ /dev/null
@@ -1,160 +0,0 @@
-/* Linker script for Nordic Semiconductor nRF51 devices
- *
- * Version: Sourcery G++ 4.5-1
- * Support: https://support.codesourcery.com/GNUToolchain/
- *
- * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
- *
- * The authors hereby grant permission to use, copy, modify, distribute,
- * and license this software and its documentation for any purpose, provided
- * that existing copyright notices are retained in all copies and that this
- * notice is included verbatim in any distributions. No written agreement,
- * license, or royalty fee is required for any of the authorized uses.
- * Modifications to this software may be copyrighted by their authors
- * and need not follow the licensing terms described here, provided that
- * the new terms are clearly indicated on the first page of each file where
- * they apply.
- */
-OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
-
-/* Linker script to place sections and symbol values. Should be used together
- * with other linker script that defines memory regions FLASH and RAM.
- * It references following symbols, which must be defined in code:
- * Reset_Handler : Entry of reset handler
- *
- * It defines following symbols, which code can use without definition:
- * __exidx_start
- * __exidx_end
- * __etext
- * __data_start__
- * __preinit_array_start
- * __preinit_array_end
- * __init_array_start
- * __init_array_end
- * __fini_array_start
- * __fini_array_end
- * __data_end__
- * __bss_start__
- * __bss_end__
- * __end__
- * end
- * __HeapLimit
- * __StackLimit
- * __StackTop
- * __stack
- */
-ENTRY(Reset_Handler)
-
-SECTIONS
-{
- .text :
- {
- KEEP(*(.isr_vector))
- *(.text*)
-
- KEEP(*(.init))
- KEEP(*(.fini))
-
- /* .ctors */
- *crtbegin.o(.ctors)
- *crtbegin?.o(.ctors)
- *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
- *(SORT(.ctors.*))
- *(.ctors)
-
- /* .dtors */
- *crtbegin.o(.dtors)
- *crtbegin?.o(.dtors)
- *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
- *(SORT(.dtors.*))
- *(.dtors)
-
- *(.rodata*)
-
- KEEP(*(.eh_frame*))
- } > FLASH
-
- .ARM.extab :
- {
- *(.ARM.extab* .gnu.linkonce.armextab.*)
- } > FLASH
-
- __exidx_start = .;
- .ARM.exidx :
- {
- *(.ARM.exidx* .gnu.linkonce.armexidx.*)
- } > FLASH
- __exidx_end = .;
-
- __etext = .;
-
- .data : AT (__etext)
- {
- __data_start__ = .;
- *(vtable)
- *(.data*)
-
- . = ALIGN(4);
- /* preinit data */
- PROVIDE_HIDDEN (__preinit_array_start = .);
- KEEP(*(.preinit_array))
- PROVIDE_HIDDEN (__preinit_array_end = .);
-
- . = ALIGN(4);
- /* init data */
- PROVIDE_HIDDEN (__init_array_start = .);
- KEEP(*(SORT(.init_array.*)))
- KEEP(*(.init_array))
- PROVIDE_HIDDEN (__init_array_end = .);
-
-
- . = ALIGN(4);
- /* finit data */
- PROVIDE_HIDDEN (__fini_array_start = .);
- KEEP(*(SORT(.fini_array.*)))
- KEEP(*(.fini_array))
- PROVIDE_HIDDEN (__fini_array_end = .);
-
- KEEP(*(.jcr*))
- . = ALIGN(4);
- /* All data end */
- __data_end__ = .;
-
- } > RAM
-
- .bss :
- {
- . = ALIGN(4);
- __bss_start__ = .;
- *(.bss*)
- *(COMMON)
- . = ALIGN(4);
- __bss_end__ = .;
- } > RAM
-
- .heap (COPY):
- {
- __end__ = .;
- PROVIDE(end = .);
- *(.heap*)
- __HeapLimit = .;
- } > RAM
-
- /* .stack_dummy section doesn't contains any symbols. It is only
- * used for linker to calculate size of stack sections, and assign
- * values to stack symbols later */
- .stack_dummy (COPY):
- {
- *(.stack*)
- } > RAM
-
- /* Set stack top to end of RAM, and stack limit move down by
- * size of stack_dummy section */
- __StackTop = ORIGIN(RAM) + LENGTH(RAM);
- __StackLimit = __StackTop - SIZEOF(.stack_dummy);
- PROVIDE(__stack = __StackTop);
-
- /* Check if data + heap + stack exceeds RAM limit */
- ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxaa.ld
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxaa.ld b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxaa.ld
deleted file mode 100644
index 387559b..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxaa.ld
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Linker script to configure memory regions. */
-
-SEARCH_DIR(.)
-GROUP(-lgcc -lc -lnosys)
-
-MEMORY
-{
- FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000
- RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
-}
-
-
-INCLUDE "nrf51_common.ld"
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxab.ld
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxab.ld b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxab.ld
deleted file mode 100644
index 277fe11..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxab.ld
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Linker script to configure memory regions. */
-
-SEARCH_DIR(.)
-GROUP(-lgcc -lc -lnosys)
-
-MEMORY
-{
- FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x20000
- RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
-}
-
-
-INCLUDE "nrf51_common.ld"
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxac.ld
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxac.ld b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxac.ld
deleted file mode 100644
index 5750f38..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf51_xxac.ld
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Linker script to configure memory regions. */
-
-SEARCH_DIR(.)
-GROUP(-lgcc -lc -lnosys)
-
-MEMORY
-{
- FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000
- RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x8000
-}
-
-
-INCLUDE "nrf51_common.ld"
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf52_common.ld
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf52_common.ld b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf52_common.ld
deleted file mode 100644
index 75e2f4c..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf52_common.ld
+++ /dev/null
@@ -1,160 +0,0 @@
-/* Linker script for Nordic Semiconductor nRF52 devices
- *
- * Version: Sourcery G++ 4.5-1
- * Support: https://support.codesourcery.com/GNUToolchain/
- *
- * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
- *
- * The authors hereby grant permission to use, copy, modify, distribute,
- * and license this software and its documentation for any purpose, provided
- * that existing copyright notices are retained in all copies and that this
- * notice is included verbatim in any distributions. No written agreement,
- * license, or royalty fee is required for any of the authorized uses.
- * Modifications to this software may be copyrighted by their authors
- * and need not follow the licensing terms described here, provided that
- * the new terms are clearly indicated on the first page of each file where
- * they apply.
- */
-OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
-
-/* Linker script to place sections and symbol values. Should be used together
- * with other linker script that defines memory regions FLASH and RAM.
- * It references following symbols, which must be defined in code:
- * Reset_Handler : Entry of reset handler
- *
- * It defines following symbols, which code can use without definition:
- * __exidx_start
- * __exidx_end
- * __etext
- * __data_start__
- * __preinit_array_start
- * __preinit_array_end
- * __init_array_start
- * __init_array_end
- * __fini_array_start
- * __fini_array_end
- * __data_end__
- * __bss_start__
- * __bss_end__
- * __end__
- * end
- * __HeapLimit
- * __StackLimit
- * __StackTop
- * __stack
- */
-ENTRY(Reset_Handler)
-
-SECTIONS
-{
- .text :
- {
- KEEP(*(.isr_vector))
- *(.text*)
-
- KEEP(*(.init))
- KEEP(*(.fini))
-
- /* .ctors */
- *crtbegin.o(.ctors)
- *crtbegin?.o(.ctors)
- *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
- *(SORT(.ctors.*))
- *(.ctors)
-
- /* .dtors */
- *crtbegin.o(.dtors)
- *crtbegin?.o(.dtors)
- *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
- *(SORT(.dtors.*))
- *(.dtors)
-
- *(.rodata*)
-
- KEEP(*(.eh_frame*))
- } > FLASH
-
- .ARM.extab :
- {
- *(.ARM.extab* .gnu.linkonce.armextab.*)
- } > FLASH
-
- __exidx_start = .;
- .ARM.exidx :
- {
- *(.ARM.exidx* .gnu.linkonce.armexidx.*)
- } > FLASH
- __exidx_end = .;
-
- __etext = .;
-
- .data : AT (__etext)
- {
- __data_start__ = .;
- *(vtable)
- *(.data*)
-
- . = ALIGN(4);
- /* preinit data */
- PROVIDE_HIDDEN (__preinit_array_start = .);
- KEEP(*(.preinit_array))
- PROVIDE_HIDDEN (__preinit_array_end = .);
-
- . = ALIGN(4);
- /* init data */
- PROVIDE_HIDDEN (__init_array_start = .);
- KEEP(*(SORT(.init_array.*)))
- KEEP(*(.init_array))
- PROVIDE_HIDDEN (__init_array_end = .);
-
-
- . = ALIGN(4);
- /* finit data */
- PROVIDE_HIDDEN (__fini_array_start = .);
- KEEP(*(SORT(.fini_array.*)))
- KEEP(*(.fini_array))
- PROVIDE_HIDDEN (__fini_array_end = .);
-
- KEEP(*(.jcr*))
- . = ALIGN(4);
- /* All data end */
- __data_end__ = .;
-
- } > RAM
-
- .bss :
- {
- . = ALIGN(4);
- __bss_start__ = .;
- *(.bss*)
- *(COMMON)
- . = ALIGN(4);
- __bss_end__ = .;
- } > RAM
-
- .heap (COPY):
- {
- __end__ = .;
- PROVIDE(end = .);
- *(.heap*)
- __HeapLimit = .;
- } > RAM
-
- /* .stack_dummy section doesn't contains any symbols. It is only
- * used for linker to calculate size of stack sections, and assign
- * values to stack symbols later */
- .stack_dummy (COPY):
- {
- *(.stack*)
- } > RAM
-
- /* Set stack top to end of RAM, and stack limit move down by
- * size of stack_dummy section */
- __StackTop = ORIGIN(RAM) + LENGTH(RAM);
- __StackLimit = __StackTop - SIZEOF(.stack_dummy);
- PROVIDE(__stack = __StackTop);
-
- /* Check if data + heap + stack exceeds RAM limit */
- ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf52_xxaa.ld
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf52_xxaa.ld b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf52_xxaa.ld
deleted file mode 100644
index bc89f44..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf52_xxaa.ld
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Linker script to configure memory regions. */
-
-SEARCH_DIR(.)
-GROUP(-lgcc -lc -lnosys)
-
-MEMORY
-{
- FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x80000
- RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000
-}
-
-
-INCLUDE "nrf52_common.ld"
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf5x_common.ld
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf5x_common.ld b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf5x_common.ld
deleted file mode 100644
index 69c98f8..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/gcc/nrf5x_common.ld
+++ /dev/null
@@ -1,160 +0,0 @@
-/* Linker script for Nordic Semiconductor nRF51 devices
- *
- * Version: Sourcery G++ 4.5-1
- * Support: https://support.codesourcery.com/GNUToolchain/
- *
- * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
- *
- * The authors hereby grant permission to use, copy, modify, distribute,
- * and license this software and its documentation for any purpose, provided
- * that existing copyright notices are retained in all copies and that this
- * notice is included verbatim in any distributions. No written agreement,
- * license, or royalty fee is required for any of the authorized uses.
- * Modifications to this software may be copyrighted by their authors
- * and need not follow the licensing terms described here, provided that
- * the new terms are clearly indicated on the first page of each file where
- * they apply.
- */
-OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
-
-/* Linker script to place sections and symbol values. Should be used together
- * with other linker script that defines memory regions FLASH and RAM.
- * It references following symbols, which must be defined in code:
- * Reset_Handler : Entry of reset handler
- *
- * It defines following symbols, which code can use without definition:
- * __exidx_start
- * __exidx_end
- * __etext
- * __data_start__
- * __preinit_array_start
- * __preinit_array_end
- * __init_array_start
- * __init_array_end
- * __fini_array_start
- * __fini_array_end
- * __data_end__
- * __bss_start__
- * __bss_end__
- * __end__
- * end
- * __HeapLimit
- * __StackLimit
- * __StackTop
- * __stack
- */
-ENTRY(Reset_Handler)
-
-SECTIONS
-{
- .text :
- {
- KEEP(*(.isr_vector))
- *(.text*)
-
- KEEP(*(.init))
- KEEP(*(.fini))
-
- /* .ctors */
- *crtbegin.o(.ctors)
- *crtbegin?.o(.ctors)
- *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
- *(SORT(.ctors.*))
- *(.ctors)
-
- /* .dtors */
- *crtbegin.o(.dtors)
- *crtbegin?.o(.dtors)
- *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
- *(SORT(.dtors.*))
- *(.dtors)
-
- *(.rodata*)
-
- KEEP(*(.eh_frame*))
- } > FLASH
-
- .ARM.extab :
- {
- *(.ARM.extab* .gnu.linkonce.armextab.*)
- } > FLASH
-
- __exidx_start = .;
- .ARM.exidx :
- {
- *(.ARM.exidx* .gnu.linkonce.armexidx.*)
- } > FLASH
- __exidx_end = .;
-
- __etext = .;
-
- .data : AT (__etext)
- {
- __data_start__ = .;
- *(vtable)
- *(.data*)
-
- . = ALIGN(4);
- /* preinit data */
- PROVIDE_HIDDEN (__preinit_array_start = .);
- KEEP(*(.preinit_array))
- PROVIDE_HIDDEN (__preinit_array_end = .);
-
- . = ALIGN(4);
- /* init data */
- PROVIDE_HIDDEN (__init_array_start = .);
- KEEP(*(SORT(.init_array.*)))
- KEEP(*(.init_array))
- PROVIDE_HIDDEN (__init_array_end = .);
-
-
- . = ALIGN(4);
- /* finit data */
- PROVIDE_HIDDEN (__fini_array_start = .);
- KEEP(*(SORT(.fini_array.*)))
- KEEP(*(.fini_array))
- PROVIDE_HIDDEN (__fini_array_end = .);
-
- KEEP(*(.jcr*))
- . = ALIGN(4);
- /* All data end */
- __data_end__ = .;
-
- } > RAM
-
- .bss :
- {
- . = ALIGN(4);
- __bss_start__ = .;
- *(.bss*)
- *(COMMON)
- . = ALIGN(4);
- __bss_end__ = .;
- } > RAM
-
- .heap (COPY):
- {
- __end__ = .;
- PROVIDE(end = .);
- *(.heap*)
- __HeapLimit = .;
- } > RAM
-
- /* .stack_dummy section doesn't contains any symbols. It is only
- * used for linker to calculate size of stack sections, and assign
- * values to stack symbols later */
- .stack_dummy (COPY):
- {
- *(.stack*)
- } > RAM
-
- /* Set stack top to end of RAM, and stack limit move down by
- * size of stack_dummy section */
- __StackTop = ORIGIN(RAM) + LENGTH(RAM);
- __StackLimit = __StackTop - SIZEOF(.stack_dummy);
- PROVIDE(__stack = __StackTop);
-
- /* Check if data + heap + stack exceeds RAM limit */
- ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/iar/iar_nrf51_blank_xxaa.icf
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/iar/iar_nrf51_blank_xxaa.icf b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/iar/iar_nrf51_blank_xxaa.icf
deleted file mode 100644
index a05fa11..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/iar/iar_nrf51_blank_xxaa.icf
+++ /dev/null
@@ -1,31 +0,0 @@
-/*###ICF### Section handled by ICF editor, don't touch! ****/
-/*-Editor annotation file-*/
-/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
-/*-Specials-*/
-define symbol __ICFEDIT_intvec_start__ = 0x00000000;
-/*-Memory Regions-*/
-define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
-define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;
-define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
-define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
-/*-Sizes-*/
-define symbol __ICFEDIT_size_cstack__ = 0x800;
-define symbol __ICFEDIT_size_heap__ = 0x800;
-/**** End of ICF editor section. ###ICF###*/
-
-define memory mem with size = 4G;
-define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
-define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
-
-define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
-define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
-
-initialize by copy { readwrite };
-do not initialize { section .noinit };
-
-keep { section .intvec };
-place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
-place in ROM_region { readonly };
-place in RAM_region { readwrite,
- block CSTACK,
- block HEAP };
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d08f8d3b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/iar/iar_nrf51_blank_xxac.icf
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/iar/iar_nrf51_blank_xxac.icf b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/iar/iar_nrf51_blank_xxac.icf
deleted file mode 100644
index ee54a3c..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/toolchain/iar/iar_nrf51_blank_xxac.icf
+++ /dev/null
@@ -1,31 +0,0 @@
-/*###ICF### Section handled by ICF editor, don't touch! ****/
-/*-Editor annotation file-*/
-/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
-/*-Specials-*/
-define symbol __ICFEDIT_intvec_start__ = 0x00000000;
-/*-Memory Regions-*/
-define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
-define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;
-define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
-define symbol __ICFEDIT_region_RAM_end__ = 0x20007FFF;
-/*-Sizes-*/
-define symbol __ICFEDIT_size_cstack__ = 0x800;
-define symbol __ICFEDIT_size_heap__ = 0x800;
-/**** End of ICF editor section. ###ICF###*/
-
-define memory mem with size = 4G;
-define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
-define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
-
-define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
-define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
-
-initialize by copy { readwrite };
-do not initialize { section .noinit };
-
-keep { section .intvec };
-place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
-place in ROM_region { readonly };
-place in RAM_region { readwrite,
- block CSTACK,
- block HEAP };
[6/6] incubator-mynewt-core git commit: Merge branch '1_0_0_b1_dev'
into develop
Posted by cc...@apache.org.
Merge branch '1_0_0_b1_dev' into develop
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/5c42d503
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/5c42d503
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/5c42d503
Branch: refs/heads/develop
Commit: 5c42d5037ee12868a53d9b2cf5d461af8c51d87a
Parents: e9be34d c6a8f88
Author: Christopher Collins <cc...@apache.org>
Authored: Wed Nov 23 10:37:04 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Wed Nov 23 10:37:04 2016 -0800
----------------------------------------------------------------------
.rat-excludes | 7 +
README.md | 189 ++++++++++---------
RELEASE_NOTES.md | 4 +-
.../components/toolchain/gcc/Makefile.common | 156 ---------------
.../components/toolchain/gcc/Makefile.posix | 4 -
.../components/toolchain/gcc/Makefile.windows | 10 -
.../toolchain/gcc/gcc_nrf51_common.ld | 164 ----------------
.../components/toolchain/gcc/nrf51_common.ld | 160 ----------------
.../components/toolchain/gcc/nrf51_xxaa.ld | 13 --
.../components/toolchain/gcc/nrf51_xxab.ld | 13 --
.../components/toolchain/gcc/nrf51_xxac.ld | 13 --
.../components/toolchain/gcc/nrf52_common.ld | 160 ----------------
.../components/toolchain/gcc/nrf52_xxaa.ld | 13 --
.../components/toolchain/gcc/nrf5x_common.ld | 160 ----------------
.../toolchain/iar/iar_nrf51_blank_xxaa.icf | 31 ---
.../toolchain/iar/iar_nrf51_blank_xxac.icf | 31 ---
net/ip/native_sockets/src/native_itf.c | 3 +
net/nimble/host/test/src/ble_hs_test_util.c | 3 -
18 files changed, 113 insertions(+), 1021 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/5c42d503/net/nimble/host/test/src/ble_hs_test_util.c
----------------------------------------------------------------------
[4/6] incubator-mynewt-core git commit: mn_socket - Allow for itfs
with null address flds.
Posted by cc...@apache.org.
mn_socket - Allow for itfs with null address flds.
On my home machine, my "ppp0" pp2p interface triggered this bug. From
`man getifaddrs`:
The ifa_addr field points to a structure containing the
interface address. [...] This field may contain a null pointer.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/eab4949b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/eab4949b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/eab4949b
Branch: refs/heads/develop
Commit: eab4949b208821419b00cdd5cf6e7b0bc8aae05b
Parents: 94ac3d6
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Nov 22 17:33:44 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Nov 22 17:33:44 2016 -0800
----------------------------------------------------------------------
net/ip/native_sockets/src/native_itf.c | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/eab4949b/net/ip/native_sockets/src/native_itf.c
----------------------------------------------------------------------
diff --git a/net/ip/native_sockets/src/native_itf.c b/net/ip/native_sockets/src/native_itf.c
index eb60154..6c186ca 100644
--- a/net/ip/native_sockets/src/native_itf.c
+++ b/net/ip/native_sockets/src/native_itf.c
@@ -166,6 +166,9 @@ native_sock_itf_addr_getnext(struct mn_itf *mi, struct mn_itf_addr *mia)
if (if_nametoindex(ifa->ifa_name) != mi->mif_idx) {
continue;
}
+ if (ifa->ifa_addr == NULL) {
+ continue;
+ }
if (ifa->ifa_addr->sa_family == AF_INET) {
sin = (struct sockaddr_in *)ifa->ifa_addr;
if (addrcmp(MN_AF_INET, &sin->sin_addr,
[3/6] incubator-mynewt-core git commit: Update README and
RELEASE_NOTES for 1.0.0-b1.
Posted by cc...@apache.org.
Update README and RELEASE_NOTES for 1.0.0-b1.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/94ac3d6b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/94ac3d6b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/94ac3d6b
Branch: refs/heads/develop
Commit: 94ac3d6b198ffdb1ab6931eaa00bd4ec56c393b7
Parents: b00148a
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Nov 22 13:45:27 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Nov 22 13:45:27 2016 -0800
----------------------------------------------------------------------
README.md | 189 +++++++++++++++++++++++++++-----------------------
RELEASE_NOTES.md | 4 +-
2 files changed, 103 insertions(+), 90 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/94ac3d6b/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 0abd616..55996e5 100644
--- a/README.md
+++ b/README.md
@@ -23,22 +23,26 @@
## Overview
-Apache Mynewt is an open-source operating system for tiny embedded devices.
-It's goal is to make it easy to develop applications for microcontroller
+Apache Mynewt is an open-source operating system for tiny embedded devices.
+It's goal is to make it easy to develop applications for microcontroller
environments, where power and cost are driving factors.
-It currently supports the following hardware platforms:
-
+It currently supports the following hardware platforms:
* nRF52 DK from Nordic Semiconductor (Cortex-M4)
+* RuuviTag Sensor beacon platform (Nordic nRF52832 based)
* nRF51 DK from Nordic Semiconductor (Cortex-M0)
+* BLE Nano from RedBear (Nordic nRF51822 SoC based)
+* BLE Nano2 and Blend2 from RedBear (Nordic nRF52832 SoC based)
* BMD-300-EVAL-ES from Rigado (Cortex-M4)
* STM32F3DISCOVERY from ST Micro (Cortex-M4)
+* STM32F4DISCOVERY from ST Micro (Cortex-M4)
* STM32-E407 from Olimex (Cortex-M4)
* Arduino Zero (Cortex-M0)
* Arduino Zero Pro (Cortex-M0)
* Arduino M0 Pro (Cortex-M0)
-* NUCLEO-F401RE from STMicroelectronics (Cortex-M4)
+* NUCLEO-F401RE (Cortex-M4)
+* FRDM-K64F from NXP (Cortex-M4)
Apache Mynewt uses the
[Newt](https://www.github.com/apache/incubator-mynewt-newt) build and package
@@ -53,90 +57,100 @@ completely replaces the proprietary SoftDevice on Nordic chipsets.
- Support for 251 byte packet size
- Support for all 4 roles concurrently - Broadcaster, Observer, Peripheral and Central
- Support for up to 32 simultaneous connections.
- - Legacy SMP support (pairing and bonding).
+ - Legacy and SC (secure connections) SMP support (pairing and bonding).
* A flash filesystem, NFFS, which is designed for tiny (128KB->16MB) flashes.
* Bootloader support
* Remote Software Upgrade
* HAL and BSP infrastructure designed to abstract microcontroller specifics
* Shell and Console support
-* Statistics and Logging Infrastructure
+* Statistics and Logging Infrastructure
-For more information on the Mynewt OS, please visit our website [here](https://mynewt.apache.org/).
+For more information on the Mynewt OS, please visit our website [here](https://mynewt.apache.org/).
If you'd like to get started, visit the [Quick Start Guide](http://mynewt.apache.org/quick-start/).
## Roadmap
Mynewt is being actively developed. Some of the features we're currently working on:
-* Deep sleep: Mynewt OS will coordinate peripherals and processor to put the processor
- to sleep when all tasks are idle.
-* Support for different boards and microcontroller architectures, we're working on:
- - ESP8266
+* Deep sleep: Mynewt OS will coordinate peripherals and processor to put the
+ processor to sleep when all tasks are idle.
+* Sensor API
+* Support for different boards and microcontroller architectures, we're working
+ on:
+ - ESP8266
- Arduino Uno
- Arduino Mega
-* Enhancements to BLE 4.2 support:
- - LE Secure Connections
- - Random addresses for link-layer security
-## Browsing
+## Browsing
-If you are browsing around the source tree, and want to see some of the
-major functional chunks, here are a few pointers:
+If you are browsing around the source tree, and want to see some of the
+major functional chunks, here are a few pointers:
-- libs: Contains the core of the RTOS ([libs/os](https://github.com/apache/incubator-mynewt-core/tree/master/libs/os))
-and a number of helper libraries for building applications. Including a
-console ([libs/console](https://github.com/apache/incubator-mynewt-core/tree/master/libs/console))),
-shell ([libs/shell](https://github.com/apache/incubator-mynewt-core/tree/master/libs/shell))), and
-[libs/newtmgr](https://github.com/apache/incubator-mynewt-core/tree/master/libs/newtmgr)), which
+- libs: Contains the core of the RTOS ([kernel/os](https://github.com/apache/incubator-mynewt-core/tree/master/libs/os))
+and a number of helper libraries for building applications. Including a
+console ([sys/console](https://github.com/apache/incubator-mynewt-core/tree/master/libs/console))),
+shell ([sys/shell](https://github.com/apache/incubator-mynewt-core/tree/master/libs/shell))), and
+[mgmt/newtmgr](https://github.com/apache/incubator-mynewt-core/tree/master/libs/newtmgr)), which
supports software upgrade and remote fetching of logs and statistics.
-- net: Contains the networking packages. Right now, net/ contains
-the NimBLE package. [Nimble](https://github.com/apache/incubator-mynewt-core/tree/master/net/nimble)
-is a full Bluetooth host and controller implementation, that is written
-from the ground up for the Apache Mynewt Operating System.
-
-- hw: Contains the HW specific support packages. Board Support Packages
-are located in [hw/bsp](https://github.com/apache/incubator-mynewt-core/tree/master/hw/bsp),
-and the MCU specific definitions they rely on are located in
-[hw/mcu](https://github.com/apache/incubator-mynewt-core/tree/master/hw/mcu).
-Finally, there is a HAL (Hardware Abstraction Layer) stored in
-[hw/hal](https://github.com/apache/incubator-mynewt-core/tree/master/hw/hal), even
-though the implementation of various HALs are stored in the MCU specific definitions.
-
-- fs: Contains the FS package ([fs/fs](https://github.com/apache/incubator-mynewt-core/tree/master/fs/fs))),
-which is the high-level Apache Mynewt file system API. A specific implementation of that FS, is
+- net: Contains the networking packages. Highlights of the net directory are the NimBLE and IP packages.
+[Nimble](https://github.com/apache/incubator-mynewt-core/tree/master/net/nimble)
+is a full Bluetooth host and controller implementation, that is written
+from the ground up for the Apache Mynewt Operating System.
+[ip](https://github.com/apache/incubator-mynewt-core/tree/master/net/ip) is a port of LWIP, a complete IPv4 and IPv6 implementation.
+
+- hw: Contains the HW specific support packages. Board Support Packages
+are located in [hw/bsp](https://github.com/apache/incubator-mynewt-core/tree/master/hw/bsp),
+and the MCU specific definitions they rely on are located in
+[hw/mcu](https://github.com/apache/incubator-mynewt-core/tree/master/hw/mcu).
+There is a HAL (Hardware Abstraction Layer) stored in
+[hw/hal](https://github.com/apache/incubator-mynewt-core/tree/master/hw/hal), even
+though the implementation of various HALs are stored in the MCU specific definitions. Finally, drivers can be found in [hw/drivers](https://github.com/apache/incubator-mynewt-core/tree/master/hw/drivers). Drivers provide a higher-level interface to the hardware than the HAL, and may require the Mynewt operating system to function.
+
+- fs: Contains the FS package ([fs/fs](https://github.com/apache/incubator-mynewt-core/tree/master/fs/fs))
+which is the high-level Apache Mynewt file system API. A specific implementation of that FS, is
[NFFS](https://github.com/apache/incubator-mynewt-core/tree/master/fs/nffs) (Newtron
-File System.) The Newtron file system is a FS that has been built from
-the ground-up in Apache Mynewt, designed to be optimized for small
+Flash File System.) The Newtron file system is a FS that has been built from
+the ground-up in Apache Mynewt, designed to be optimized for small
(64KB-32MB) flashes.
+The fs directory also contains [fcb](http://mynewt.apache.org/latest/os/modules/fcb/fcb/), a flash circular buffer implementation.
## Sample Applications
-In addition to some of the core packages, there are also some sample
+In addition to some of the core packages, there are also some sample
applications that show how to instantiate the Apache Mynewt system. These
-sample applications are located in the ```apps/``` directory. They
-include:
-
-* [boot](https://github.com/apache/incubator-mynewt-core/tree/master/apps/boot):
- Project to build the bootloader for test platforms.
-* [blinky](https://github.com/apache/incubator-mynewt-core/tree/master/apps/blinky): The
- minimal packages to build the OS, and blink a LED!
-* [slinky](https://github.com/apache/incubator-mynewt-core/tree/master/apps/slinky): A
- slightly more complex project that includes the console and shell libraries.
+sample applications are located in the `apps/` directory. They include:
+
+* [boot](https://github.com/apache/incubator-mynewt-core/tree/master/apps/boot):
+ Project to build the bootloader for test platforms.
+* [blinky](https://github.com/apache/incubator-mynewt-core/tree/master/apps/blinky): The
+ minimal packages to build the OS, and blink a LED!
+* [slinky](https://github.com/apache/incubator-mynewt-core/tree/master/apps/slinky): A
+ slightly more complex project that includes the console and shell libraries.
+* [blecent](https://github.com/apache/incubator-mynewt-core/tree/master/apps/blecent): A basic central device with no user interface. This
+application scans for a peripheral that supports the alert notification
+service (ANS). Upon discovering such a peripheral, blecent connects and
+performs a characteristic read, characteristic write, and notification subscription.
+* [blehci](https://github.com/apache/incubator-mynewt-core/tree/master/apps/blehci): Implements a BLE controller-only application. A separate
+host-only implementation, such as Linux's BlueZ, can interface with this
+application via HCI over UART.
* [bleprph](https://github.com/apache/incubator-mynewt-core/tree/master/apps/bleprph): An
implementation of a minimal BLE peripheral.
-* [bletiny](https://github.com/apache/incubator-mynewt-core/tree/master/apps/bletiny): A
+* [bletiny](https://github.com/apache/incubator-mynewt-core/tree/master/apps/bletiny): A
stripped down interface to the Apache Mynewt Bluetooth stack.
-* [test](https://github.com/apache/incubator-mynewt-core/tree/master/apps/test): Test
- project which can be compiled either with the simulator, or on a per-architecture basis.
- Test will run all the package's unit tests.
-
+* [bleuart](https://github.com/apache/incubator-mynewt-core/tree/master/apps/bleuart):
+Implements a simple BLE peripheral that supports the Nordic
+UART / Serial Port Emulation service
+(https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00072.html).
+* [test](https://github.com/apache/incubator-mynewt-core/tree/master/apps/test): Test
+ project which can be compiled either with the simulator, or on a per-architecture basis.
+ Test will run all the package's unit tests.
# Getting Help
-If you are having trouble using or contributing to Apache Mynewt, or just want to talk
-to a human about what you're working on, you can contact us via the
-[developers mailing list](mailto:dev@mynewt.incubator.apache.org).
+If you are having trouble using or contributing to Apache Mynewt, or just want to talk
+to a human about what you're working on, you can contact us via the
+[developers mailing list](mailto:dev@mynewt.incubator.apache.org).
Although not a formal channel, you can also find a number of core developers
on the #mynewt channel on Freenode.
@@ -144,15 +158,15 @@ on the #mynewt channel on Freenode.
Also, be sure to checkout the [Frequently Asked Questions](https://mynewt.apache.org/faq/answers)
for some help troubleshooting first.
-# Contributing
+# Contributing
-Anybody who works with Apache Mynewt can be a contributing member of the
-community that develops and deploys it. The process of releasing an operating
+Anybody who works with Apache Mynewt can be a contributing member of the
+community that develops and deploys it. The process of releasing an operating
system for microcontrollers is never done: and we welcome your contributions
to that effort.
-More information can be found at the Community section of the Apache Mynewt
-website, located [here](https://mynewt.apache.org/community).
+More information can be found at the Community section of the Apache Mynewt
+website, located [here](https://mynewt.apache.org/community).
## Pull Requests
@@ -161,62 +175,61 @@ but depending on the topic, can also be relayed to the official Apache Mynewt
developer mailing list dev@mynewt.incubator.apache.org.
If you are suggesting a new feature, please email the developer list directly,
-with a description of the feature you are planning to work on.
+with a description of the feature you are planning to work on.
-We do not merge pull requests directly on Github, all PRs will be pulled and
+We do not merge pull requests directly on Github, all PRs will be pulled and
pushed through https://git.apache.org/.
## Filing Bugs
-Bugs can be filed on the
+Bugs can be filed on the
[Apache Mynewt Bug Tracker](https://issues.apache.org/jira/browse/MYNEWT).
Where possible, please include a self-contained reproduction case!
## Feature Requests
-Feature requests should also be filed on the
-[Apache Mynewt Bug Tracker](https://issues.apache.org/jira/browse/MYNEWT).
-Please introduce it as a ticket type "Wish."
+Feature requests should also be filed on the
+[Apache Mynewt Bug Tracker](https://issues.apache.org/jira/browse/MYNEWT).
+Please introduce it as a ticket type "Wish."
## Writing Tests
We love getting newt tests! Apache Mynewt is a huge undertaking, and improving
-code coverage is a win for every Apache Mynewt user.
+code coverage is a win for every Apache Mynewt user.
## Writing Documentation
-Contributing to documentation (in addition to writing tests), is a great way
+Contributing to documentation (in addition to writing tests), is a great way
to get involved with the Apache Mynewt project.
-Pull requests to the apache-mynewt-site repository on Github are the best
-way to submit documentation. For more information on contributing to the
-documentation, the [FAQ](https://mynewt.apache.org/faq/answers/) has some
+Pull requests to the apache-mynewt-site repository on Github are the best
+way to submit documentation. For more information on contributing to the
+documentation, the [FAQ](https://mynewt.apache.org/faq/answers/) has some
more information.
-# License
+# License
-The code in this repository is all under either the Apache 2 license, or a
-license compatible with the Apache 2 license. See the LICENSE file for more
-information.
+The code in this repository is all under either the Apache 2 license, or a
+license compatible with the Apache 2 license. See the LICENSE file for more
+information.
# Export restrictions
-This distribution includes cryptographic software. The country in which you
-currently reside may have restrictions on the import, possession, use, and/or
+This distribution includes cryptographic software. The country in which you
+currently reside may have restrictions on the import, possession, use, and/or
re-export to another country, of encryption software. BEFORE using any encryption
software, please check your country's laws, regulations and policies concerning
the import, possession, or use, and re-export of encryption software, to see if
this is permitted. See <http://www.wassenaar.org/> for more information.
-The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS),
-has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1,
-which includes information security software using or performing cryptographic
-functions with asymmetric algorithms. The form and manner of this Apache Software
-Foundation distribution makes it eligible for export under the License Exception ENC
-Technology Software Unrestricted (TSU) exception (see the BIS Export Administration
+The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS),
+has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1,
+which includes information security software using or performing cryptographic
+functions with asymmetric algorithms. The form and manner of this Apache Software
+Foundation distribution makes it eligible for export under the License Exception ENC
+Technology Software Unrestricted (TSU) exception (see the BIS Export Administration
Regulations, Section 740.13) for both object code and source code.
-The following provides more details on the included cryptographic software:
+The following provides more details on the included cryptographic software:
https://tls.mbed.org/supported-ssl-ciphersuites.
-
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/94ac3d6b/RELEASE_NOTES.md
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 40a15f4..c5d38f9 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,11 +1,11 @@
# RELEASE NOTES
-30 Apr 2016 - Apache Mynewt v0.9.0
+22 Nov 2016 - Apache Mynewt v1.0.0, beta 1
For full release notes, please visit the
[Apache Mynewt Wiki](https://cwiki.apache.org/confluence/display/MYNEWT/Release+Notes).
-This is the fourth source release of Apache Mynewt Core. For more
+This is the fifth source release of Apache Mynewt Core. For more
information on Apache Mynewt, please visit the
[Apache Mynewt Website](https://mynewt.apache.org/).
[5/6] incubator-mynewt-core git commit: BLE Host - Fix warning
reported by gcc 6.
Posted by cc...@apache.org.
BLE Host - Fix warning reported by gcc 6.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/c6a8f88f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/c6a8f88f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/c6a8f88f
Branch: refs/heads/develop
Commit: c6a8f88f6b8dc7c8eee6dc75a34c9b6ea295b05d
Parents: eab4949
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Nov 22 17:42:42 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Nov 22 17:42:42 2016 -0800
----------------------------------------------------------------------
net/nimble/host/test/src/ble_hs_test_util.c | 3 ---
1 file changed, 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c6a8f88f/net/nimble/host/test/src/ble_hs_test_util.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/test/src/ble_hs_test_util.c b/net/nimble/host/test/src/ble_hs_test_util.c
index 58e3345..0bc848f 100644
--- a/net/nimble/host/test/src/ble_hs_test_util.c
+++ b/net/nimble/host/test/src/ble_hs_test_util.c
@@ -34,9 +34,6 @@ uint8_t g_dev_addr[BLE_DEV_ADDR_LEN];
#define BLE_HS_TEST_UTIL_PUB_ADDR_VAL { 0x0a, 0x54, 0xab, 0x49, 0x7f, 0x06 }
-static const uint8_t ble_hs_test_util_pub_addr[BLE_DEV_ADDR_LEN] =
- BLE_HS_TEST_UTIL_PUB_ADDR_VAL;
-
#define BLE_HS_TEST_UTIL_LE_OPCODE(ocf) \
ble_hs_hci_util_opcode_join(BLE_HCI_OGF_LE, (ocf))
[2/6] incubator-mynewt-core git commit: Add BSD-licensed Nordic SDK
files to .rat-excludes.
Posted by cc...@apache.org.
Add BSD-licensed Nordic SDK files to .rat-excludes.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/b00148aa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/b00148aa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/b00148aa
Branch: refs/heads/develop
Commit: b00148aa7fde6ea168c73414c37e0a2c5569601e
Parents: d08f8d3
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Nov 22 12:30:15 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Nov 22 12:30:15 2016 -0800
----------------------------------------------------------------------
.rat-excludes | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b00148aa/.rat-excludes
----------------------------------------------------------------------
diff --git a/.rat-excludes b/.rat-excludes
index 060f920..551b4cd 100644
--- a/.rat-excludes
+++ b/.rat-excludes
@@ -68,6 +68,13 @@ gcc_startup_nrf52_split.s
# Nordic nRF52 SDK - BSD License.
compiler_abstraction.h
nrf.h
+nrf52_name_change.h
+system_nrf51422.c
+arm_startup_nrf51.s
+arm_startup_nrf52.s
+uicr_config.h
+iar_startup_nrf51.s
+iar_startup_nrf52.s
# STM32CubeF4 - BSD License.
stm32f4xx_hal_conf.h