mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
Changes for clean RGMP compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3598 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -1745,3 +1745,8 @@
|
|||||||
nxbe_colormap was change to nxbe_configure... apparently "search-and-replace"
|
nxbe_colormap was change to nxbe_configure... apparently "search-and-replace"
|
||||||
error. This error was not noticed before because most NX platforms do not use
|
error. This error was not noticed before because most NX platforms do not use
|
||||||
colormapping.
|
colormapping.
|
||||||
|
* arch/rgmp and configs/rgmp. Add architecture support and build
|
||||||
|
configuration for RGMP. RGMP is a project for running GPOS and
|
||||||
|
RTOS simultaneously on multi-processor platforms. See
|
||||||
|
http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further
|
||||||
|
information about RGMP.
|
||||||
+2
-2
@@ -172,11 +172,11 @@ static uart_dev_t *up_alloc_com(unsigned int base, int irq)
|
|||||||
uart_dev_t *dev;
|
uart_dev_t *dev;
|
||||||
struct up_dev_s *priv;
|
struct up_dev_s *priv;
|
||||||
|
|
||||||
priv = kzmalloc(sizeof(struct up_dev_s));
|
priv = kzalloc(sizeof(struct up_dev_s));
|
||||||
if (priv == NULL)
|
if (priv == NULL)
|
||||||
goto err0;
|
goto err0;
|
||||||
|
|
||||||
dev = kzmalloc(sizeof(uart_dev_t));
|
dev = kzalloc(sizeof(uart_dev_t));
|
||||||
if (dev == NULL)
|
if (dev == NULL)
|
||||||
goto err1;
|
goto err1;
|
||||||
|
|
||||||
|
|||||||
@@ -9,3 +9,42 @@ and GPOS feathures.
|
|||||||
|
|
||||||
See http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further
|
See http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further
|
||||||
information about RGMP.
|
information about RGMP.
|
||||||
|
|
||||||
|
Build Instructions
|
||||||
|
------------------
|
||||||
|
|
||||||
|
1. Download RGMP from rgmp.svn.sourceforge.net:
|
||||||
|
|
||||||
|
cd <rgmp-dir>
|
||||||
|
|
||||||
|
svn co https://rgmp.svn.sourceforge.net/svnroot/rgmp/trunk rgmp
|
||||||
|
|
||||||
|
2. Configure NuttX. For example, for the RGMP NSH configuration, do the
|
||||||
|
following:
|
||||||
|
|
||||||
|
cd <nuttx-dir>
|
||||||
|
cd tools
|
||||||
|
./configure.sh rgmp/nsh
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
3. Edit Make.defs so that it can determine the include paths to the RGMP
|
||||||
|
installation directory. I made this change to <nuttx-dir>/Make.defs:
|
||||||
|
|
||||||
|
--- configs/rgmp/nsh/Make.defs 2011-05-12 11:19:26.527273500 -0600
|
||||||
|
+++ ./Make.defs 2011-05-12 12:52:42.847364700 -0600
|
||||||
|
@@ -37,6 +37,7 @@
|
||||||
|
|
||||||
|
include ${TOPDIR}/.config
|
||||||
|
|
||||||
|
+RGMP_INST_DIR := /home/patacongo/projects/rgmp/rgmp/rtos
|
||||||
|
RGMPLIBDIR := $(RGMP_INST_DIR)/lib
|
||||||
|
RGMPINCDIR := $(RGMP_INST_DIR)/include
|
||||||
|
RGMPLKSCPT := $(RGMP_INST_DIR)/etc/x86.ld
|
||||||
|
|
||||||
|
NOTE: This needs to be better integrated with the RGMP build process. If
|
||||||
|
you follow the above instructions, NuttX for RGMP will compile error-free
|
||||||
|
but will fail at link time:
|
||||||
|
|
||||||
|
LD: nuttx.exe
|
||||||
|
ld: cannot open linker script file /home/patacongo/projects/rgmp/rgmp/rtos/etc/x86.ld: No such file or directory
|
||||||
|
|
||||||
|
|||||||
@@ -340,16 +340,16 @@ CONFIG_EXAMPLE_NETTEST_CLIENTIP=(192<<24|168<<16|0<<8|106)
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/nsh
|
# Settings for examples/nsh
|
||||||
CONFIG_EXAMPLES_NSH_CONSOLE=y
|
CONFIG_NSH_CONSOLE=y
|
||||||
CONFIG_EXAMPLES_NSH_TELNET=n
|
CONFIG_NSH_TELNET=n
|
||||||
CONFIG_EXAMPLES_NSH_IOBUFFER_SIZE=512
|
CONFIG_NSH_IOBUFFER_SIZE=512
|
||||||
CONFIG_EXAMPLES_NSH_CMD_SIZE=40
|
CONFIG_NSH_CMD_SIZE=40
|
||||||
CONFIG_EXAMPLES_NSH_STACKSIZE=4096
|
CONFIG_NSH_STACKSIZE=4096
|
||||||
CONFIG_EXAMPLES_NSH_DHCPC=n
|
CONFIG_NSH_DHCPC=n
|
||||||
CONFIG_EXAMPLES_NSH_NOMAC=n
|
CONFIG_NSH_NOMAC=n
|
||||||
CONFIG_EXAMPLES_NSH_IPADDR=(10<<24|0<<16|0<<8|2)
|
CONFIG_NSH_IPADDR=(10<<24|0<<16|0<<8|2)
|
||||||
CONFIG_EXAMPLES_NSH_DRIPADDR=(10<<24|0<<16|0<<8|1)
|
CONFIG_NSH_DRIPADDR=(10<<24|0<<16|0<<8|1)
|
||||||
CONFIG_EXAMPLES_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
|
CONFIG_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Stack and heap information
|
# Stack and heap information
|
||||||
|
|||||||
+39
-10
@@ -341,16 +341,45 @@ CONFIG_EXAMPLE_NETTEST_CLIENTIP=(192<<24|168<<16|0<<8|106)
|
|||||||
#
|
#
|
||||||
# Settings for apps/nshlib
|
# Settings for apps/nshlib
|
||||||
#
|
#
|
||||||
CONFIG_EXAMPLES_NSH_CONSOLE=y
|
# CONFIG_NSH_FILEIOSIZE - Size of a static I/O buffer
|
||||||
CONFIG_EXAMPLES_NSH_TELNET=n
|
# CONFIG_NSH_STRERROR - Use strerror(errno)
|
||||||
CONFIG_EXAMPLES_NSH_IOBUFFER_SIZE=512
|
# CONFIG_NSH_LINELEN - Maximum length of one command line
|
||||||
CONFIG_EXAMPLES_NSH_CMD_SIZE=40
|
# CONFIG_NSH_STACKSIZE - Stack size to use for new threads.
|
||||||
CONFIG_EXAMPLES_NSH_STACKSIZE=4096
|
# CONFIG_NSH_NESTDEPTH - Max number of nested if-then[-else]-fi
|
||||||
CONFIG_EXAMPLES_NSH_DHCPC=n
|
# CONFIG_NSH_DISABLESCRIPT - Disable scripting support
|
||||||
CONFIG_EXAMPLES_NSH_NOMAC=n
|
# CONFIG_NSH_DISABLEBG - Disable background commands
|
||||||
CONFIG_EXAMPLES_NSH_IPADDR=(192<<24|168<<16|10<<8|2)
|
# CONFIG_NSH_ROMFSETC - Use startup script in /etc
|
||||||
CONFIG_EXAMPLES_NSH_DRIPADDR=(192<<24|168<<16|10<<8|1)
|
# CONFIG_NSH_CONSOLE - Use serial console front end
|
||||||
CONFIG_EXAMPLES_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
|
# CONFIG_NSH_TELNET - Use telnetd console front end
|
||||||
|
#
|
||||||
|
# If CONFIG_NSH_TELNET is selected:
|
||||||
|
# CONFIG_NSH_IOBUFFER_SIZE -- Telnetd I/O buffer size
|
||||||
|
# CONFIG_NSH_DHCPC - Obtain address using DHCP
|
||||||
|
# CONFIG_NSH_IPADDR - Provides static IP address
|
||||||
|
# CONFIG_NSH_DRIPADDR - Provides static router IP address
|
||||||
|
# CONFIG_NSH_NETMASK - Provides static network mask
|
||||||
|
# CONFIG_NSH_NOMAC - Use a bogus MAC address
|
||||||
|
#
|
||||||
|
# If CONFIG_NSH_ROMFSETC is selected:
|
||||||
|
# CONFIG_NSH_ROMFSMOUNTPT - ROMFS mountpoint
|
||||||
|
# CONFIG_NSH_INITSCRIPT - Relative path to init script
|
||||||
|
# CONFIG_NSH_ROMFSDEVNO - ROMFS RAM device minor
|
||||||
|
# CONFIG_NSH_ROMFSSECTSIZE - ROMF sector size
|
||||||
|
# CONFIG_NSH_FATDEVNO - FAT FS RAM device minor
|
||||||
|
# CONFIG_NSH_FATSECTSIZE - FAT FS sector size
|
||||||
|
# CONFIG_NSH_FATNSECTORS - FAT FS number of sectors
|
||||||
|
# CONFIG_NSH_FATMOUNTPT - FAT FS mountpoint
|
||||||
|
#
|
||||||
|
CONFIG_NSH_CONSOLE=y
|
||||||
|
CONFIG_NSH_TELNET=n
|
||||||
|
CONFIG_NSH_IOBUFFER_SIZE=512
|
||||||
|
CONFIG_NSH_CMD_SIZE=40
|
||||||
|
CONFIG_NSH_STACKSIZE=4096
|
||||||
|
CONFIG_NSH_DHCPC=n
|
||||||
|
CONFIG_NSH_NOMAC=n
|
||||||
|
CONFIG_NSH_IPADDR=(192<<24|168<<16|10<<8|2)
|
||||||
|
CONFIG_NSH_DRIPADDR=(192<<24|168<<16|10<<8|1)
|
||||||
|
CONFIG_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Stack and heap information
|
# Stack and heap information
|
||||||
|
|||||||
+2
-2
@@ -42,8 +42,8 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STDBOOL_H
|
#ifdef CONFIG_ARCH_STDINT_H
|
||||||
# include <arch/stdbool.h>
|
# include <arch/stdint.h>
|
||||||
#else
|
#else
|
||||||
# include <nuttx/compiler.h>
|
# include <nuttx/compiler.h>
|
||||||
# include <arch/types.h>
|
# include <arch/types.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user