tools/pic32: Add the Config.mk file to execute the post build script.
Update Make.defs and README.txt files in boards directory accordingly.
This commit is contained in:
parent
0d88073644
commit
9daa8441e3
@ -493,6 +493,8 @@ Loading NuttX with ICD3
|
||||
# to the top-level build directory. It is the only
|
||||
# required input to mkpichex.
|
||||
|
||||
This procedure is automatically performed at the end of a build.
|
||||
|
||||
LED Usage
|
||||
=========
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
include ${TOPDIR}/tools/Config.mk
|
||||
include ${TOPDIR}/tools/pic32/Config.mk
|
||||
include ${TOPDIR}/arch/mips/src/mips32/Toolchain.defs
|
||||
|
||||
ifeq ($(WINTOOL),y)
|
||||
|
@ -570,6 +570,8 @@ Creating Compatible NuttX HEX files
|
||||
# to the top-level build directory. It is the only
|
||||
# required input to mkpichex.
|
||||
|
||||
This procedure is automatically performed at the end of a build.
|
||||
|
||||
Serial Console: MEB
|
||||
===================
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
include ${TOPDIR}/tools/Config.mk
|
||||
include ${TOPDIR}/tools/pic32/Config.mk
|
||||
include ${TOPDIR}/arch/mips/src/mips32/Toolchain.defs
|
||||
|
||||
ifeq ($(CONFIG_MIPS32_TOOLCHAIN_GNU_ELF),y)
|
||||
|
@ -309,6 +309,8 @@ Creating Compatible NuttX HEX files
|
||||
# to the top-level build directory. It is the only
|
||||
# required input to mkpichex.
|
||||
|
||||
This procedure is automatically performed at the end of a build.
|
||||
|
||||
Serial Console
|
||||
==============
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
include ${TOPDIR}/tools/Config.mk
|
||||
include ${TOPDIR}/tools/pic32/Config.mk
|
||||
include ${TOPDIR}/arch/mips/src/mips32/Toolchain.defs
|
||||
|
||||
ifeq ($(CONFIG_MIPS32_TOOLCHAIN_GNU_ELF),y)
|
||||
|
@ -384,13 +384,15 @@ Loading NuttX with PICkit2
|
||||
|
||||
To use this file, you need to do the following things:
|
||||
|
||||
# Add the NuttX tools/pic32 directory to your
|
||||
export PATH = ??? # Add the NuttX tools/pic32 directory to your
|
||||
# PATH variable
|
||||
make # Build nuttx and nuttx.hex
|
||||
mkpichex $PWD # Convert addresses in nuttx.hex. $PWD is the path
|
||||
# to the top-level build directory. It is the only
|
||||
# required input to mkpichex.
|
||||
|
||||
This procedure is automatically performed at the end of a build.
|
||||
|
||||
LCD1602
|
||||
=======
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
include ${TOPDIR}/tools/Config.mk
|
||||
include ${TOPDIR}/tools/pic32/Config.mk
|
||||
include ${TOPDIR}/arch/mips/src/mips32/Toolchain.defs
|
||||
|
||||
ifeq ($(CONFIG_MIPS32_TOOLCHAIN_GNU_ELF),y)
|
||||
|
@ -323,13 +323,15 @@ Loading NuttX with PICkit2
|
||||
|
||||
To use this file, you need to do the following things:
|
||||
|
||||
# Add the NuttX tools/pic32 directory to your
|
||||
export PATH =??? # Add the NuttX tools/pic32 directory to your
|
||||
# PATH variable
|
||||
make # Build nuttx and nuttx.hex
|
||||
mkpichex $PWD # Convert addresses in nuttx.hex. $PWD is the path
|
||||
# to the top-level build directory. It is the only
|
||||
# required input to mkpichex.
|
||||
|
||||
This procedure is automatically performed at the end of a build.
|
||||
|
||||
LEDs
|
||||
====
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
include ${TOPDIR}/tools/Config.mk
|
||||
include ${TOPDIR}/tools/pic32/Config.mk
|
||||
include ${TOPDIR}/arch/mips/src/mips32/Toolchain.defs
|
||||
|
||||
ifeq ($(CONFIG_MIPS32_TOOLCHAIN_GNU_ELF),y)
|
||||
|
@ -167,7 +167,7 @@ Creating Compatible NuttX HEX files
|
||||
make -f Makefile.host
|
||||
|
||||
Now you will have an executable
|
||||
file call mkpichex (or mkpichex.exe on
|
||||
file called mkpichex (or mkpichex.exe on
|
||||
Cygwin). This program will take the nutt.hex file as an input, it will
|
||||
convert all of the KSEG0 and KSEG1 addresses to physical address, and
|
||||
it will write the modified file, replacing the original nuttx.hex.
|
||||
@ -181,6 +181,8 @@ Creating Compatible NuttX HEX files
|
||||
# to the top-level build directory. It is the only
|
||||
# required input to mkpichex.
|
||||
|
||||
This procedure is automatically performed at the end of a build.
|
||||
|
||||
Tool Issues
|
||||
===========
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
include ${TOPDIR}/tools/Config.mk
|
||||
include ${TOPDIR}/tools/pic32/Config.mk
|
||||
include ${TOPDIR}/arch/mips/src/mips32/Toolchain.defs
|
||||
|
||||
ifeq ($(CONFIG_MIPS32_TOOLCHAIN_GNU_ELF),y)
|
||||
|
@ -114,7 +114,7 @@ Creating Compatible NuttX HEX files
|
||||
cd tools/pic32
|
||||
make -f Makefile.host
|
||||
|
||||
Now you will have an executable file call mkpichex (or mkpichex.exe on
|
||||
Now you will have an executable file called mkpichex (or mkpichex.exe on
|
||||
Cygwin). This program will take the nutt.hex file as an input, it will
|
||||
convert all of the KSEG0 and KSEG1 addresses to physical address, and
|
||||
it will write the modified file, replacing the original nuttx.hex.
|
||||
@ -128,6 +128,8 @@ Creating Compatible NuttX HEX files
|
||||
# to the top-level build directory. It is the only
|
||||
# required input to mkpichex.
|
||||
|
||||
This procedure is automatically performed at the end of a build.
|
||||
|
||||
Tool Issues
|
||||
===========
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
include ${TOPDIR}/tools/Config.mk
|
||||
include ${TOPDIR}/tools/pic32/Config.mk
|
||||
include ${TOPDIR}/arch/mips/src/mips32/Toolchain.defs
|
||||
|
||||
ifeq ($(CONFIG_MIPS32_TOOLCHAIN_GNU_ELF),y)
|
||||
|
40
tools/pic32/Config.mk
Normal file
40
tools/pic32/Config.mk
Normal file
@ -0,0 +1,40 @@
|
||||
############################################################################
|
||||
# tools/pic32/Config.mk
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership. The
|
||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance with the
|
||||
# License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
# These are the macros that will be used in the NuttX make system to compile
|
||||
# and assembly source files and to insert the resulting object files into an
|
||||
# archive. These replace the default definitions at tools/Config.mk
|
||||
|
||||
# POSTBUILD -- Perform post build operations
|
||||
|
||||
define POSTBUILD
|
||||
$(Q)echo "Converting the hex file";
|
||||
|
||||
$(Q) if [ ! -f "tools/pic32/mkpichex" ] ; then \
|
||||
echo "mkpichex tool doesn't exist"; \
|
||||
echo "Please run the following command to build the tool"; \
|
||||
echo "make -C tools$(DELIM)pic32 -f Makefile.host"; \
|
||||
echo "then run make again."; \
|
||||
else \
|
||||
tools$(DELIM)pic32$(DELIM)mkpichex$(HOSTEXEEXT) $(PWD); \
|
||||
([ $$? -eq 0 ] && echo "Done."); \
|
||||
fi
|
||||
|
||||
endef
|
Loading…
Reference in New Issue
Block a user