Some little refactor
This commit is contained in:
parent
b43ce0f677
commit
36e7db42de
6 changed files with 13 additions and 9 deletions
|
@ -98,14 +98,14 @@ ifndef DEBUG
|
|||
OPTI = -Os -ffunction-sections
|
||||
endif
|
||||
|
||||
ifeq ($(CPUREV), CC)
|
||||
ifeq ($(STM32W_CPUREV), CC)
|
||||
LD-EXT=-stm32w108CC
|
||||
${warning "using stm32w108CC specific ld file"}
|
||||
else ifeq ($(CPUREV), xB)
|
||||
else ifeq ($(STM32W_CPUREV), xB)
|
||||
LD-EXT=-stm32w108xB
|
||||
${warning "using stm32w108xB specific ld file"}
|
||||
else
|
||||
${error "No CPUREV specified. Cpu revision should be specified. Please read cpu/stm32w108/README.txt for more details."}
|
||||
${error "No STM32W_CPUREV specified. Cpu revision should be specified. Please read cpu/stm32w108/README.txt for more details."}
|
||||
endif
|
||||
|
||||
CFLAGSNO = -mthumb -mcpu=cortex-m3 -D "PLATFORM_HEADER=\"hal/micro/cortexm3/compiler/gnu.h\"" \
|
||||
|
|
|
@ -2,21 +2,21 @@ Building instructions.
|
|||
|
||||
In order to build your applications you need to find out the right cpu revision for the board you are using.
|
||||
|
||||
Valid CPUREV values are CC or xB
|
||||
Valid STM32W_CPUREV values are CC or xB
|
||||
|
||||
Examples:
|
||||
|
||||
The MB851RevD board has a cpu with code
|
||||
stm32w 108CCU7
|
||||
so CC is your CPUREV value and the command is
|
||||
make TARGET=mbxxx CPUREV=CC ...
|
||||
so CC is your STM32W_CPUREV value and the command is
|
||||
make TARGET=mbxxx STM32W_CPUREV=CC ...
|
||||
|
||||
or
|
||||
|
||||
The MB851RevC board has a cpu with code
|
||||
stm32w 108CBU6
|
||||
so xB is your CPUREV value.
|
||||
make TARGET=mbxxx CPUREV=xB ...
|
||||
so xB is your STM32W_CPUREV value.
|
||||
make TARGET=mbxxx STM32W_CPUREV=xB ...
|
||||
|
||||
|
||||
NOTE: if the last word is B you need to use x as wildcard.
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
* Contact sensor.
|
||||
* \author
|
||||
* Stefano Pascali <stefano.pascali@st.com>
|
||||
* Marco Grella <marco.grella@st.com>
|
||||
*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
* Contact magnetic sensor header file.
|
||||
* \author
|
||||
* Stefano Pascali <stefano.pascali@st.com>
|
||||
* Marco Grella <marco.grella@st.com>
|
||||
*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
* Platform-conf.h for MBXXX.
|
||||
* \author
|
||||
* Stefano Pascali <stefano.pascali@st.com>
|
||||
* Marco Grella <marco.grella@st.com>
|
||||
*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
|
|
|
@ -40,7 +40,8 @@ addzero = $(if $(call gt,${nine},$(1)),$(words ${1}),0$(words ${1}))
|
|||
define dooneexample
|
||||
@echo Building example $(3): $(1) for target $(2)
|
||||
@((cd $(EXAMPLESDIR)/$(1); \
|
||||
make TARGET=$(2) CPUREV=xB clean && make CPUREV=xB TARGET=$(2)) > \
|
||||
export STM32W_CPUREV=CC; \
|
||||
make TARGET=$(2) clean && make TARGET=$(2)) > \
|
||||
$(3)-$(subst /,-,$(1))$(2).report 2>&1 && \
|
||||
(echo $(1) $(2): OK | tee $(3)-$(subst /,-,$(1))$(2).summary) || \
|
||||
(echo $(1) $(2): FAIL ಠ.ಠ | tee $(3)-$(subst /,-,$(1))$(2).summary ; \
|
||||
|
|
Loading…
Reference in a new issue